Home
Version 3
Apps API

Apps API

Restage an App

POST /v2/apps/:guid/restage

Request

Route

POST /v2/apps/54ef99b6-7eb1-4c45-b5bf-d18f400b9760/restage

Parameters

Name Description Valid Values Example Values
guid The guid of the App

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4OSIsImVtYWlsIjoiZW1haWwtMTUwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0Mzl9.fpbEHaImu2A30LIJCM3y9Px1tWR22jg8OxwKXn4PyVw
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/54ef99b6-7eb1-4c45-b5bf-d18f400b9760/restage" -d '' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE4OSIsImVtYWlsIjoiZW1haWwtMTUwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTg1OTk0Mzl9.fpbEHaImu2A30LIJCM3y9Px1tWR22jg8OxwKXn4PyVw" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "54ef99b6-7eb1-4c45-b5bf-d18f400b9760",
    "url": "/v2/apps/54ef99b6-7eb1-4c45-b5bf-d18f400b9760",
    "created_at": "2016-03-14T22:30:39Z",
    "updated_at": "2016-03-14T22:30:39Z"
  },
  "entity": {
    "name": "name-1801",
    "production": false,
    "space_guid": "d0dfce3d-ff0e-47d0-a2f9-5cc0085ef28a",
    "stack_guid": "eb7acca6-4b58-429e-a506-4df1ffe037f5",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STARTED",
    "version": "c67b771a-4491-4bf3-ada5-6f5e2d712658",
    "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,
    "staging_failed_description": null,
    "diego": false,
    "docker_image": null,
    "package_updated_at": "2016-03-14T22:30:39Z",
    "detected_start_command": "",
    "enable_ssh": true,
    "docker_credentials_json": {
      "redacted_message": "[PRIVATE DATA HIDDEN]"
    },
    "ports": null
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/apps/54ef99b6-7eb1-4c45-b5bf-d18f400b9760
X-VCAP-Request-ID: 
Content-Length: 1158
X-Content-Type-Options: nosniff