Create Redirect

POST {{protocol}}://{{instance_zuid}}.{{instances_api_url}}/{{api_version}}/web/redirects

Creates a redirect to a path in the same instance

namedescription
path[string] Required.
targetType[string] Required. path, external, or page.
target[string] Required. Path in current instance
code[number] Optional. Default value 301

Request Body

{"path"=>"/test/asdf/paths", "targetType"=>"path", "target"=>"/another/test/path", "code"=>301}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: Created

{"_meta":{"timestamp":"2021-08-25T20:14:09.713900888Z","totalResults":1,"start":0,"offset":0,"limit":1},"data":{"ZUID":"19-8ad6a5a4a2-tg05tp","path":"/test/external/path","targetType":"external","target":"http://google.com","code":301,"query_string":null,"createdByUserZUID":"5-c2c892c686-2zhbl4","updatedByUserZUID":"5-c2c892c686-2zhbl4","createdAt":"2021-08-25T20:14:09.709379371Z","updatedAt":"2021-08-25T20:14:09.709385047Z"}}