POST UserCalendar/Add

Add calendar item for user/video

Request Information

URI Parameters

None.

Body Parameters

RequestUserCalendarAdd
NameDescriptionTypeAdditional information
UserID

integer

None.

VideoID

integer

None.

DateTime

Format yyyymmdd-hhnn - ie. 20191231-2359

string

None.

Request Formats

application/json, text/json

Sample:
{
  "UserID": 1,
  "VideoID": 2,
  "DateTime": "sample string 3"
}

text/html

Sample:
{"UserID":1,"VideoID":2,"DateTime":"sample string 3"}

application/xml, text/xml

Sample:
<RequestUserCalendarAdd xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YogaStreamAPIv2">
  <DateTime>sample string 3</DateTime>
  <UserID>1</UserID>
  <VideoID>2</VideoID>
</RequestUserCalendarAdd>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'RequestUserCalendarAdd'.

Response Information

Resource Description

Success
NameDescriptionTypeAdditional information
success

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true
}

text/html

Sample:
{"success":true}

application/xml, text/xml

Sample:
<Success xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YogaStreamAPIv2">
  <success>true</success>
</Success>