Home
Version 3
Apps API

Apps API

Restage an App

POST /v2/apps/:guid/restage

Request

Route

POST /v2/apps/6ee1b7e1-af03-4e57-88b5-209e2efaed42/restage

Parameters

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

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/apps/6ee1b7e1-af03-4e57-88b5-209e2efaed42/restage" -d '' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQzNyIsImVtYWlsIjoiZW1haWwtMzA4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTQ0NTE2MzZ9.GSCL0PO7xK6XYgs6SEJnu6rfbNvvHZsGoN4IigdimbQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "6ee1b7e1-af03-4e57-88b5-209e2efaed42",
    "url": "/v2/apps/6ee1b7e1-af03-4e57-88b5-209e2efaed42",
    "created_at": "2016-01-26T22:20:35Z",
    "updated_at": "2016-01-26T22:20:35Z"
  },
  "entity": {
    "name": "name-2460",
    "production": false,
    "space_guid": "779f4265-473c-42e6-81ec-461ffb90409b",
    "stack_guid": "1f23d3cc-55ac-48a3-86d7-52f0e1893854",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STARTED",
    "version": "be55aafc-7403-4ab4-b18a-e49948cc6c0f",
    "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-01-26T22:20:36Z",
    "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/6ee1b7e1-af03-4e57-88b5-209e2efaed42
X-VCAP-Request-ID: 
Content-Length: 1158
X-Content-Type-Options: nosniff