Restage an App
POST /v2/apps/:guid/restage
Request
Route
POST /v2/apps/695d0061-081f-4838-85d0-1239a0e5d23f/restage
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the App
|
|
|
Body
Name |
Description |
Default |
Valid Values |
Example Values |
Headers
cURL
curl "https://api.[your-domain.com]/v2/apps/695d0061-081f-4838-85d0-1239a0e5d23f/restage" -d '' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwMCIsImVtYWlsIjoiZW1haWwtMjMxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjYxODc3NTl9.B8-1UyccJ5idoXeonW56fa4CyN0OlRb_XHkQ40nbkXg" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "695d0061-081f-4838-85d0-1239a0e5d23f",
"url": "/v2/apps/695d0061-081f-4838-85d0-1239a0e5d23f",
"created_at": "2015-03-05T19:15:59Z",
"updated_at": "2015-03-05T19:15:59Z"
},
"entity": {
"name": "name-1152",
"production": false,
"space_guid": "9805991b-5573-4743-900f-25fe945a58c9",
"stack_guid": "a5ccb0e8-ce9e-4416-8f3f-20ffd85b34e8",
"buildpack": null,
"detected_buildpack": null,
"environment_json": null,
"memory": 1024,
"instances": 1,
"disk_quota": 1024,
"state": "STARTED",
"version": "888d2ac2-6ee0-47bd-9f27-3214a35b3abf",
"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-05T19:15:59Z",
"detected_start_command": ""
}
}
Headers