Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Create content

Endpoint ID:

9001

Method:

URL:

POST /user/content/

   

Request body:

Sample request

Example
{
   "tags": [ "tag1", "tag2" ],                 // required - at least one tag must be present.
                                               //    Tags must be url-safe, with this RegEx:
                                               //    [a-zA-Z]+[a-zA-Z0-9-_]*
   "contentType": "text/html",                 // optional - defaults to "text/html"
   "content": "base64 encoded content string", // required
   "value": 6.8,                               // optional - decimal
   "activeFrom": "2014-01-01T01:00Z",          // optional - ISO UTC date
   "activeTo": "2014-03-25T23:00Z"             // optional - ISO UTC date
}

Response body:

Response body on success.

Example
{
   "contentID": 4567
}

Status codes:

201

Content created successfully.

 

  

 

 



  • No labels