Home
Version 3
Apps API

Apps API

Restage an App

POST /v2/apps/:guid/restage

Request

Route

POST /v2/apps/7254cd30-6e81-45e1-8f0f-1aa4ceea12ac/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.eyJ1c2VyX2lkIjoidWFhLWlkLTIwMiIsImVtYWlsIjoiZW1haWwtMTMwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2MzR9.83gWkTBAXda2yuQYdGh5zj-lCb2SRJSTtDqzRjewPp0
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/7254cd30-6e81-45e1-8f0f-1aa4ceea12ac/restage" -d '' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwMiIsImVtYWlsIjoiZW1haWwtMTMwQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2MzR9.83gWkTBAXda2yuQYdGh5zj-lCb2SRJSTtDqzRjewPp0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "7254cd30-6e81-45e1-8f0f-1aa4ceea12ac",
    "url": "/v2/apps/7254cd30-6e81-45e1-8f0f-1aa4ceea12ac",
    "created_at": "2015-05-07T23:37:14Z",
    "updated_at": "2015-05-07T23:37:14Z"
  },
  "entity": {
    "name": "name-1317",
    "production": false,
    "space_guid": "7a4b7429-ef92-4f32-a29c-7b7a24849d49",
    "stack_guid": "c43cf567-538f-4a89-8e68-d0b08c097b80",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STARTED",
    "version": "bad4a11f-2ddb-4fa6-a8ec-3ec13de70780",
    "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-05-07T23:37:14Z",
    "detected_start_command": "",
    "enable_ssh": true
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/apps/7254cd30-6e81-45e1-8f0f-1aa4ceea12ac
X-VCAP-Request-ID: 172a32e3-c84c-4e7c-a518-445e1a63bc2f
Content-Length: 1009
X-Content-Type-Options: nosniff