Home
Version 3
Apps API

Apps API

Restage an App

POST /v2/apps/:guid/restage

Request

Route

POST /v2/apps/e97818b9-9dea-460b-8b74-f3e20c76c566/restage

Parameters

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/apps/e97818b9-9dea-460b-8b74-f3e20c76c566/restage" -d '' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1NCIsImVtYWlsIjoiZW1haWwtMTU2QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NjEzNzQ2MzN9.CZxoRGWvbVKWA1ISzB8HKdqzPMxdKj89l6sj0oTBwAM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "e97818b9-9dea-460b-8b74-f3e20c76c566",
    "url": "/v2/apps/e97818b9-9dea-460b-8b74-f3e20c76c566",
    "created_at": "2016-04-16T01:23:53Z",
    "updated_at": "2016-04-16T01:23:53Z"
  },
  "entity": {
    "name": "name-601",
    "production": false,
    "space_guid": "d8497525-56c9-47d8-be18-ad43062e8ca6",
    "stack_guid": "6f17d30e-a0b3-4924-a665-0db616990052",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STARTED",
    "version": "ac41206a-5f70-4be4-8f4b-776bca931164",
    "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": "2016-04-16T01:23:53Z",
    "detected_start_command": "",
    "enable_ssh": true,
    "docker_credentials_json": {
      "redacted_message": "[PRIVATE DATA HIDDEN]"
    },
    "ports": null
  }
}

Headers

Content-Type: application/json;charset=utf-8
Location: /v2/apps/e97818b9-9dea-460b-8b74-f3e20c76c566
X-VCAP-Request-ID: 39873ce6-892d-4dd8-82b3-a17bcfb7c761
Content-Length: 1157
X-Content-Type-Options: nosniff