Skip to content

HubSpot: Url redirects schemas

7 HubSpot schemas with complete fields and constraints.

← Url redirects operations · All schemas

Create URL Mapping — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
createdstringRequired within parentThe date and time when the URL mapping was initially created.
Format: date-time
destinationstringRequired within parentThe destination URL, where the target URL should be redirected if it matches the `routePrefix`.
idstringRequired within parentThe unique ID of this URL redirect.
isMatchFullUrlbooleanRequired within parentWhether the `routePrefix` should match on the entire URL, including the domain.
isMatchQueryStringbooleanRequired within parentWhether the `routePrefix` should match on the entire URL path, including the query string.
isOnlyAfterNotFoundbooleanRequired within parentWhether the URL redirect mapping should apply only if a live page on the URL isn't found. If False, the URL redirect mapping will take precedence over any existing page.
isPatternbooleanRequired within parentWhether the `routePrefix` should match based on pattern.
isProtocolAgnosticbooleanRequired within parentWhether the `routePrefix` should match both HTTP and HTTPS protocols.
isTrailingSlashOptionalbooleanRequired within parentWhether a trailing slash will be ignored.
precedenceintegerRequired within parentUsed to prioritize URL redirection. If a given URL matches more than one redirect, the one with the **lower** precedence will be used.
Format: int32
redirectStyleintegerRequired within parentThe type of redirect to create. Options include: 301 (permanent), 302 (temporary), or 305 (proxy). Find more details [here](https://knowledge.hubspot.com/cos-general/how-to-redirect-a-hubspot-page).
Format: int32
routePrefixstringRequired within parentThe target incoming URL, path, or pattern to match for redirection.
updatedstringRequired within parentThe date and time when the URL mapping was last modified.
Format: date-time

Create URL Redirect — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
destinationstringRequired within parentThe destination URL, where the target URL should be redirected if it matches the `routePrefix`.
isMatchFullUrlbooleanOptionalWhether the `routePrefix` should match on the entire URL, including the domain.
isMatchQueryStringbooleanOptionalWhether the `routePrefix` should match on the entire URL path, including the query string.
isOnlyAfterNotFoundbooleanOptionalWhether the URL redirect mapping should apply only if a live page on the URL isn't found. If False, the URL redirect mapping will take precedence over any existing page.
isPatternbooleanOptionalWhether the `routePrefix` should match based on pattern.
isProtocolAgnosticbooleanOptionalWhether the `routePrefix` should match both HTTP and HTTPS protocols.
isTrailingSlashOptionalbooleanOptionalWhether a trailing slash will be ignored.
precedenceintegerOptionalUsed to prioritize URL redirection. If a given URL matches more than one redirect, the one with the **lower** precedence will be used.
Format: int32
redirectStyleintegerRequired within parentThe type of redirect to create. Options include: 301 (permanent), 302 (temporary), or 305 (proxy). Find more details [here](https://knowledge.hubspot.com/cos-general/how-to-redirect-a-hubspot-page).
Format: int32
routePrefixstringRequired within parentThe target incoming URL, path, or pattern to match for redirection.

List URL Redirects — response body

FieldTypePresenceDescription and constraints
$objectRoot
pagingModelOptionalExpand List URL Redirects — response body — paging
resultsarrayRequired within parentAn array of UrlMapping objects, each representing a specific URL mapping.
results[]ModelEach itemExpand Update a redirect — response body
totalJSONRequired within parent
total (anyOf 1)integerAlternativeThe total number of URL mappings available.
Format: int32
total (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$

Referenced models: List URL Redirects — response body — paging, Update a redirect — response body

List URL Redirects — response body — paging

FieldTypePresenceDescription and constraints
$objectRootPaging information for forward-only pagination. Contains the next page reference when more results are available; omitted or empty on the last page.
nextModelOptionalExpand List URL Redirects — response body — paging next

Referenced models: List URL Redirects — response body — paging next

List URL Redirects — response body — paging next

FieldTypePresenceDescription and constraints
$objectRootSpecifies the paging information needed to retrieve the next set of results in a paginated API response
afterstringRequired within parentThe cursor value indicating where to begin fetching the next page of results in a paginated collection.
linkstringOptionalAn optional URL for directly accessing the next page of results.

Update a redirect — request body — body

FieldTypePresenceDescription and constraints
$objectRoot
createdstringOptionalThe date and time when the URL mapping was initially created.
Format: date-time
destinationstringOptionalThe destination URL, where the target URL should be redirected if it matches the `routePrefix`.
idstringOptionalThe unique ID of this URL redirect.
isMatchFullUrlbooleanOptionalWhether the `routePrefix` should match on the entire URL, including the domain.
isMatchQueryStringbooleanOptionalWhether the `routePrefix` should match on the entire URL path, including the query string.
isOnlyAfterNotFoundbooleanOptionalWhether the URL redirect mapping should apply only if a live page on the URL isn't found. If False, the URL redirect mapping will take precedence over any existing page.
isPatternbooleanOptionalWhether the `routePrefix` should match based on pattern.
isProtocolAgnosticbooleanOptionalWhether the `routePrefix` should match both HTTP and HTTPS protocols.
isTrailingSlashOptionalbooleanOptionalWhether a trailing slash will be ignored.
precedenceintegerOptionalUsed to prioritize URL redirection. If a given URL matches more than one redirect, the one with the **lower** precedence will be used.
Format: int32
redirectStyleintegerOptionalThe type of redirect to create. Options include: 301 (permanent), 302 (temporary), or 305 (proxy). Find more details [here](https://knowledge.hubspot.com/cos-general/how-to-redirect-a-hubspot-page).
Format: int32
routePrefixstringOptionalThe target incoming URL, path, or pattern to match for redirection.
updatedstringOptionalThe date and time when the URL mapping was last modified.
Format: date-time

Update a redirect — response body

FieldTypePresenceDescription and constraints
$objectRoot
createdstringRequired within parentThe date and time when the URL mapping was initially created.
Format: date-time
destinationstringRequired within parentThe destination URL, where the target URL should be redirected if it matches the `routePrefix`.
idstringRequired within parentThe unique ID of this URL redirect.
isMatchFullUrlbooleanRequired within parentWhether the `routePrefix` should match on the entire URL, including the domain.
isMatchQueryStringbooleanRequired within parentWhether the `routePrefix` should match on the entire URL path, including the query string.
isOnlyAfterNotFoundbooleanRequired within parentWhether the URL redirect mapping should apply only if a live page on the URL isn't found. If False, the URL redirect mapping will take precedence over any existing page.
isPatternbooleanRequired within parentWhether the `routePrefix` should match based on pattern.
isProtocolAgnosticbooleanRequired within parentWhether the `routePrefix` should match both HTTP and HTTPS protocols.
isTrailingSlashOptionalbooleanRequired within parentWhether a trailing slash will be ignored.
precedenceJSONRequired within parent
precedence (anyOf 1)integerAlternativeUsed to prioritize URL redirection. If a given URL matches more than one redirect, the one with the **lower** precedence will be used.
Format: int32
precedence (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
redirectStyleJSONRequired within parent
redirectStyle (anyOf 1)integerAlternativeThe type of redirect to create. Options include: 301 (permanent), 302 (temporary), or 305 (proxy). Find more details [here](https://knowledge.hubspot.com/cos-general/how-to-redirect-a-hubspot-page).
Format: int32
redirectStyle (anyOf 2)stringAlternativePattern: ^-?[0-9]+(?:\.[0-9]+)?(?:[eE][+-]?[0-9]+)?$
routePrefixstringRequired within parentThe target incoming URL, path, or pattern to match for redirection.
updatedstringRequired within parentThe date and time when the URL mapping was last modified.
Format: date-time

Report an issue with this page

Necessary

Required for sign-in, security, authorization, and remembering your choices.

Always active

Analytics

Helps us understand which product and documentation features are useful.

Performance diagnostics

Uses performance tracing and privacy-masked session replay to diagnose problems.

You can change these choices at any time from Cookie settings.