Home
Version 3
Processes (Experimental) API

Processes (Experimental) API

Updating a Process

PATCH /v3/processes/:guid

Request

Route

PATCH /v3/processes/469b7198-4863-468e-8aa1-a38bbeaaf984

Parameters

Name Description Valid Values Example Values
command Start command for process

Body

Name Description Default Valid Values Example Values
{
  "command": "X"
}

Headers

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

cURL

curl "https://api.[your-domain.com]/v3/processes/469b7198-4863-468e-8aa1-a38bbeaaf984" -d '{
  "command": "X"
}' -X PATCH \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM3IiwiZW1haWwiOiJlbWFpbC0zN0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDMyMzEzNjA1fQ.hCqYrFrhknrDoA5jp4258B3F_QE_4ltfVhPOuxL18_0" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "469b7198-4863-468e-8aa1-a38bbeaaf984",
  "type": "web",
  "command": "X",
  "instances": 1,
  "created_at": "2015-05-15T16:53:25Z",
  "updated_at": "2015-05-15T16:53:25Z",
  "_links": {
    "self": {
      "href": "/v3/processes/469b7198-4863-468e-8aa1-a38bbeaaf984"
    },
    "app": {
      "href": "/v3/apps/"
    },
    "space": {
      "href": "/v2/spaces/9248fb7e-6634-4a77-b306-de450b48780b"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 80501095-26e9-44e9-8046-e0f2f6be41c3
Content-Length: 423
X-Content-Type-Options: nosniff