Create redirect rule

šŸ” This endpoint requires HTTP authentication (either Basic or Bearer). For authenticating with Bearer token, required scopes are: redirects(w).

Create a redirect rule

Query Params
string
required
length between 1 and 100

The key of the index to use.

string
length between 1 and 100

The ID of the client and version that the request is coming from, such as cio-js-2.90.

Body Params
string
required
length between 1 and 1000

The target URL for the redirect rule.

matches
array of objects
required
length between 1 and 300

A list of redirect rule matches.

Matches*
date-time

The start time for the redirect rule.

date-time

The end time for redirect rule.

user_segments
array of strings
length ≄ 1

A list of user segments for the redirect rule.

User Segments
metadata
object

The metadata for the redirect rule.

Responses

400

Validation Error

401

Credentials are not passed or action is forbidden.

403

The supplied token does not have the required permissions.

429

Rate limit breached

Language
Credentials
:
Response
Choose an example:
application/json