Skip to content

/

POST
/
curl --request POST \
--url https://api.quantcdn.io/v1/ \
--header 'Content-Type: application/json' \
--header 'Quant-Customer: example' \
--header 'Quant-Project: example' \
--header 'Quant-Token: <Quant-Token>' \
--data '{ "url": "example", "content": "example", "published": true, "content_timestamp": 1, "info": { "author_user": "example", "author_name": "example", "author_email": "example", "log": "example", "custom_1": "example", "custom_2": "example", "source": "example" }, "transitions": [ { "state": "published", "date_timestamp": 1 } ] }'

Create content or file revision

Quant-Customer
required
string

The customer account name

Quant-Project
required
string

The project machine name

Quant-File-Url
string

Required for binary file uploads only

Media typeapplication/json
object
url
required

The content URL. Must be relative and start with a leading ‘/’

string
<= 4096 characters
content
required

The content (e.g. html)

string
published
required

If the asset should be 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

Okay

Media type*/*
object
url

The relative URL of the asset

string
type

The type of asset

string
seq_num

The sequence number

integer
published

If the asset is published

boolean
published_revision

The identifier for the published revision

integer
published_md5

Unique hash of the asset

string
byte_length

Content length of the asset

integer
revision_count

The number of revisions that have been added

integer
highest_revision_number

The latest revision id

integer
deleted

If the underlying file for this revision has been deleted

boolean
deleted_timestamp

The time the file was deleted

integer
md5

The file MD5

string
revision_number

The revision number

integer
date_timestamp

Unix timestamp

integer

Noop