Home
Version 3
Apps API

Apps API

Restage an App

POST /v2/apps/:guid/restage

Request

Route

POST /v2/apps/7e12566b-4ad7-462d-8050-4e3bc9edc8ae/restage

Parameters

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

Body

Name Description Default Valid Values Example Values

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/apps/7e12566b-4ad7-462d-8050-4e3bc9edc8ae/restage" -d '' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTMwMCIsImVtYWlsIjoiZW1haWwtMjAzQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjU5NDg2NzF9.akvpNUwvRMKPWWueeaiq2sutsht2YC2J3jpndZbTN1M" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "7e12566b-4ad7-462d-8050-4e3bc9edc8ae",
    "url": "/v2/apps/7e12566b-4ad7-462d-8050-4e3bc9edc8ae",
    "created_at": "2015-03-03T00:51:11Z",
    "updated_at": "2015-03-03T00:51:11Z"
  },
  "entity": {
    "name": "name-1544",
    "production": false,
    "space_guid": "12224151-62d8-42e1-a911-dba0d07526fa",
    "stack_guid": "35eac13a-b840-4e65-8093-38afc51f5965",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STARTED",
    "version": "27f2def0-6087-446d-9f51-fd218cce15bc",
    "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,
    "diego": false,
    "docker_image": null,
    "package_updated_at": "2015-03-03T00:51:11Z",
    "detected_start_command": ""
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/apps/7e12566b-4ad7-462d-8050-4e3bc9edc8ae
X-VCAP-Request-ID: c640fbb3-86ba-405d-b123-af437be9b43f
Content-Length: 985
X-Content-Type-Options: nosniff