Home
Version 3
Apps API

Apps API

Restage an App

POST /v2/apps/:guid/restage

Request

Route

POST /v2/apps/6e1e5715-ae01-430f-96a2-50b80bd1bab5/restage

Parameters

Name Description Valid Values Example Values
guid The guid of the App

Body

Name Description Default Valid Values Example Values

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1MSIsImVtYWlsIjoiZW1haWwtMjUzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MjB9.nHJXWjk_2lDcUJLDq0rqbU98R8uJqyhpSZDSFi9112U
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/6e1e5715-ae01-430f-96a2-50b80bd1bab5/restage" -d '' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM1MSIsImVtYWlsIjoiZW1haWwtMjUzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjY2MzM5MjB9.nHJXWjk_2lDcUJLDq0rqbU98R8uJqyhpSZDSFi9112U" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "6e1e5715-ae01-430f-96a2-50b80bd1bab5",
    "url": "/v2/apps/6e1e5715-ae01-430f-96a2-50b80bd1bab5",
    "created_at": "2015-03-10T23:12:00Z",
    "updated_at": "2015-03-10T23:12:00Z"
  },
  "entity": {
    "name": "name-1995",
    "production": false,
    "space_guid": "edaeea6f-c12b-4619-96d7-7a4428546eab",
    "stack_guid": "5dca9a0a-5941-4ff5-bb9a-d0082900125b",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STARTED",
    "version": "3c5c0085-17ec-448f-94de-0b905e8b28c6",
    "command": null,
    "console": false,
    "debug": null,
    "staging_task_id": null,
    "package_state": "PENDING",
    "health_check_type": "port",
    "health_check_timeout": null,
    "staging_failed_reason": null,
    "diego": false,
    "docker_image": null,
    "package_updated_at": "2015-03-10T23:12:00Z",
    "detected_start_command": ""
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/apps/6e1e5715-ae01-430f-96a2-50b80bd1bab5
X-VCAP-Request-ID: d2f6876b-76ae-43e0-8c56-db8352bfd296
Content-Length: 985
X-Content-Type-Options: nosniff