Home
Version 3
Apps (Experimental) API

Apps (Experimental) API

Terminating a Process instance from its App

DELETE /v3/apps/:guid/processes/:type/instances/:index

Request

Route

DELETE /v3/apps/guid-4c1439e0-820a-4f0d-9b9f-6f42b653edf1/processes/web/instances/0

Body

Name Description Default Valid Values Example Values
guid App guid
type The type of instance
  • web
  • worker
index The index of the instance to terminate

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0MiIsImVtYWlsIjoiZW1haWwtMjQ0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NjR9.oxMD5e9BQFFZf3_I8ybw9fs50RLa_CDOXGWho5eH5Dc
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-4c1439e0-820a-4f0d-9b9f-6f42b653edf1/processes/web/instances/0" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM0MiIsImVtYWlsIjoiZW1haWwtMjQ0QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDU1NTc5NjR9.oxMD5e9BQFFZf3_I8ybw9fs50RLa_CDOXGWho5eH5Dc" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: bc77565c-50ac-4566-b242-0d16f7db0c67
X-Content-Type-Options: nosniff