Home
Version 3
Apps API

Apps API

Restage an App

POST /v2/apps/:guid/restage

Request

Route

POST /v2/apps/ac200075-9994-46ad-b1ea-46143847fa58/restage

Parameters

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/apps/ac200075-9994-46ad-b1ea-46143847fa58/restage" -d '' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQwNiIsImVtYWlsIjoiZW1haWwtMjk2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDE2NjI2MTl9.TyxFsCP16EhKBHjprTLscEJNepo6rYzrYhy0M36ibuo" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "ac200075-9994-46ad-b1ea-46143847fa58",
    "url": "/v2/apps/ac200075-9994-46ad-b1ea-46143847fa58",
    "created_at": "2015-08-31T21:50:19Z",
    "updated_at": "2015-08-31T21:50:19Z"
  },
  "entity": {
    "name": "name-2390",
    "production": false,
    "space_guid": "74b82477-135a-4007-ab1f-da473bb214cb",
    "stack_guid": "b2bd159c-5684-4b9a-8a64-c9154e3e930f",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STARTED",
    "version": "66f4805e-e76d-4b1e-944b-4efe8958c43e",
    "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": "2015-08-31T21:50:19Z",
    "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/ac200075-9994-46ad-b1ea-46143847fa58
X-VCAP-Request-ID: b5dd2b57-9e99-4eab-be02-cbac79428815
Content-Length: 1139
X-Content-Type-Options: nosniff