POST
/
cms
/
v3
/
url-redirects
/
Crea un redireccionamiento
curl --request POST \
  --url https://api.hubapi.com/cms/v3/url-redirects/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "isTrailingSlashOptional": true,
  "isMatchQueryString": true,
  "redirectStyle": 123,
  "routePrefix": "<string>",
  "isMatchFullUrl": true,
  "isProtocolAgnostic": true,
  "destination": "<string>",
  "isOnlyAfterNotFound": true,
  "isPattern": true,
  "precedence": 123
}'
{
  "isTrailingSlashOptional": true,
  "redirectStyle": 123,
  "isMatchQueryString": true,
  "created": "2023-11-07T05:31:56Z",
  "isMatchFullUrl": true,
  "destination": "<string>",
  "isOnlyAfterNotFound": true,
  "isPattern": true,
  "precedence": 123,
  "routePrefix": "<string>",
  "isProtocolAgnostic": true,
  "id": "<string>",
  "updated": "2023-11-07T05:31:56Z"
}
Productos compatibles
Se requiere uno de los siguientes productos o productos de ediciones superiores.
Marketing HubMarketing HubPro
Sales HubSales HubGratuito
Service HubService HubGratuito
Content HubContent HubStarter

Ámbitos Requeridos

Esta API requiere uno de los siguientes ámbitos:
  • content

Authorizations

Authorization
string
header
required

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

Body

application/json

Response

successful operation

The response is of type object.