Home
Version 3
Processes (Experimental) API

Processes (Experimental) API

Updating a Process

PATCH /v3/processes/:guid

Request

Route

PATCH /v3/processes/ebf4890c-ab04-4a3f-b9fb-99be8c9173a5

Body

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTg0IiwiZW1haWwiOiJlbWFpbC04M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDU2NDUyMjI3fQ.qwco6gKkMyl6u9lG3__NLKgDU8jkQaKDS3IobDwqdpE
Content-Type: application/json
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/processes/ebf4890c-ab04-4a3f-b9fb-99be8c9173a5" -d '{
  "command": "X"
}' -X PATCH \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTg0IiwiZW1haWwiOiJlbWFpbC04M0Bzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDU2NDUyMjI3fQ.qwco6gKkMyl6u9lG3__NLKgDU8jkQaKDS3IobDwqdpE" \
	-H "Content-Type: application/json" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "ebf4890c-ab04-4a3f-b9fb-99be8c9173a5",
  "type": "web",
  "command": "X",
  "instances": 1,
  "memory_in_mb": 1024,
  "disk_in_mb": 1024,
  "created_at": "2016-02-19T02:03:47Z",
  "updated_at": "2016-02-19T02:03:47Z",
  "links": {
    "self": {
      "href": "/v3/processes/ebf4890c-ab04-4a3f-b9fb-99be8c9173a5"
    },
    "scale": {
      "href": "/v3/processes/ebf4890c-ab04-4a3f-b9fb-99be8c9173a5/scale",
      "method": "PUT"
    },
    "app": {
      "href": "/v3/apps/"
    },
    "space": {
      "href": "/v2/spaces/82da7293-1a1d-42bf-9e2b-13ff06f04892"
    }
  }
}

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
X-Runtime: 0.030064
Content-Length: 586