Private
Update a redirect if it exists or creates a new one for a given id
put/redirects/{id}
Path parameters
idstring required
Unique identifier for a redirect, represented as the base64 encoding of the from path
Example:a1b2c3d4e5f67890123456789abcdef0
Request body
Example request
{
"from": "/economy",
"to": "/business"
}Response
The updated redirect
Example response
{
"from": "/economy",
"to": "/business",
"id": "a1b2c3d4e5f67890123456789abcdef0",
"links": {
"self": {
"href": "https://api.beta.ons.gov.uk/v1/redirects/a1b2c3d4e5f67890123456789abcdef0",
"id": "a1b2c3d4e5f67890123456789abcdef0"
}
}
}