Home
Version 3
Routes API

Routes API

Associate App with the Route

PUT /v2/routes/:guid/apps/:app_guid

Request

Route

PUT /v2/routes/855588e4-1ac0-4a84-93f1-eb926ddd3818/apps/6ebe2627-e7b5-4e21-aab3-5c3e654099ae

Parameters

Name Description Valid Values Example Values
app_guid The guid of the app

Body

Name Description Default Valid Values Example Values
guid The guid of the route.

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5NyIsImVtYWlsIjoiZW1haWwtMjY1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDN9.Wu_F7oC-OkA9xef0bzhsT6kz2VN_OeIQ6uCloGLnnEQ
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

cURL

curl "https://api.[your-domain.com]/v2/routes/855588e4-1ac0-4a84-93f1-eb926ddd3818/apps/6ebe2627-e7b5-4e21-aab3-5c3e654099ae" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTM5NyIsImVtYWlsIjoiZW1haWwtMjY1QHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0NDQ3ODI5NDN9.Wu_F7oC-OkA9xef0bzhsT6kz2VN_OeIQ6uCloGLnnEQ" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Status

201 Created

Body

{
  "metadata": {
    "guid": "855588e4-1ac0-4a84-93f1-eb926ddd3818",
    "url": "/v2/routes/855588e4-1ac0-4a84-93f1-eb926ddd3818",
    "created_at": "2015-10-07T00:35:43Z",
    "updated_at": null
  },
  "entity": {
    "host": "host-22",
    "path": "",
    "domain_guid": "6ba70b6d-fb9f-420f-9813-956549beb55d",
    "space_guid": "b44f1b80-4ec0-4921-9c77-3c3316750fcc",
    "service_instance_guid": null,
    "domain_url": "/v2/domains/6ba70b6d-fb9f-420f-9813-956549beb55d",
    "space_url": "/v2/spaces/b44f1b80-4ec0-4921-9c77-3c3316750fcc",
    "apps_url": "/v2/routes/855588e4-1ac0-4a84-93f1-eb926ddd3818/apps"
  }
}

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: 497cb3e6-ea77-4976-9c2c-3c040e095ed6
Content-Length: 621
X-Content-Type-Options: nosniff