Home
Version 3
Apps API

Apps API

Restage an App

POST /v2/apps/:guid/restage

Request

Route

POST /v2/apps/c5ffa6e5-3f9b-4af1-89a3-257b70f732f4/restage

Parameters

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/apps/c5ffa6e5-3f9b-4af1-89a3-257b70f732f4/restage" -d '' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI5NyIsImVtYWlsIjoiZW1haWwtMTk0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NTB9.eW4rey6cXsVn27t9ahHNrrkJqaEB8MtZ8d8e_bkML88" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "c5ffa6e5-3f9b-4af1-89a3-257b70f732f4",
    "url": "/v2/apps/c5ffa6e5-3f9b-4af1-89a3-257b70f732f4",
    "created_at": "2015-09-30T23:30:50Z",
    "updated_at": "2015-09-30T23:30:50Z"
  },
  "entity": {
    "name": "name-1675",
    "production": false,
    "space_guid": "af4d099a-9e3e-47e5-9157-efa85ffdafa0",
    "stack_guid": "0339f70d-1c03-48f0-a4fb-cbaa16e0d752",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STARTED",
    "version": "eb774841-95b6-4f77-a94b-f145a53b9028",
    "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-09-30T23:30:50Z",
    "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/c5ffa6e5-3f9b-4af1-89a3-257b70f732f4
X-VCAP-Request-ID: 3f01a2cf-f512-4ceb-ade8-ca762208ed21
Content-Length: 1139
X-Content-Type-Options: nosniff