Skip to navigation

Create Redirect

View as Markdown

Creates a redirect. Needs a key with Website Content: Read and Write (website-content:write).

FieldTypeRules
fromstringRequired, max 255. A path starting with /, with no spaces.
tostringRequired, max 255. A path starting with a single /, or an absolute http:// or https:// URL. javascript:, ftp:// and //host are refused.

If a redirect with the same from already exists, this returns 422. Use Upsert Redirect when you do not know whether it exists.

Headers

GorillaDash-Api-KeystringOptional
Gorilla Dash API Key
GorillaDash-Api-SecretstringOptional
Gorilla Dash API Secret

Request

This endpoint expects an object.
fromstringRequired
tostringRequired

Response

Created
successboolean
statusinteger
dataobject

Errors

403
Forbidden Error
422
Unprocessable Entity Error