Home
Version 3
Processes (Experimental) API

Processes (Experimental) API

Updating a Process

PATCH /v3/processes/:guid

Request

Route

PATCH /v3/processes/92d5b770-32ed-4f5c-8def-b1f2348447fb

Body

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2OCIsImVtYWlsIjoiZW1haWwtMjU4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE4MTJ9.ZS7X-80ArodQ5EUDccyUCzgejW9BmnwyLT6Q4QWbd4I
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/processes/92d5b770-32ed-4f5c-8def-b1f2348447fb" -d '{
  "command": "X"
}' -X PATCH \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM2OCIsImVtYWlsIjoiZW1haWwtMjU4QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0Mzg2NDE4MTJ9.ZS7X-80ArodQ5EUDccyUCzgejW9BmnwyLT6Q4QWbd4I" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "92d5b770-32ed-4f5c-8def-b1f2348447fb",
  "type": "web",
  "command": "X",
  "instances": 1,
  "memory_in_mb": 1024,
  "disk_in_mb": 1024,
  "created_at": "2015-07-27T22:43:32Z",
  "updated_at": "2015-07-27T22:43:32Z",
  "_links": {
    "self": {
      "href": "/v3/processes/92d5b770-32ed-4f5c-8def-b1f2348447fb"
    },
    "scale": {
      "href": "/v3/processes/92d5b770-32ed-4f5c-8def-b1f2348447fb/scale",
      "method": "PUT"
    },
    "app": {
      "href": "/v3/apps/"
    },
    "space": {
      "href": "/v2/spaces/b7f8b3b1-3210-4151-a356-c26f31289064"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: b15920ef-4fbe-4e82-9ea1-59687b41cb24
Content-Length: 587
X-Content-Type-Options: nosniff