Home
Version 3
Apps API

Apps API

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

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzNCIsImVtYWlsIjoiZW1haWwtMjU1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4ODR9.uW4-5E0-bn985yGJRxZj3PBiaFxkznOmsSsXw-YX4S0
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

POST /v2/apps/ff1eff1c-8ca4-45d6-87ae-723399cee584/restage

cURL

curl "https://api.[your-domain.com]/v2/apps/ff1eff1c-8ca4-45d6-87ae-723399cee584/restage" -d '' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzNCIsImVtYWlsIjoiZW1haWwtMjU1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjI5OTA4ODR9.uW4-5E0-bn985yGJRxZj3PBiaFxkznOmsSsXw-YX4S0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/apps/ff1eff1c-8ca4-45d6-87ae-723399cee584
X-VCAP-Request-ID: 1dc4e0d8-615b-4227-8cec-9cf6fa0c4acd
Content-Length: 965
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "ff1eff1c-8ca4-45d6-87ae-723399cee584",
    "url": "/v2/apps/ff1eff1c-8ca4-45d6-87ae-723399cee584",
    "created_at": "2015-01-27T19:14:44Z",
    "updated_at": "2015-01-27T19:14:44Z"
  },
  "entity": {
    "name": "name-1951",
    "production": false,
    "space_guid": "31de8dc1-984b-4ccf-bb51-ed4eb1165a15",
    "stack_guid": "3e844035-d077-42c6-91cd-c3864fc8bb94",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STARTED",
    "version": "c43790e8-80f9-4b8b-9299-15908acfb632",
    "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-27T19:14:44Z",
    "detected_start_command": ""
  }
}