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

Route

POST /v2/apps/8c12d638-bc62-44d6-a651-6b6427377c1c/restage

cURL

curl "https://api.[your-domain.com]/v2/apps/8c12d638-bc62-44d6-a651-6b6427377c1c/restage" -d '' -X POST \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzNyIsImVtYWlsIjoiZW1haWwtODlAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQxOTk4OTk2N30.NjZeJVs6wQcLdGkAVLVt0OQbQbQ6MmlJVX7KtYa7GII" \
	-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/8c12d638-bc62-44d6-a651-6b6427377c1c
X-VCAP-Request-ID: 10c5c3d7-8ac1-4dda-826b-ed8b5c5a185f
Content-Length: 980
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "8c12d638-bc62-44d6-a651-6b6427377c1c",
    "url": "/v2/apps/8c12d638-bc62-44d6-a651-6b6427377c1c",
    "created_at": "2014-12-24T01:39:27+00:00",
    "updated_at": "2014-12-24T01:39:27+00:00"
  },
  "entity": {
    "name": "name-1048",
    "production": false,
    "space_guid": "80732b97-e1b9-47c4-a1e4-e238cff19d42",
    "stack_guid": "58b7de38-142b-4164-b19f-5f71cf5be486",
    "buildpack": null,
    "detected_buildpack": null,
    "environment_json": null,
    "memory": 1024,
    "instances": 1,
    "disk_quota": 1024,
    "state": "STARTED",
    "version": "f92bc0e5-a909-4442-a0e2-12f9f3772a02",
    "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": "2014-12-24T01:39:27+00:00",
    "detected_start_command": ""
  }
}