POST api/v{version}/newsletter/calendars/role/add

Add a calendar providing role Id, calendar Id, Name.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
version

string

None.

Body Parameters

NewsletterCalendar, Id not required

NewsletterCalendar
NameDescriptionTypeAdditional information
Id

integer

None.

Name

string

None.

CalendarID

integer

None.

RoleId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Name": "sample string 2",
  "CalendarID": 3,
  "RoleId": 4
}

application/xml, text/xml

Sample:
<NewsletterCalendar xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Id>1</Id>
  <Name>sample string 2</Name>
  <CalendarID>3</CalendarID>
  <RoleId>4</RoleId>
</NewsletterCalendar>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Returns NewsletterCalendar added or null if calendar already exists for the role

IHttpActionResult

None.

Response Formats

application/json, text/json

Sample:

Sample not available.