Create a new URL mapping.
The access token received from the authorization server in the OAuth 2.0 flow.
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.
snake URL mapping details
The incoming URL, path, or pattern to match.
The URL to redirect to.
The type of redirect this mapping creates: 301 (permanent) or 302 (temporary).
301, 302 If true, the 'routePrefix' should match on the entire URL including the domain.
If true, the routePrefix should match on the entire URL path including the query string.
If true, the URL mapping will only be applied if a live page matching the URL is not found. If false, the URL mapping will take precedence over any existing page.
If true, this is a flexible pattern based URL Mapping.
If a URL matches more than one mapping, the one with the lower precedence applies.
successful operation
The unique ID of the URL mapping.
The HubSpot account ID.
When the URL mapping was first created, in milliseconds since the epoch.
When the URL mapping was last updated, in milliseconds since the epoch.
The incoming URL, path, or pattern to match.
The URL to redirect to.
The type of redirect this mapping creates: 301 (permanent) or 302 (temporary).
301, 302 The ID of the content group (aka blog) that this URL mapping exists for, if any. Otherwise null.
If true, the URL mapping will only be applied if a live page matching the URL is not found. If false, the URL mapping will take precedence over any existing page.
Deprecated. Indicates whether this mapping was created as a regular expression pattern (this option is no longer supported for new mappings).
If true, the 'routePrefix' should match on the entire URL including the domain.
If true, the routePrefix should match on the entire URL path including the query string.
If true, this is a flexible pattern based URL Mapping.
If true, trailing slashes are optional in the route prefix match.
If true, the mapping will work for both HTTP and HTTPS protocols.
An name used to identify the type of pattern this is. Used mostly for blog and other internally-created mappings.
If a URL matches more than one mapping, the one with the lower precedence applies.
When the URL mapping was deleted, in milliseconds since the epoch. Will be 0 if the URL mapping was never deleted. Use a DELETE request to properly soft delete a URL mapping - do not set this value directly.
The site ID if applicable.