There's a new version of the HubSpot API

We're also working on a new documentation website, you're invited to check it out and give us your feedback.

Get the previous version of the url mapping

Last updated May 22, 2023

GET /content/api/v2/url-mappings/:url_mapping_id/versions/:version_id

Method Details

HTTP Methods:

GET

Response Format:

json

Requires Authentication?

Yes

Rate Limited?

Yes

Headers

User-Agent

Version id is the id of the version from the list previous versions endpoint

Required Parameters How to use Description
url_mapping_id Used in the request URL Unique identifier for a particular blog
HubSpot OAuth Access Token access_token=X in the request URL The HubSpot API key for the portal that you're making the call for.

JSON Fields returned in the response

Parameter name Type Description
created long When the url mapping was first created, in milliseconds since the epoch
deleted_at long When the url mapping was deleted, in milliseconds since the epoch. Zero if the url mapping was never deleted. Use a DELETE request to url mapping the page, do not set this directly.
destination string The URL to redirect to
id string The unique id of the url mapping
is_match_full_url boolean If true, the 'route_prefix' should match on the entire URL including the domain
is_match_query_string boolean If true, the 'route_prefix' should match on the entire URL path including the query string
is_only_after_not_found boolean 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
precedence integer If a URL matches more than one mapping, the one with the lower precedence applies
route_prefix string The incoming URL to match
updated long When the url mapping was last updated, in milliseconds since the epoch