Home
Version 3
Apps API

Apps API

Restage an App

POST /v2/apps/:guid/restage

Request

Route

POST /v2/apps/c72c4cbb-51b4-47bb-af4e-24155f4077ab/restage

Parameters

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/apps/c72c4cbb-51b4-47bb-af4e-24155f4077ab/restage" -d '' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTkiLCJlbWFpbCI6ImVtYWlsLTlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0NTM2MjI5NX0.-JvhvEhUZYDitYe8Ok133WAkNos0zP1m42aU6mJpsf0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "c72c4cbb-51b4-47bb-af4e-24155f4077ab",
    "url": "/v2/apps/c72c4cbb-51b4-47bb-af4e-24155f4077ab",
    "created_at": "2015-10-13T17:31:35Z",
    "updated_at": "2015-10-13T17:31:35Z"
  },
  "entity": {
    "name": "name-65",
    "production": false,
    "space_guid": "6c541513-2e0a-4d4f-a068-ab0aefe0ef4c",
    "stack_guid": "8a32f8e4-aafe-4ca1-bd44-04ed252b2873",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STARTED",
    "version": "29fca567-5c71-4b4f-9f6b-117537c7f6f2",
    "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": "2015-10-13T17:31:35Z",
    "detected_start_command": "",
    "enable_ssh": true,
    "docker_credentials_json": {
      "redacted_message": "[PRIVATE DATA HIDDEN]"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/apps/c72c4cbb-51b4-47bb-af4e-24155f4077ab
X-VCAP-Request-ID: 537f41a9-72a8-440a-86a4-84da3a197d1a
Content-Length: 1137
X-Content-Type-Options: nosniff