POST
/
url-mappings
/
v3
/
url-mappings
Create a new URL mapping
curl --request POST \
  --url https://api.hubapi.com/url-mappings/v3/url-mappings \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "routePrefix": "/the-original-source",
  "destination": "http://62515.sites.hubspot.com/the-destination-url"
}'
{
  "contentGroupId": null,
  "created": 1424889460890,
  "deletedAt": 0,
  "destination": "http://62515.sites.hubspot.com/the-destination-url",
  "id": 2537672228,
  "isMatchFullUrl": false,
  "isMatchQueryString": false,
  "isOnlyAfterNotFound": true,
  "isPattern": false,
  "isRegex": false,
  "name": "",
  "portalId": 62515,
  "precedence": 1000000008,
  "redirectStyle": null,
  "routePrefix": "/the-original-source",
  "siteId": null,
  "updated": 1424889460890
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Query Parameters

casing
enum<string>

Use the casing=snake parameter to change the API's casing for all query parameters and JSON fields to snake_case, rather than camelCase, which is the default.

Available options:
snake

Body

application/json

URL mapping details

The body is of type object.

Response

201
application/json

successful operation

The response is of type object.