Home
Version 3
Processes (Experimental) API

Processes (Experimental) API

Updating a Process

PATCH /v3/processes/:guid

Request

Route

PATCH /v3/processes/12625f3f-ccee-4635-94c6-6dd0baac5ef1

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

cURL

curl "https://api.[your-domain.com]/v3/processes/12625f3f-ccee-4635-94c6-6dd0baac5ef1" -d '{
  "command": "X"
}' -X PATCH \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTEzNSIsImVtYWlsIjoiZW1haWwtNzNAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLnJlYWQiLCJjbG91ZF9jb250cm9sbGVyLndyaXRlIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQzMzk4MTEwM30.953_bACztyTzAy88VN6uQVSvXKa52HX9rCK8p21ayas" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "12625f3f-ccee-4635-94c6-6dd0baac5ef1",
  "type": "web",
  "command": "X",
  "instances": 1,
  "created_at": "2015-06-04T00:05:03Z",
  "updated_at": "2015-06-04T00:05:03Z",
  "_links": {
    "self": {
      "href": "/v3/processes/12625f3f-ccee-4635-94c6-6dd0baac5ef1"
    },
    "scale": {
      "href": "/v3/processes/12625f3f-ccee-4635-94c6-6dd0baac5ef1/scale",
      "method": "PUT"
    },
    "app": {
      "href": "/v3/apps/"
    },
    "space": {
      "href": "/v2/spaces/63a22c71-20db-40e6-b8b2-e878ae97e876"
    }
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 9e1c14e0-0394-44d2-b8b5-e91c9bb14bef
Content-Length: 541
X-Content-Type-Options: nosniff