Home
Version 3
Routes API

Routes API

Associate App with the Route

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

Fields

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

Request

Headers

Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwOSIsImVtYWlsIjoiZW1haWwtMTYxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5NzR9.ogoL669DbPa9A3j7sMKgQUCRkTgZd_t28kqxOME7Z-4
Host: example.org
Content-Type: application/x-www-form-urlencoded
Cookie: 

Route

PUT /v2/routes/43190c13-c6f0-4359-9d10-1b8229eeb96e/apps/a9c66f8e-7e58-4cd7-aaeb-d04f9b44a2ab

cURL

curl "https://api.[your-domain.com]/v2/routes/43190c13-c6f0-4359-9d10-1b8229eeb96e/apps/a9c66f8e-7e58-4cd7-aaeb-d04f9b44a2ab" -d '' -X PUT \
	-H "Authorization: bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoidWFhLWlkLTIwOSIsImVtYWlsIjoiZW1haWwtMTYxQHNvbWVkb21haW4uY29tIiwic2NvcGUiOlsiY2xvdWRfY29udHJvbGxlci5hZG1pbiJdLCJhdWQiOlsiY2xvdWRfY29udHJvbGxlciJdLCJleHAiOjE0MTk5ODk5NzR9.ogoL669DbPa9A3j7sMKgQUCRkTgZd_t28kqxOME7Z-4" \
	-H "Host: example.org" \
	-H "Content-Type: application/x-www-form-urlencoded" \
	-H "Cookie: "

Response

Headers

Content-Type: application/json;charset=utf-8
X-VCAP-Request-ID: c8f9b748-aaea-4479-828b-f6c4052468ad
Content-Length: 575
X-Content-Type-Options: nosniff

Status

201 Created

Body

{
  "metadata": {
    "guid": "43190c13-c6f0-4359-9d10-1b8229eeb96e",
    "url": "/v2/routes/43190c13-c6f0-4359-9d10-1b8229eeb96e",
    "created_at": "2014-12-24T01:39:34+00:00",
    "updated_at": null
  },
  "entity": {
    "host": "host-16",
    "domain_guid": "6622ffa7-2574-4d9d-ae30-62ef406f986a",
    "space_guid": "3b26460e-1e67-4ac0-8aba-a92ece58227a",
    "domain_url": "/v2/domains/6622ffa7-2574-4d9d-ae30-62ef406f986a",
    "space_url": "/v2/spaces/3b26460e-1e67-4ac0-8aba-a92ece58227a",
    "apps_url": "/v2/routes/43190c13-c6f0-4359-9d10-1b8229eeb96e/apps"
  }
}