Home
Version 3
Processes (Experimental) API

Processes (Experimental) API

Updating a Process

PATCH /v3/processes/:guid

Request

Route

PATCH /v3/processes/6c6df1ad-f9e3-4499-8ed1-13f26223ba32

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

cURL

curl "https://api.[your-domain.com]/v3/processes/6c6df1ad-f9e3-4499-8ed1-13f26223ba32" -d '{
  "command": "X"
}' -X PATCH \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwNiIsImVtYWlsIjoiZW1haWwtMTM0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MzE2NDY2MzV9.UgR1C8KJVoGO6HwetwYxyNcQmDWLMYAjPjlvgNZMrxk" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "6c6df1ad-f9e3-4499-8ed1-13f26223ba32",
  "type": "web",
  "command": "X",
  "instances": 1,
  "created_at": "2015-05-07T23:37:15Z",
  "updated_at": "2015-05-07T23:37:15Z",
  "_links": {
    "self": {
      "href": "/v3/processes/6c6df1ad-f9e3-4499-8ed1-13f26223ba32"
    },
    "app": {
      "href": "/v3/apps/"
    },
    "space": {
      "href": "/v2/spaces/d5871dbb-5a80-4dfa-b1c9-d223f803bdbe"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 703e3241-3f5e-4d20-9e1e-64c99e202533
Content-Length: 423
X-Content-Type-Options: nosniff