Home
Version 3
Apps API

Apps API

Restage an App

POST /v2/apps/:guid/restage

Request

Route

POST /v2/apps/241cb718-153d-4b71-b2da-175f33e1d3e2/restage

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0IiwiZW1haWwiOiJlbWFpbC0xNEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDUzODM3MjUzfQ.zbsE-95Uu6KYzbOlmOFmW6OHTGA7kGrv1vUJo8Dlvfw
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/241cb718-153d-4b71-b2da-175f33e1d3e2/restage" -d '' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0IiwiZW1haWwiOiJlbWFpbC0xNEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDUzODM3MjUzfQ.zbsE-95Uu6KYzbOlmOFmW6OHTGA7kGrv1vUJo8Dlvfw" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "241cb718-153d-4b71-b2da-175f33e1d3e2",
    "url": "/v2/apps/241cb718-153d-4b71-b2da-175f33e1d3e2",
    "created_at": "2016-01-19T19:40:53Z",
    "updated_at": "2016-01-19T19:40:53Z"
  },
  "entity": {
    "name": "name-7",
    "production": false,
    "space_guid": "1bfe067d-db1e-494f-8356-7de29543b019",
    "stack_guid": "aa104778-35ff-46ee-b97c-c25c16a18c93",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STARTED",
    "version": "c74c45c2-e8ad-441f-a64a-c4a90c58ed5c",
    "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,
    "staging_failed_description": null,
    "diego": false,
    "docker_image": null,
    "package_updated_at": "2016-01-19T19:40:53Z",
    "detected_start_command": "",
    "enable_ssh": true,
    "docker_credentials_json": {
      "redacted_message": "[PRIVATE DATA HIDDEN]"
    },
    "ports": null
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/apps/241cb718-153d-4b71-b2da-175f33e1d3e2
X-VCAP-Request-ID: 
Content-Length: 1155
X-Content-Type-Options: nosniff