Get a single Redirect

GET /api/v2/redirects/{id}.json

Retrieve a single Redirect rule using its ID.

Scopes

Requires either the content or content.readonly OAuth scope.

Parameters

Accepts the following parameters:

id required
The ID of the Redirect is supplied as a path parameter.


Response

Returns an object with the following properties:

success
A boolean where a value of true represents a successful request.
status
The HTTP status code e.g. 200 for a successful request.
data
Contains the Redirect object.


JSON Example

An example of JSON returned.

{
    "success": true,
    "status": 200,
    "data": {
        "id": 3066,
        "resource": "page",
        "resourceId": 42309,
        "path": "/redirect-from",
        "target": null,
        "language": null,
        "country": null,
        "createdOn": "2019-11-09T01:02:00+00:00",
    }
}