Version: 202201
Update Redirect
PUT/openapi/2022-01/redirects/:id
Update the details of an existing url redirect using its unique identifier.
Request
Path Parameters
id stringrequired
Redirect‘s ID
- application/json
- Body
- Example
Body
from_urlstringrequired
Original URL, for example: /collections/hot-selling
redirect_urlstringrequired
Redirected URL, for example: /collections/test1567
statusstringrequired
The status of the redirect:
- open: available
- close: unavailable
{
"from_url": "string",
"redirect_url": "string",
"status": "string"
}
Responses
- 200
- 404
- 422
200
- application/json
No schema
404
- application/json
- Schema
- Example
- Result
Schema
errorsstring[]
{
"errors": [
"Data not found"
]
}
{
"errors": [
"Data not found"
]
}
422
- application/json
- Schema
- Example
- Result
Schema
errorsstring[]
{
"errors": [
"Target is invalid"
]
}
{
"errors": [
"Target is invalid"
]
}