Home
Version 3
Apps API

Apps API

Restage an App

POST /v2/apps/:guid/restage

Request

Route

POST /v2/apps/ae3204e4-b4e5-4a05-b444-c0406745982f/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.eyJ1c2VyX2lkIjoidWFhLWlkLTEiLCJlbWFpbCI6ImVtYWlsLTFAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNzMyMzk1NH0.ika28o4q-rog0NQfa6GWUH3fY9iRfJszp81A6jIyuic
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/ae3204e4-b4e5-4a05-b444-c0406745982f/restage" -d '' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEiLCJlbWFpbCI6ImVtYWlsLTFAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNzMyMzk1NH0.ika28o4q-rog0NQfa6GWUH3fY9iRfJszp81A6jIyuic" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "ae3204e4-b4e5-4a05-b444-c0406745982f",
    "url": "/v2/apps/ae3204e4-b4e5-4a05-b444-c0406745982f",
    "created_at": "2015-03-18T22:52:34Z",
    "updated_at": "2015-03-18T22:52:34Z"
  },
  "entity": {
    "name": "name-4",
    "production": false,
    "space_guid": "bcc5fd3d-34c4-440e-8458-7477877aa346",
    "stack_guid": "0608ec4b-f006-454e-8ee8-12760f145921",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STARTED",
    "version": "ec99ff2b-4f94-4db3-b9d7-15c9b07d09ac",
    "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-18T22:52:34Z",
    "detected_start_command": ""
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/apps/ae3204e4-b4e5-4a05-b444-c0406745982f
X-VCAP-Request-ID: 0f6255ba-6e28-4f9f-881e-914ef0946b2d
Content-Length: 982
X-Content-Type-Options: nosniff