Home
Version 3
Processes (Experimental) API

Processes (Experimental) API

Updating a Process

PATCH /v3/processes/:guid

Request

Route

PATCH /v3/processes/b17b5d97-3f9b-4e4f-8740-15ec9bcec1cd

Body

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

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3NiIsImVtYWlsIjoiZW1haWwtMTgyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2ODl9.hz7zEp3tUUW1JJPjwctCooAd8jQn2t13kzUCXpx9iqg
Content-Type: application/json
Host: example.org
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/processes/b17b5d97-3f9b-4e4f-8740-15ec9bcec1cd" -d '{
  "command": "X"
}' -X PATCH \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI3NiIsImVtYWlsIjoiZW1haWwtMTgyQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NTE0MTM2ODl9.hz7zEp3tUUW1JJPjwctCooAd8jQn2t13kzUCXpx9iqg" \
	-H "Content-Type: application/json" \
	-H "Host: example.org" \
	-H "Cookie: "

Response

Status

200 OK

Body

{
  "guid": "b17b5d97-3f9b-4e4f-8740-15ec9bcec1cd",
  "type": "web",
  "command": "X",
  "instances": 1,
  "memory_in_mb": 1024,
  "disk_in_mb": 1024,
  "created_at": "2015-12-22T18:28:09Z",
  "updated_at": "2015-12-22T18:28:09Z",
  "links": {
    "self": {
      "href": "/v3/processes/b17b5d97-3f9b-4e4f-8740-15ec9bcec1cd"
    },
    "scale": {
      "href": "/v3/processes/b17b5d97-3f9b-4e4f-8740-15ec9bcec1cd/scale",
      "method": "PUT"
    },
    "app": {
      "href": "/v3/apps/"
    },
    "space": {
      "href": "/v2/spaces/a56f7a84-77a9-4c47-9271-8a79021792ea"
    }
  }
}

Headers

X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
X-Runtime: 0.027323
Content-Length: 586