createContent
- Home
- External Content
- SvcExtContent
- createContent
createContent
Create a new piece of external content.
Parameters
Name | Description |
partnerID optional | Unique numeric identifier of partner. |
partnerName optional | Unique name of partner. |
type optional | Type of external content. |
xrefID optional | Id of external content. |
title optional | Title of content. |
createdBy optional | User how owns a piece of content. |
description optional | Description of a piece of content. |
url optional | URL where a piece of content is located. |
imageUrl optional | URL to image associated with a piece of content. |
permissionLevel optional | String permissions level of content. |
allowRebroadcast optional | Pass this as 1 if you do not want to error out when creating a piece of content that already exists. Good if you want to re-broadcast something. |
groupID optional | Group to get content for. |
output optional | The response output format. Accepts JSON and XML. |
Request Syntax
https://services.onesite.com/rest/svcExtContent?action=createContent&partnerID=335&type=web&xrefID=102268734947&title=TEST EXT CONTENT&url=https://www.example.com/web/102268734947&devkey=[devkey] |
JSON Response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
{ "service":"svcExtContent", "action":"createContent", "code":1, "message":"Successfully created content", "item":{ "ext_content_id":12229, "shard_id":111, "original_xref_id":"102268734947", "xref_id":"102268734947", "type":"web", "partner_id":"335", "title":"TEST EXT CONTENT", "description":null, "url":"http://www.example.com/web/102268734947", "category_id":0, "date_featured":null, "thread_id":null, "image_url":null, "date_created":"2019-01-30 16:24:07", "date_created_unix":1548887047, "created_by":null, "status":"active", "permissions":1048544289, "is_public":1, "num_views":0, "scaled_rating":null, "num_ratings":0, "num_buries":null } } |
Service Information
Service | svcExtContent |
Method | createContent |
Type | REST |
Response Types | JSON, XML |