Home
Version 3
Apps API

Apps API

Restage an App

POST /v2/apps/:guid/restage

Fields

Name Description Default Valid Values Example Values

Parameters

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

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0MSIsImVtYWlsIjoiZW1haWwtMTE0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNTl9.RIE7JPnUYeCJCtDN5xn4KKt3o-O7rTUdnXXtdWEbgcc
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

POST /v2/apps/c37cc0a5-6110-439e-8e12-1861f61673e2/restage

cURL

curl "https://api.[your-domain.com]/v2/apps/c37cc0a5-6110-439e-8e12-1861f61673e2/restage" -d '' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0MSIsImVtYWlsIjoiZW1haWwtMTE0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTc0NjIzNTl9.RIE7JPnUYeCJCtDN5xn4KKt3o-O7rTUdnXXtdWEbgcc" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/apps/c37cc0a5-6110-439e-8e12-1861f61673e2
X-VCAP-Request-ID: 0067597b-c8c5-47b7-8a30-a6d27df9dd61
Content-Length: 946
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "c37cc0a5-6110-439e-8e12-1861f61673e2",
    "url": "/v2/apps/c37cc0a5-6110-439e-8e12-1861f61673e2",
    "created_at": "2014-11-24T19:32:39+00:00",
    "updated_at": "2014-11-24T19:32:39+00:00"
  },
  "entity": {
    "name": "name-553",
    "production": false,
    "space_guid": "321f10ac-7b5c-4611-bfeb-f93f0db9d66f",
    "stack_guid": "d81714b6-c807-49af-b94d-d9be4a0628ed",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STARTED",
    "version": "fb9cb371-d5f6-41c3-acb7-5293f3774e27",
    "command": null,
    "console": false,
    "debug": null,
    "staging_task_id": null,
    "package_state": "PENDING",
    "health_check_timeout": null,
    "staging_failed_reason": null,
    "docker_image": null,
    "package_updated_at": "2014-11-24T19:32:39+00:00",
    "detected_start_command": ""
  }
}