Home
Version 3
Apps API

Apps API

Restage an App

POST /v2/apps/:guid/restage

Request

Route

POST /v2/apps/1a2f8527-df24-4173-be7e-c1f421f2b95c/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.eyJ1c2VyX2lkIjoidWFhLWlkLTMzMCIsImVtYWlsIjoiZW1haWwtMjQ2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NjJ9.tj5v0UUnxo6k9hZEQLlDOVlhg1hAk011P2rx8OERVbU
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/1a2f8527-df24-4173-be7e-c1f421f2b95c/restage" -d '' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMzMCIsImVtYWlsIjoiZW1haWwtMjQ2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzUxMDI4NjJ9.tj5v0UUnxo6k9hZEQLlDOVlhg1hAk011P2rx8OERVbU" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "1a2f8527-df24-4173-be7e-c1f421f2b95c",
    "url": "/v2/apps/1a2f8527-df24-4173-be7e-c1f421f2b95c",
    "created_at": "2015-06-16T23:41:02Z",
    "updated_at": "2015-06-16T23:41:02Z"
  },
  "entity": {
    "name": "name-2007",
    "production": false,
    "space_guid": "d8b5ef1b-2d1e-422f-a767-b22ada58c955",
    "stack_guid": "11e3174e-44e3-4491-bb4d-9fea3f8a864c",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STARTED",
    "version": "1394fa53-ee4d-4491-a064-5003d0bfd165",
    "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-06-16T23:41:02Z",
    "detected_start_command": "",
    "enable_ssh": true,
    "docker_credentials_json": {
      "redacted_message": "[PRIVATE DATA HIDDEN]"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/apps/1a2f8527-df24-4173-be7e-c1f421f2b95c
X-VCAP-Request-ID: 026d4c88-9111-407e-942c-1422c1e514a8
Content-Length: 1099
X-Content-Type-Options: nosniff