Assigning a droplet as a an Apps current droplet
PUT /v3/apps/:guid/current_droplet
Request
Route
PUT /v3/apps/guid-36a67f7f-c3f6-481a-bcfc-ec89d6423edf/current_droplet
Body
Name |
Description |
Default |
Valid Values |
Example Values |
desired_droplet_guid
|
GUID of the Staged Droplet to be used for the App
|
|
|
|
{
"desired_droplet_guid": "guid-191cbded-7677-43d4-b97d-629a74bd9ce2"
}
Headers
cURL
curl "https://api.[your-domain.com]/v3/apps/guid-36a67f7f-c3f6-481a-bcfc-ec89d6423edf/current_droplet" -d '{
"desired_droplet_guid": "guid-191cbded-7677-43d4-b97d-629a74bd9ce2"
}' -X PUT \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTcyIiwiZW1haWwiOiJlbWFpbC00M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM2ODI5Nzc2fQ.IuTMB6XDVWtoq6OXuiKupvwE5l1XrrBFYdLNMBPFJSw" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
200 OK
Body
{
"guid": "guid-36a67f7f-c3f6-481a-bcfc-ec89d6423edf",
"name": "name1",
"desired_state": "STOPPED",
"total_desired_instances": 1,
"buildpack": null,
"created_at": "2015-07-06T23:22:56Z",
"updated_at": "2015-07-06T23:22:56Z",
"environment_variables": {
},
"_links": {
"self": {
"href": "/v3/apps/guid-36a67f7f-c3f6-481a-bcfc-ec89d6423edf"
},
"processes": {
"href": "/v3/apps/guid-36a67f7f-c3f6-481a-bcfc-ec89d6423edf/processes"
},
"packages": {
"href": "/v3/apps/guid-36a67f7f-c3f6-481a-bcfc-ec89d6423edf/packages"
},
"space": {
"href": "/v2/spaces/525e95b7-0cc6-4af2-8dc6-538523184f31"
},
"desired_droplet": {
"href": "/v3/droplets/guid-191cbded-7677-43d4-b97d-629a74bd9ce2"
},
"start": {
"href": "/v3/apps/guid-36a67f7f-c3f6-481a-bcfc-ec89d6423edf/start",
"method": "PUT"
},
"stop": {
"href": "/v3/apps/guid-36a67f7f-c3f6-481a-bcfc-ec89d6423edf/stop",
"method": "PUT"
},
"assign_current_droplet": {
"href": "/v3/apps/guid-36a67f7f-c3f6-481a-bcfc-ec89d6423edf/current_droplet",
"method": "PUT"
}
}
}
Headers