POST api/content/post/single/{ticket}?expireAt={expireAt}&enableClientCaching={enableClientCaching}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
ticket | string |
Required |
|
expireAt | integer |
Default value is 0 |
|
enableClientCaching | boolean |
Default value is False |
Body Parameters
ContentDataName | Description | Type | Additional information |
---|---|---|---|
Name | string |
None. |
|
ContentStream | Stream |
None. |
|
ContentType | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Name": "sample string 1", "ContentStream": null, "ContentType": "sample string 2" }
application/xml, text/xml
Sample:
<ContentData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Alteso.ContentAPI.REST.Models"> <ContentStream xmlns:d2p1="http://schemas.datacontract.org/2004/07/System.IO" i:nil="true" /> <ContentType>sample string 2</ContentType> <Name>sample string 1</Name> </ContentData>
application/x-www-form-urlencoded
Sample:
Sample not available.
multipart/form-data
Sample:
Sample not available.
text/html
Sample:
<script>window.parent.postMessage(JSON.stringify({"Name":"sample string 1","ContentStream":null,"ContentType":"sample string 2"}), '*');</script>
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |