Home
Version 3
Processes (Experimental) API

Processes (Experimental) API

Updating a Process

PATCH /v3/processes/:guid

Request

Route

PATCH /v3/processes/9f5636f2-c927-460b-b400-ab92b42460d5

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.eyJ1c2VyX2lkIjoidWFhLWlkLTI1NiIsImVtYWlsIjoiZW1haWwtMjAyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5OTN9.KwcBi3T-YsCgztEBsON6EpZFJNxSmXjTQR2iU9dOVAc
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/processes/9f5636f2-c927-460b-b400-ab92b42460d5" -d '{
  "command": "X"
}' -X PATCH \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI1NiIsImVtYWlsIjoiZW1haWwtMjAyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzI3NzQ5OTN9.KwcBi3T-YsCgztEBsON6EpZFJNxSmXjTQR2iU9dOVAc" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "9f5636f2-c927-460b-b400-ab92b42460d5",
  "type": "web",
  "command": "X",
  "instances": 1,
  "created_at": "2015-05-21T01:03:13Z",
  "updated_at": "2015-05-21T01:03:13Z",
  "_links": {
    "self": {
      "href": "/v3/processes/9f5636f2-c927-460b-b400-ab92b42460d5"
    },
    "scale": {
      "href": "/v3/processes/9f5636f2-c927-460b-b400-ab92b42460d5/scale",
      "method": "PUT"
    },
    "app": {
      "href": "/v3/apps/"
    },
    "space": {
      "href": "/v2/spaces/20b394cb-5d95-4aa6-9216-14736c4bd4bc"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 113c1371-c3e9-4d6a-b4cb-c5bbe5db1f5d
Content-Length: 541
X-Content-Type-Options: nosniff