Home
Version 3
Apps API

Apps API

Restage an App

POST /v2/apps/:guid/restage

Request

Route

POST /v2/apps/0302f78f-d4db-48bb-8ae8-2d21e8c61da0/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.eyJ1c2VyX2lkIjoidWFhLWlkLTQxIiwiZW1haWwiOiJlbWFpbC00MUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMyMzEzNjA2fQ.6o8vyEQ2GRpJ43SFdXhLXovN7WTXv6CBj9CnTVCDrk8
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/0302f78f-d4db-48bb-8ae8-2d21e8c61da0/restage" -d '' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQxIiwiZW1haWwiOiJlbWFpbC00MUBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMyMzEzNjA2fQ.6o8vyEQ2GRpJ43SFdXhLXovN7WTXv6CBj9CnTVCDrk8" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "0302f78f-d4db-48bb-8ae8-2d21e8c61da0",
    "url": "/v2/apps/0302f78f-d4db-48bb-8ae8-2d21e8c61da0",
    "created_at": "2015-05-15T16:53:26Z",
    "updated_at": "2015-05-15T16:53:26Z"
  },
  "entity": {
    "name": "name-203",
    "production": false,
    "space_guid": "dae9eca1-5bf0-4834-a1d9-e2e75f835efc",
    "stack_guid": "ec49a19b-83d4-4e6d-94f7-2121b0c4df59",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STARTED",
    "version": "711652aa-a728-4873-a47e-dd5aabf73d65",
    "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-05-15T16:53:26Z",
    "detected_start_command": "",
    "enable_ssh": true
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/apps/0302f78f-d4db-48bb-8ae8-2d21e8c61da0
X-VCAP-Request-ID: 6398e726-c2ff-460c-8050-6c7bf945b717
Content-Length: 1008
X-Content-Type-Options: nosniff