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

Route

POST /v2/apps/6d992312-6035-4987-9402-048a274c90b3/restage

cURL

curl "https://api.[your-domain.com]/v2/apps/6d992312-6035-4987-9402-048a274c90b3/restage" -d '' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4MiIsImVtYWlsIjoiZW1haWwtMjA3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTY1MjY3MTJ9.YgyRNsv38pt0Crojqccz6xudgRJZkCU4YHrMiVJvmgE" \
	-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/6d992312-6035-4987-9402-048a274c90b3
X-VCAP-Request-ID: 05441939-220d-436b-b71f-131f703775f4
Content-Length: 947
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "6d992312-6035-4987-9402-048a274c90b3",
    "url": "/v2/apps/6d992312-6035-4987-9402-048a274c90b3",
    "created_at": "2014-11-13T23:38:32+00:00",
    "updated_at": "2014-11-13T23:38:32+00:00"
  },
  "entity": {
    "name": "name-1164",
    "production": false,
    "space_guid": "1e730bf7-ea3f-42d4-ba86-1ace99241af2",
    "stack_guid": "a1d7c56f-2bd8-4dbb-a00a-8b718d3f7a9e",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STARTED",
    "version": "da84f0f8-2fbf-45f2-a364-8e1b60f59895",
    "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-13T23:38:32+00:00",
    "detected_start_command": ""
  }
}