POST api/Admin/CalendarProperties

Method for creating new calendar properties

Request Information

URI Parameters

None.

Body Parameters

CreateCalendarPropertyRequest
NameDescriptionTypeAdditional information
CalendarId

Calendarid that the property belongs to

integer

Required

Key

string

Required

Max length: 50

Value

string

Required

Max length: 255

CreatedBy

string

Required

Max length: 255

Remarks

None.

Example

None.

Request Formats

application/json, text/json

Sample:
{
  "CalendarId": 1,
  "Key": "sample string 2",
  "Value": "sample string 3",
  "CreatedBy": "sample string 4"
}

application/xml, text/xml

Sample:
<CreateCalendarPropertyRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.Calendar.Service.DTO">
  <CalendarId>1</CalendarId>
  <CreatedBy>sample string 4</CreatedBy>
  <Key>sample string 2</Key>
  <Value>sample string 3</Value>
</CreateCalendarPropertyRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

The Id of the created calendar property

CreateCalendarPropertyResponse
NameDescriptionTypeAdditional information
Id

Id on the created calendarproperty

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1
}

application/xml, text/xml

Sample:
<CreateCalendarPropertyResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Compilator.Calendar.Service.DTO">
  <Id>1</Id>
</CreateCalendarPropertyResponse>