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.eyJ1c2VyX2lkIjoidWFhLWlkLTg2IiwiZW1haWwiOiJlbWFpbC01N0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE1NzU0MTMzfQ.NODxjuMHGjLXv_RPCFUDFU4VI3zJPKSp9vWbt8i8uu0
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

POST /v2/apps/e1925e37-a285-4171-a463-54a1d29e6306/restage

cURL

curl "https://api.[your-domain.com]/v2/apps/e1925e37-a285-4171-a463-54a1d29e6306/restage" -d '' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTg2IiwiZW1haWwiOiJlbWFpbC01N0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDE1NzU0MTMzfQ.NODxjuMHGjLXv_RPCFUDFU4VI3zJPKSp9vWbt8i8uu0" \
	-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/e1925e37-a285-4171-a463-54a1d29e6306
X-VCAP-Request-ID: 9e27a2fb-96dc-41dc-b6c8-a0232012fe7e
Content-Length: 946
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "e1925e37-a285-4171-a463-54a1d29e6306",
    "url": "/v2/apps/e1925e37-a285-4171-a463-54a1d29e6306",
    "created_at": "2014-11-05T01:02:13+00:00",
    "updated_at": "2014-11-05T01:02:13+00:00"
  },
  "entity": {
    "name": "name-291",
    "production": false,
    "space_guid": "c8e70063-179d-43d3-8dae-38feada0723e",
    "stack_guid": "47cbde04-5160-44b8-aeb2-1da5142f668f",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STARTED",
    "version": "5f672748-d058-46e9-8ad8-2ff9da7760a7",
    "command": null,
    "console": false,
    "debug": null,
    "staging_task_id": null,
    "package_state": "PENDING",
    "health_check_timeout": null,
    "staging_failed_reason": null,
    "docker_image": null,
    "package_updated_at": "2014-11-05T01:02:13+00:00",
    "detected_start_command": ""
  }
}