Home
Version 3
Apps API

Apps API

Restage an App

POST /v2/apps/:guid/restage

Fields

Name Description Default Valid Values Example Values

Parameters

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

Request

Headers

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

Route

POST /v2/apps/66a0a46d-93bb-4a2c-8a12-5355ceae3914/restage

cURL

curl "https://api.[your-domain.com]/v2/apps/66a0a46d-93bb-4a2c-8a12-5355ceae3914/restage" -d '' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIxMCIsImVtYWlsIjoiZW1haWwtMTQyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQ0NzE2OTZ9.Fj0VeqSXPBCdM5tUvHAjJq_0R_IRXQqkABI6Wqy1lD0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/apps/66a0a46d-93bb-4a2c-8a12-5355ceae3914
X-VCAP-Request-ID: 9879f1b7-28cf-4b38-850a-dcf259a114b9
Content-Length: 985
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "66a0a46d-93bb-4a2c-8a12-5355ceae3914",
    "url": "/v2/apps/66a0a46d-93bb-4a2c-8a12-5355ceae3914",
    "created_at": "2015-02-13T22:34:56Z",
    "updated_at": "2015-02-13T22:34:56Z"
  },
  "entity": {
    "name": "name-1278",
    "production": false,
    "space_guid": "05dfadaa-c53b-4bbe-8957-40151158967a",
    "stack_guid": "2cda0339-b297-4c8a-85f7-4acd06f9ac28",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STARTED",
    "version": "c62eea06-44d8-4418-b77e-0d20cd6cc4b9",
    "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-02-13T22:34:56Z",
    "detected_start_command": ""
  }
}