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.eyJ1c2VyX2lkIjoidWFhLWlkLTE3OCIsImVtYWlsIjoiZW1haWwtMTI5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNjh9.ByvYC0UzbxTSiWfhoakBMeyL4R0FJaBqv2MGmoZQBlA
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

POST /v2/apps/a2a14ba0-515e-408b-8cbe-995f1e762929/restage

cURL

curl "https://api.[your-domain.com]/v2/apps/a2a14ba0-515e-408b-8cbe-995f1e762929/restage" -d '' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE3OCIsImVtYWlsIjoiZW1haWwtMTI5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MjQxMzczNjh9.ByvYC0UzbxTSiWfhoakBMeyL4R0FJaBqv2MGmoZQBlA" \
	-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/a2a14ba0-515e-408b-8cbe-995f1e762929
X-VCAP-Request-ID: 46ac8c2e-75b4-413e-ac71-9416a2d7a71a
Content-Length: 964
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "a2a14ba0-515e-408b-8cbe-995f1e762929",
    "url": "/v2/apps/a2a14ba0-515e-408b-8cbe-995f1e762929",
    "created_at": "2015-02-10T01:42:48Z",
    "updated_at": "2015-02-10T01:42:48Z"
  },
  "entity": {
    "name": "name-408",
    "production": false,
    "space_guid": "8f250cf7-2611-4bcd-98e7-64aebd779228",
    "stack_guid": "d9bdea99-6fcc-4a79-b0c8-ce90b37a627e",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STARTED",
    "version": "d92c9ce4-3bac-4a74-b6a9-16de67645137",
    "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,
    "docker_image": null,
    "package_updated_at": "2015-02-10T01:42:48Z",
    "detected_start_command": ""
  }
}