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-2d73f300-bafc-4ce3-af28-bf0ea7a5e075/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.eyJ1c2VyX2lkIjoidWFhLWlkLTQ2IiwiZW1haWwiOiJlbWFpbC00NEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ3MTE2ODMwfQ.jOq3qAe1L5bFbNGfStuEPpUXDwKELg07_OZGhhwRhOM
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v3/apps/guid-2d73f300-bafc-4ce3-af28-bf0ea7a5e075/processes/web/instances/0" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTQ2IiwiZW1haWwiOiJlbWFpbC00NEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIucmVhZCIsImNsb3VkX2NvbnRyb2xsZXIud3JpdGUiXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDQ3MTE2ODMwfQ.jOq3qAe1L5bFbNGfStuEPpUXDwKELg07_OZGhhwRhOM" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: 7c31bb5b-3e35-4bcf-8fef-582a8f9531b0
X-Content-Type-Options: nosniff