Remove Route from the App
DELETE /v2/apps/:guid/routes/:route_guid
Request
Route
DELETE /v2/apps/638b6901-5bf0-4b91-98fb-debbdeb76cb5/routes/4e581b92-5541-4f90-81ef-007a5da88958
Parameters
Name |
Description |
Valid Values |
Example Values |
guid
|
The guid of the App
|
|
|
Body
Name |
Description |
Default |
Valid Values |
Example Values |
Headers
cURL
curl "https://api.[your-domain.com]/v2/apps/638b6901-5bf0-4b91-98fb-debbdeb76cb5/routes/4e581b92-5541-4f90-81ef-007a5da88958" -d '' -X DELETE \
-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTE0IiwiZW1haWwiOiJlbWFpbC0xNEBzb21lZG9tYWluLmNvbSIsInNjb3BlIjpbImNsb3VkX2NvbnRyb2xsZXIuYWRtaW4iXSwiYXVkIjpbImNsb3VkX2NvbnRyb2xsZXIiXSwiZXhwIjoxNDM1MTAyODQ1fQ.yTQtLLnMBmwCp7xX-vHdetavMD7ZyEAQZle4KPGR2po" \
-H "Host: example.org" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Cookie: "
Response
Status
201 Created
Body
{
"metadata": {
"guid": "638b6901-5bf0-4b91-98fb-debbdeb76cb5",
"url": "/v2/apps/638b6901-5bf0-4b91-98fb-debbdeb76cb5",
"created_at": "2015-06-16T23:40:44Z",
"updated_at": "2015-06-16T23:40:44Z"
},
"entity": {
"name": "name-244",
"production": false,
"space_guid": "c833afb1-7071-42f7-b353-0c79665655c8",
"stack_guid": "bb31ac87-96dc-4ca4-b2f4-f62f5e684ee8",
"buildpack": null,
"detected_buildpack": null,
"environment_json": null,
"memory": 1024,
"instances": 1,
"disk_quota": 1024,
"state": "STOPPED",
"version": "53288322-8a5a-4607-ad3b-5ae7f5a261b9",
"command": null,
"console": false,
"debug": null,
"staging_task_id": null,
"package_state": "PENDING",
"health_check_type": "port",
"health_check_timeout": null,
"staging_failed_reason": null,
"diego": false,
"docker_image": null,
"package_updated_at": "2015-06-16T23:40:44Z",
"detected_start_command": "",
"enable_ssh": true,
"docker_credentials_json": {
"redacted_message": "[PRIVATE DATA HIDDEN]"
},
"space_url": "/v2/spaces/c833afb1-7071-42f7-b353-0c79665655c8",
"stack_url": "/v2/stacks/bb31ac87-96dc-4ca4-b2f4-f62f5e684ee8",
"events_url": "/v2/apps/638b6901-5bf0-4b91-98fb-debbdeb76cb5/events",
"service_bindings_url": "/v2/apps/638b6901-5bf0-4b91-98fb-debbdeb76cb5/service_bindings",
"routes_url": "/v2/apps/638b6901-5bf0-4b91-98fb-debbdeb76cb5/routes"
}
}
Headers