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.eyJ1c2VyX2lkIjoidWFhLWlkLTM0MSIsImVtYWlsIjoiZW1haWwtMjYyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxNDJ9.ONIeJn2ZQt_RzXdljOij-jHqO_TVyXr1Y_oDwOGdmPw
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

POST /v2/apps/950b53f8-ba2b-4917-986c-4c8818b05fd1/restage

cURL

curl "https://api.[your-domain.com]/v2/apps/950b53f8-ba2b-4917-986c-4c8818b05fd1/restage" -d '' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0MSIsImVtYWlsIjoiZW1haWwtMjYyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQzMTAxNDJ9.ONIeJn2ZQt_RzXdljOij-jHqO_TVyXr1Y_oDwOGdmPw" \
	-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/950b53f8-ba2b-4917-986c-4c8818b05fd1
X-VCAP-Request-ID: 31df8351-ba2b-447c-8712-2ac6eb3acc99
Content-Length: 965
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "950b53f8-ba2b-4917-986c-4c8818b05fd1",
    "url": "/v2/apps/950b53f8-ba2b-4917-986c-4c8818b05fd1",
    "created_at": "2015-02-12T01:42:22Z",
    "updated_at": "2015-02-12T01:42:22Z"
  },
  "entity": {
    "name": "name-1976",
    "production": false,
    "space_guid": "8992885a-2ca9-48bd-ae2b-32d2a1ec7657",
    "stack_guid": "9fb9749b-859b-4831-95c1-dd74313489da",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STARTED",
    "version": "f8cb59ff-1ef5-4ac6-8739-bacffc69d0a3",
    "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-02-12T01:42:22Z",
    "detected_start_command": ""
  }
}