Home
Version 3
Processes (Experimental) API

Processes (Experimental) API

Updating a Process

PATCH /v3/processes/:guid

Request

Route

PATCH /v3/processes/e0a7d4f6-7f6a-44a4-880c-3fc33521d052

Body

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2MCIsImVtYWlsIjoiZW1haWwtMTU3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NDZ9.9tUUvcbcj6htFykPmTHYpNcoQBOHFV2mllTRetQfcow
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/processes/e0a7d4f6-7f6a-44a4-880c-3fc33521d052" -d '{
  "command": "X"
}' -X PATCH \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI2MCIsImVtYWlsIjoiZW1haWwtMTU3QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQyNjA2NDZ9.9tUUvcbcj6htFykPmTHYpNcoQBOHFV2mllTRetQfcow" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "e0a7d4f6-7f6a-44a4-880c-3fc33521d052",
  "type": "web",
  "command": "X",
  "instances": 1,
  "memory_in_mb": 1024,
  "disk_in_mb": 1024,
  "created_at": "2015-09-30T23:30:45Z",
  "updated_at": "2015-09-30T23:30:46Z",
  "links": {
    "self": {
      "href": "/v3/processes/e0a7d4f6-7f6a-44a4-880c-3fc33521d052"
    },
    "scale": {
      "href": "/v3/processes/e0a7d4f6-7f6a-44a4-880c-3fc33521d052/scale",
      "method": "PUT"
    },
    "app": {
      "href": "/v3/apps/"
    },
    "space": {
      "href": "/v2/spaces/070cfa18-196f-47a8-b915-794dc7b90036"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: a9737605-c48a-4839-8f25-db43468ba603
Content-Length: 586
X-Content-Type-Options: nosniff