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-aa622254-0b13-4645-83d9-bb2833082d12/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.eyJ1c2VyX2lkIjoidWFhLWlkLTI4NyIsImVtYWlsIjoiZW1haWwtMjE5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMTR9.ZJubdvPoWfxQ39cJcI7sGFhinXfZ3NRNGhx63sONpXM
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-aa622254-0b13-4645-83d9-bb2833082d12/processes/web/instances/0" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTI4NyIsImVtYWlsIjoiZW1haWwtMjE5QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5yZWFkIiwiY2xvdWRfY29udHJvbGxlci53cml0ZSJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDUzNjIzMTR9.ZJubdvPoWfxQ39cJcI7sGFhinXfZ3NRNGhx63sONpXM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: a57637fc-56fe-44d8-b0d0-7d5896fd807c
X-Content-Type-Options: nosniff