Endpoint
Function signature
Request body
string
required
The ID of the redirect to be updated
string
required
The new domain to which the redirect points
RedirectType
required
The type of redirect. Must be either
permanent or temporaryboolean
required
Indicates whether the path should be forwarded
boolean
required
Indicates whether the query parameters should be forwarded
number
required
The sampling rate for analytics. Must be a value between 0 and 1
Type definitions
The
fromDomain cannot be updated. To change the source domain, you must delete the redirect and create a new one.Response
number
HTTP status code
object
The updated redirect object