PUT
/
url-mappings
/
v3
/
url-mappings
/
{url_mapping_id}
Update a URL mapping
curl --request PUT \
  --url https://api.hubapi.com/url-mappings/v3/url-mappings/{url_mapping_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "isOnlyAfterNotFound": true,
  "destination": "http://www.hubspot.com/updated-destination"
}'
{
  "id": 123,
  "portalId": 123,
  "created": 123,
  "updated": 123,
  "routePrefix": "<string>",
  "destination": "<string>",
  "redirectStyle": 301,
  "contentGroupId": 123,
  "isOnlyAfterNotFound": true,
  "isRegex": true,
  "isMatchFullUrl": true,
  "isMatchQueryString": true,
  "isPattern": true,
  "isTrailingSlashOptional": true,
  "isProtocolAgnostic": true,
  "name": "<string>",
  "precedence": 123,
  "deletedAt": 123,
  "siteId": 123
}

Authorizations

Authorization
string
header
required

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

Path Parameters

url_mapping_id
string
required

The ID of the URL mapping.

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 updates

The body is of type object.

Response

200
application/json

successful operation

The response is of type object.