Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Updating an App

PATCH /v3/apps/:guid

Request

Route

PATCH /v3/apps/guid-3763f3dd-630b-4d71-9953-ef5275e1efb4

Parameters

Name Description Valid Values Example Values
name Name of the App
desired_droplet_guid GUID of the Droplet to be used for the App

Body

Name Description Default Valid Values Example Values
{
  "name": "new_name",
  "desired_droplet_guid": "guid-f98239ea-cb38-4f1c-a899-6e44e09bd599"
}

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTciLCJlbWFpbCI6ImVtYWlsLTZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNjYzMzg5M30.OsGm5XNr-9Cr7ubM0UjUai8ngXEarvD5b2x5MjsJfQM
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-3763f3dd-630b-4d71-9953-ef5275e1efb4" -d '{
  "name": "new_name",
  "desired_droplet_guid": "guid-f98239ea-cb38-4f1c-a899-6e44e09bd599"
}' -X PATCH \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTciLCJlbWFpbCI6ImVtYWlsLTZAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQyNjYzMzg5M30.OsGm5XNr-9Cr7ubM0UjUai8ngXEarvD5b2x5MjsJfQM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "guid-3763f3dd-630b-4d71-9953-ef5275e1efb4",
  "name": "new_name",
  "_links": {
    "self": {
      "href": "/v3/apps/guid-3763f3dd-630b-4d71-9953-ef5275e1efb4"
    },
    "processes": {
      "href": "/v3/apps/guid-3763f3dd-630b-4d71-9953-ef5275e1efb4/processes"
    },
    "packages": {
      "href": "/v3/apps/guid-3763f3dd-630b-4d71-9953-ef5275e1efb4/packages"
    },
    "space": {
      "href": "/v2/spaces/f17d3a56-c33c-4c49-a97c-0e6b08fb6a17"
    },
    "desired_droplet": {
      "href": "/v3/droplets/guid-f98239ea-cb38-4f1c-a899-6e44e09bd599"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 74bc29ed-9a27-43c5-8fae-8b7d09c729ec
Content-Length: 578
X-Content-Type-Options: nosniff