Skip to main content
A redirection sends visitors from an old path to a new path or URL. For fields and response details, see the API reference.

List redirections

This command lists redirections, newest first. The domain redirection is included.

Show a redirection

This command shows one redirection.
Required arguments:
  • <id> - Redirection ID from redirections list

Create a redirection

This command creates a redirection. Creating one needs the Manage redirections permission.
--type takes page or domain. It defaults to page. For a domain redirection, --from-path is a bare origin. A redirection is refused when --to-path is empty, --from-path is already used, both paths are the same, or it would chain with another.

Update a redirection

This command changes a redirection. Only the flags you pass change.
Required arguments:
  • <id> - Redirection ID from redirections list

Delete a redirection

This command deletes a redirection.
Required arguments:
  • <id> - Redirection ID from redirections list