POST api/EventCategories/CRUD

Add/Update/Delete Event Categories

Request Information

URI Parameters

None.

Body Parameters

String Array of Event Categories And Information(Mandatory)

Collection of EventCategoryInfo
NameDescriptionTypeAdditional information
CategoryId

integer

None.

CategoryName

string

None.

EventTypeId

integer

None.

Gender

string

None.

IsParalympic

boolean

None.

IsActive

boolean

None.

Deleted

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "CategoryId": 1,
    "CategoryName": "sample string 2",
    "EventTypeId": 3,
    "Gender": "sample string 4",
    "IsParalympic": true,
    "IsActive": true,
    "Deleted": 1
  },
  {
    "CategoryId": 1,
    "CategoryName": "sample string 2",
    "EventTypeId": 3,
    "Gender": "sample string 4",
    "IsParalympic": true,
    "IsActive": true,
    "Deleted": 1
  }
]

application/xml, text/xml

Sample:
<ArrayOfEventCategoryInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ClassLibraryITTF1">
  <EventCategoryInfo>
    <CategoryId>1</CategoryId>
    <CategoryName>sample string 2</CategoryName>
    <Deleted>1</Deleted>
    <EventTypeId>3</EventTypeId>
    <Gender>sample string 4</Gender>
    <IsActive>true</IsActive>
    <IsParalympic>true</IsParalympic>
  </EventCategoryInfo>
  <EventCategoryInfo>
    <CategoryId>1</CategoryId>
    <CategoryName>sample string 2</CategoryName>
    <Deleted>1</Deleted>
    <EventTypeId>3</EventTypeId>
    <Gender>sample string 4</Gender>
    <IsActive>true</IsActive>
    <IsParalympic>true</IsParalympic>
  </EventCategoryInfo>
</ArrayOfEventCategoryInfo>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

application/xml, text/xml

Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>