Home
Version 3
Apps API

Apps API

Restage an App

POST /v2/apps/:guid/restage

Request

Route

POST /v2/apps/ec57849d-c62b-40a6-92e4-3daccf8f5d3c/restage

Parameters

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/apps/ec57849d-c62b-40a6-92e4-3daccf8f5d3c/restage" -d '' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0IiwiZW1haWwiOiJlbWFpbC0xM0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDU2NDUyMjIwfQ.zrR1yYrMuvGjZlTqdDeSgMF7wcfFKlQnKaOpS7mPTj0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "ec57849d-c62b-40a6-92e4-3daccf8f5d3c",
    "url": "/v2/apps/ec57849d-c62b-40a6-92e4-3daccf8f5d3c",
    "created_at": "2016-02-19T02:03:40Z",
    "updated_at": "2016-02-19T02:03:40Z"
  },
  "entity": {
    "name": "name-101",
    "production": false,
    "space_guid": "3bb6208c-61ec-47e3-81be-43065e76e8ee",
    "stack_guid": "6bd3f4e5-8e5b-4d38-b9a4-ceb53623cdfc",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STARTED",
    "version": "bf914f9b-3b0e-4898-9cd0-8ab1839a1e38",
    "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-02-19T02:03:40Z",
    "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/ec57849d-c62b-40a6-92e4-3daccf8f5d3c
X-VCAP-Request-ID: 
Content-Length: 1157
X-Content-Type-Options: nosniff