POST api.ashx/v2/contentviews.{json|xml}
CREATE a content view on content.
Request Parameters
Name | Type | Location | Description | Required | Default | Options |
---|---|---|---|---|---|---|
ContentId | Guid | Content Id | Required | |||
ContentTypeId | Guid | Content Type Id | Required | |||
ViewTypeId | Guid | Categorization type | Required |
Example Requests
Widget Javascript
jQuery.telligent.evolution.post({ url: jQuery.telligent.evolution.site.getBaseUrl() + 'api.ashx/v2/contentviews.json', data: { 'ContentId': '49fec544-6df7-4a82-872b-f8be586d5e9e', 'ContentTypeId': '49fec544-6df7-4a82-872b-f8be586d5e9e', 'ViewTypeId': '49fec544-6df7-4a82-872b-f8be586d5e9e' } }).then(function(response) { // use response });
Example Responses
JSON
{ "Info": [ "string", "string" ], "Warnings": [ "string", "string" ], "Errors": [ "string", "string" ] }
XML
<?xml version="1.0" encoding="utf-16"?> <Response> <Info> <Message>string</Message> <Message>string</Message> </Info> <Warnings> <Message>string</Message> <Message>string</Message> </Warnings> <Errors> <Message>string</Message> <Message>string</Message> </Errors> </Response>