Restage an App
POST /v2/apps/:guid/restage
Fields
Name |
Description |
Default |
Valid Values |
Example Values |
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the App
|
|
|
Request
Headers
Route
POST /v2/apps/aa3c3766-ede2-44f9-9ac6-067af1bcf280/restage
cURL
curl "https://api.[your-domain.com]/v2/apps/aa3c3766-ede2-44f9-9ac6-067af1bcf280/restage" -d '' -X POST \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI0MyIsImVtYWlsIjoiZW1haWwtMTgzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjIzMjM1NDl9.QKUgMN_7Yk1lyFwlJ97GVTPwxHWYjPYeK_g5tepdoHs" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Headers
Status
201 Created
Body
{
"metadata": {
"guid": "aa3c3766-ede2-44f9-9ac6-067af1bcf280",
"url": "/v2/apps/aa3c3766-ede2-44f9-9ac6-067af1bcf280",
"created_at": "2015-01-20T01:52:28+00:00",
"updated_at": "2015-01-20T01:52:28+00:00"
},
"entity": {
"name": "name-1763",
"production": false,
"space_guid": "1c90ba12-97d8-4482-9215-281fa2137a06",
"stack_guid": "124938fc-6e21-4f63-b85b-b6735bdcb474",
"buildpack": null,
"detected_buildpack": null,
"environment_json": null,
"memory": 1024,
"instances": 1,
"disk_quota": 1024,
"state": "STARTED",
"version": "9fa6d71a-a57f-4dd4-af3f-d1cb08a1a191",
"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,
"docker_image": null,
"package_updated_at": "2015-01-20T01:52:28+00:00",
"detected_start_command": ""
}
}