Home
Version 3
Apps API

Apps API

Restage an App

POST /v2/apps/:guid/restage

Request

Route

POST /v2/apps/88668e3c-241c-46c2-b118-64a17b572b5e/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.eyJ1c2VyX2lkIjoidWFhLWlkLTIyNiIsImVtYWlsIjoiZW1haWwtMTQ3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxNDJ9.3AIkFWQ5d3LBag1sdEq1atx7MbEet90CCBu5u2uTxHk
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/88668e3c-241c-46c2-b118-64a17b572b5e/restage" -d '' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIyNiIsImVtYWlsIjoiZW1haWwtMTQ3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mjk2NjQxNDJ9.3AIkFWQ5d3LBag1sdEq1atx7MbEet90CCBu5u2uTxHk" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "88668e3c-241c-46c2-b118-64a17b572b5e",
    "url": "/v2/apps/88668e3c-241c-46c2-b118-64a17b572b5e",
    "created_at": "2015-04-15T00:55:42Z",
    "updated_at": "2015-04-15T00:55:42Z"
  },
  "entity": {
    "name": "name-1453",
    "production": false,
    "space_guid": "42485967-9948-43b2-b1c5-b9df3e6cd489",
    "stack_guid": "39641832-bf86-4593-88ba-8d651be87d11",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STARTED",
    "version": "feac6ce2-64c7-4cbc-8873-ca9e5a28dbd0",
    "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-04-15T00:55:42Z",
    "detected_start_command": ""
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/apps/88668e3c-241c-46c2-b118-64a17b572b5e
X-VCAP-Request-ID: a70d6259-3518-4a67-a45c-a2eb69fc9e1b
Content-Length: 985
X-Content-Type-Options: nosniff