Skip to content

/redirect

POST
/redirect

Create a redirect

Authorizations

Parameters

Header Parameters

Quant-Customer
required
string

The customer account name

Quant-Project
required
string

The project machine name

Request Body required

object
url
required

The redirect from URL

string
redirect_url
required

The destination URL

string
redirect_http_code
required

The HTTP code to send with the redirect

integer
301
published
required

If the redirect is published

boolean
content_timestamp

User defined timestamp for this content item

integer
info

Metadata stored with this revision

object
author_user

The author user id

string
<= 128 characters
author_name

The author name

string
<= 128 characters
author_email

The author email

string
<= 255 characters
log

A revision log message

string
<= 255 characters
custom_1

Custom field 1

string
<= 255 characters
custom_2

Custom field 2

string
<= 255 characters
source

Tag for the source of this revision

string
<= 50 characters
transitions

List of transitions

Array<object>

A transition definition (e.g. for scheduled publish)

object
state

The transition state (e.g. ‘published’)

string
Allowed values: published unpublished
date_timestamp

The date from which the transition applies

integer

Responses

200

Okay

object
md5

The file MD5

string
type

The type of asset

string
byte_length

Content length of the asset

integer
revision_number

The revision number

integer
date_timestamp

Unix timestamp

integer
deleted

If the underlying file for this revision has been deleted

boolean
deleted_timestamp

The time the file was deleted

integer
transitions

List of transitions

Array<object>

A transition definition (e.g. for scheduled publish)

object
state

The transition state (e.g. ‘published’)

string
Allowed values: published unpublished
date_timestamp

The date from which the transition applies

integer
info

Metadata stored with this revision

object
author_user

The author user id

string
<= 128 characters
author_name

The author name

string
<= 128 characters
author_email

The author email

string
<= 255 characters
log

A revision log message

string
<= 255 characters
custom_1

Custom field 1

string
<= 255 characters
custom_2

Custom field 2

string
<= 255 characters
source

Tag for the source of this revision

string
<= 50 characters
redirect_http_code

The HTTP code

integer
301
highest_revision_number
string
url

The redirecrt from URL

string

400

Noop