POST api/EventProperties

Method for creating new event properties

Request Information

URI Parameters

None.

Body Parameters

CreateEventPropertyRequest
NameDescriptionTypeAdditional information
EventId

Eventid 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:
{
  "EventId": 1,
  "Key": "sample string 2",
  "Value": "sample string 3",
  "CreatedBy": "sample string 4"
}

application/xml, text/xml

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

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Collection of CreateEventPropertyResponse
NameDescriptionTypeAdditional information
Id

Id on the created eventproperty

integer

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "Id": 1
  },
  {
    "Id": 1
  }
]

application/xml, text/xml

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