Create a rewrite rule
Adds a new URL rewrite rule to the zone. The rule is attached to the zone from the URI. If "order" is omitted, the rule is appended (highest existing order + 1); if an explicit "order" is provided, existing rules at or after that position are shifted down to keep ordering contiguous. The name and the operator+source-pattern combination must be unique within the zone, and the zone's rule limit must not be exceeded. When the operator is a regex variant, the source pattern must be a safe regular expression and the target may only reference capture groups that exist in the pattern.
Authorizations
Long-lived API token created via POST /api/api-tokens (returned once in plaintext).
JWT access token obtained via POST /api/auth/login. Send as: Authorization: Bearer
Parameters
Path Parameters
Zone identifier
Request Body
Responses
rewrite-rule resource created
