POST api/EventClasses
Request Information
URI Parameters
None.
Body Parameters
EventClass| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
Required |
|
| Distance | decimal number |
Required |
|
| MaxAge | integer |
Required |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"Name": "sample string 2",
"Distance": 3.1,
"MaxAge": 4
}
application/xml, text/xml
Sample:
<EventClass xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TD.Vararuset.API.Models"> <Distance>3.1</Distance> <Id>1</Id> <MaxAge>4</MaxAge> <Name>sample string 2</Name> </EventClass>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
EventClass| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| Name | string |
Required |
|
| Distance | decimal number |
Required |
|
| MaxAge | integer |
Required |
Response Formats
application/json, text/json
Sample:
{
"Id": 1,
"Name": "sample string 2",
"Distance": 3.1,
"MaxAge": 4
}
application/xml, text/xml
Sample:
<EventClass xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TD.Vararuset.API.Models"> <Distance>3.1</Distance> <Id>1</Id> <MaxAge>4</MaxAge> <Name>sample string 2</Name> </EventClass>