Home
Version 3
Apps API

Apps API

Terminate the running App Instance at the given index

DELETE /v2/apps/:guid/instances/:index

Request

Route

DELETE /v2/apps/dc2c26b2-b29c-4dfc-9407-85b2096240c9/instances/0

Parameters

Name Description Valid Values Example Values
guid The guid of the App
index The index of the App Instance to terminate

Headers

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

cURL

curl "https://api.[your-domain.com]/v2/apps/dc2c26b2-b29c-4dfc-9407-85b2096240c9/instances/0" -d '' -X DELETE \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE1NCIsImVtYWlsIjoiZW1haWwtODdAc29tZWRvbWFpbi5jb20iLCJzY29wZSI6WyJjbG91ZF9jb250cm9sbGVyLmFkbWluIl0sImF1ZCI6WyJjbG91ZF9jb250cm9sbGVyIl0sImV4cCI6MTQ0MjYwMTUzMH0.ZgO4hfbuXaz3IjGGDy4NfKXUI4nLRjz02yJoX8EJ_gg" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

204 No Content

Headers

X-VCAP-Request-ID: 0c737005-17d8-418b-9624-d44fe70e9f68
X-Content-Type-Options: nosniff