Update redirect
update_redirectUpdate an existing URL redirect. Partial update: the fields you provide are changed; omitted fields are preserved. Redirects have no draft: the change applies on the live site without a publish, usually within minutes. A change that would lead the redirect back to its own source, directly or through other rules, is refused. Moving the source to / (the home page) or the destination to another site needs confirm: true, sent only after the user agreed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| active | No | Whether the redirect is active | |
| source | No | Updated source URL path | |
| confirm | No | Set true only after the user confirmed replacing the home page or sending visitors to another site | |
| permanent | No | Whether this is a permanent (301) or temporary (302) redirect | |
| projectId | Yes | The project ID | |
| redirectId | Yes | The redirect ID | |
| description | No | Updated description | |
| destination | No | Updated destination URL path |