Home
Version 3
Apps API

Apps API

Restage an App

POST /v2/apps/:guid/restage

Request

Route

POST /v2/apps/f1db8016-9134-4a6d-8409-89d0f8f5de50/restage

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwNyIsImVtYWlsIjoiZW1haWwtMjEzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2OTJ9.4iB2cjAK0j9c6u7knJIggELvVsd2rfq03x-qYu3aTRE
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/f1db8016-9134-4a6d-8409-89d0f8f5de50/restage" -d '' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwNyIsImVtYWlsIjoiZW1haWwtMjEzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2OTJ9.4iB2cjAK0j9c6u7knJIggELvVsd2rfq03x-qYu3aTRE" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "f1db8016-9134-4a6d-8409-89d0f8f5de50",
    "url": "/v2/apps/f1db8016-9134-4a6d-8409-89d0f8f5de50",
    "created_at": "2015-12-22T18:28:12Z",
    "updated_at": "2015-12-22T18:28:12Z"
  },
  "entity": {
    "name": "name-1024",
    "production": false,
    "space_guid": "b33ddcea-c4f3-439b-ad7c-d22a5c7bb523",
    "stack_guid": "6b0b6cde-03d1-4867-914e-3af12e62d9a1",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STARTED",
    "version": "ed967278-867b-466f-9403-8413cc1fe07a",
    "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-12-22T18:28:12Z",
    "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/f1db8016-9134-4a6d-8409-89d0f8f5de50
X-VCAP-Request-ID: 
Content-Length: 1158
X-Content-Type-Options: nosniff