Home
Version 3
Apps API

Apps API

Restage an App

POST /v2/apps/:guid/restage

Request

Route

POST /v2/apps/1b6d0930-28a2-4520-adeb-67bee5d2b689/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.eyJ1c2VyX2lkIjoidWFhLWlkLTM5MyIsImVtYWlsIjoiZW1haWwtMjk1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjc0ODA4NzF9.hpISQ1DlpGmiT3W1pVHeJzWed8XCxUre1dxecVjBNHI
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/1b6d0930-28a2-4520-adeb-67bee5d2b689/restage" -d '' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5MyIsImVtYWlsIjoiZW1haWwtMjk1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjc0ODA4NzF9.hpISQ1DlpGmiT3W1pVHeJzWed8XCxUre1dxecVjBNHI" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "1b6d0930-28a2-4520-adeb-67bee5d2b689",
    "url": "/v2/apps/1b6d0930-28a2-4520-adeb-67bee5d2b689",
    "created_at": "2015-03-20T18:27:51Z",
    "updated_at": "2015-03-20T18:27:51Z"
  },
  "entity": {
    "name": "name-2119",
    "production": false,
    "space_guid": "1c87fe12-0f44-4fc7-85f4-8d1e582905a6",
    "stack_guid": "ddb65317-a300-4377-8e0f-6207615f076d",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STARTED",
    "version": "c1f65ef0-0df3-4213-9c58-1e19a260429c",
    "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-20T18:27:51Z",
    "detected_start_command": ""
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/apps/1b6d0930-28a2-4520-adeb-67bee5d2b689
X-VCAP-Request-ID: 6fa3d01f-d662-41fb-97fc-9cf5dca962ad
Content-Length: 985
X-Content-Type-Options: nosniff