docs
  1. Admin Api
  2. Resources
  3. Redirects
  4. Update A Redirect

Update a redirect

Update a redirect.

Rate Limit: 300 Max attempts within 1 minute.

Path Parameters

ParameterDetails
shopKey
  • required
string
Example:
ms
redirectId
  • required
string

Request body

required
ParameterDetails
parent
  • nullable
object
id
integer
Example:
83070
source
string
Example:
https://forceful-poem.net/
target
string
Example:
https://extra-small-mouser.net/
statusCode
integer
Example:
302
isRegex
boolean
priority
integer
Example:
700
id
integer
  • required
Example:
83070
parent
object
error
object
id
integer
Example:
83070
source
string
Example:
https://forceful-poem.net/
target
string
Example:
https://extra-small-mouser.net/
statusCode
integer
Example:
302
isRegex
boolean
priority
integer
Example:
700
error
  • required
  • readonly
  • nullable
object
errorKey
string
message
string
createdAt
  • readonly
string
Example:
2023-05-10T10:00:00+00:00
updatedAt
  • readonly
string
Example:
2023-05-11T10:00:00+00:00

Responses

200
Redirect was successfully updated.
application/json
Success
id
integer
Example:
83070
source
string
Example:
https://forceful-poem.net/
target
string
Example:
https://extra-small-mouser.net/
statusCode
integer
Example:
302
isRegex
boolean
object
priority
integer
Example:
700
object
createdAt
string
Example:
2023-05-10T10:00:00+00:00
updatedAt
string
Example:
2023-05-11T10:00:00+00:00
400
Bad Request
application/json
Error
401
Unauthorized
application/json
Error
404
Not Found
application/json
Error
422
Unprocessable content
application/json
Error
PUT/shops/{shopKey}/redirects/{redirectId}

Request samples

Response samples

200
UpdateRedirectResponse:
Content type: application/json
Provide Feedback