Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Tidying, removing redundant descriptions.

...

Endpoint ID:

9001

Method:

URL:

POST /user/content/

Request body:

JSON data with information about the content to be created.

Required fields:
 

tags:

JSON array of Tags. At least one Tag must be present in the array. Tags must be url-safe, with conforming to Regular Expression pattern::

[a-zA-Z]+[a-zA-Z0-9-_]*
 

content:

The content text of , formatted as a base64 encoded typetext string.

Optional fields:
 contenttypecontentType:Defined the type of contentThe content mime-type, i.e. "image/gif" or "text/plain". If omitted, value the content type is set to "text/html".
 value:Optional A decimal numeric value.
 activeFrom:

Optional date value defining content active start date. The date must be in UTC, for example "2014-01-01T01:00Z".A UTC date specifying the start of the content availability period.

 activeTo:

Optional date value defining content active till date. The date must be in UTC, for example "2014-03-25T23:00Z".A UTC date specifying the end of the content availability period.

Code Block
titleExample
{
   "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:


JSON data with information about the content createdA JSON object containing the "contentID" of the newly created content. This identifier is used to publish content, and to connect entities to private content.

Code Block
titleExample
{
   "contentID": 4567
}

Status codes:

201

Content created successfully.

...