Home
Version 3
Apps API

Apps API

Restage an App

POST /v2/apps/:guid/restage

Request

Route

POST /v2/apps/bd183a2e-8766-4589-8c64-a34d500a5a81/restage

Parameters

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3OCIsImVtYWlsIjoiZW1haWwtMTk1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTJ9.Tt0QyDoCH4LdmwDyCzkLLRhV7-Je18QvngdIwwMA62I
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/apps/bd183a2e-8766-4589-8c64-a34d500a5a81/restage" -d '' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3OCIsImVtYWlsIjoiZW1haWwtMTk1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzY4Mjk3OTJ9.Tt0QyDoCH4LdmwDyCzkLLRhV7-Je18QvngdIwwMA62I" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "bd183a2e-8766-4589-8c64-a34d500a5a81",
    "url": "/v2/apps/bd183a2e-8766-4589-8c64-a34d500a5a81",
    "created_at": "2015-07-06T23:23:12Z",
    "updated_at": "2015-07-06T23:23:12Z"
  },
  "entity": {
    "name": "name-1717",
    "production": false,
    "space_guid": "d5996640-480d-48e0-af10-2165f9f820e8",
    "stack_guid": "9daa7645-0739-4c7f-ade4-36384921fdae",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STARTED",
    "version": "1b02bf2d-c40a-4b6e-984d-0efe2cb15ebf",
    "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-07-06T23:23:12Z",
    "detected_start_command": "",
    "enable_ssh": true,
    "docker_credentials_json": {
      "redacted_message": "[PRIVATE DATA HIDDEN]"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/apps/bd183a2e-8766-4589-8c64-a34d500a5a81
X-VCAP-Request-ID: 24d91d8f-fdf1-4e9a-b5c1-5fe1c8c486d6
Content-Length: 1139
X-Content-Type-Options: nosniff