POST api/v1/personcategories

Request Information

URI Parameters

None.

Body Parameters

PersonCategoryDetails
NameDescriptionTypeAdditional information
PersonCategoryId

globally unique identifier

None.

CategoryName

string

Required

String length: inclusive between 0 and 100

ParentPersonCategoryId

globally unique identifier

None.

Remarks

string

String length: inclusive between 0 and 250

Id

globally unique identifier

None.

CanUpdateRecord

boolean

None.

CanDeleteRecord

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "PersonCategoryId": "a0052324-70fc-4599-9a0e-27897f962021",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "2dd494f2-7dfc-4823-aa6d-12473595a898",
  "Remarks": "sample string 3",
  "Id": "a0052324-70fc-4599-9a0e-27897f962021",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"a0052324-70fc-4599-9a0e-27897f962021","CategoryName":"sample string 2","ParentPersonCategoryId":"2dd494f2-7dfc-4823-aa6d-12473595a898","Remarks":"sample string 3","Id":"a0052324-70fc-4599-9a0e-27897f962021","CanUpdateRecord":true,"CanDeleteRecord":true}

application/xml, text/xml

Sample:
<PersonCategoryDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi.Club">
  <CanDeleteRecord xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">true</CanDeleteRecord>
  <CanUpdateRecord xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">true</CanUpdateRecord>
  <Id xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">a0052324-70fc-4599-9a0e-27897f962021</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>2dd494f2-7dfc-4823-aa6d-12473595a898</ParentPersonCategoryId>
  <PersonCategoryId>a0052324-70fc-4599-9a0e-27897f962021</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

PersonCategoryDetails
NameDescriptionTypeAdditional information
PersonCategoryId

globally unique identifier

None.

CategoryName

string

Required

String length: inclusive between 0 and 100

ParentPersonCategoryId

globally unique identifier

None.

Remarks

string

String length: inclusive between 0 and 250

Id

globally unique identifier

None.

CanUpdateRecord

boolean

None.

CanDeleteRecord

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "PersonCategoryId": "86dc2946-1e81-48ba-aedf-9eab2e465b6f",
  "CategoryName": "sample string 2",
  "ParentPersonCategoryId": "ea080a0c-a88c-4b9a-a258-c29e57fa4897",
  "Remarks": "sample string 3",
  "Id": "86dc2946-1e81-48ba-aedf-9eab2e465b6f",
  "CanUpdateRecord": true,
  "CanDeleteRecord": true
}

text/html

Sample:
{"PersonCategoryId":"86dc2946-1e81-48ba-aedf-9eab2e465b6f","CategoryName":"sample string 2","ParentPersonCategoryId":"ea080a0c-a88c-4b9a-a258-c29e57fa4897","Remarks":"sample string 3","Id":"86dc2946-1e81-48ba-aedf-9eab2e465b6f","CanUpdateRecord":true,"CanDeleteRecord":true}

application/xml, text/xml

Sample:
<PersonCategoryDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi.Club">
  <CanDeleteRecord xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">true</CanDeleteRecord>
  <CanUpdateRecord xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">true</CanUpdateRecord>
  <Id xmlns="http://schemas.datacontract.org/2004/07/FLS.Data.WebApi">86dc2946-1e81-48ba-aedf-9eab2e465b6f</Id>
  <CategoryName>sample string 2</CategoryName>
  <ParentPersonCategoryId>ea080a0c-a88c-4b9a-a258-c29e57fa4897</ParentPersonCategoryId>
  <PersonCategoryId>86dc2946-1e81-48ba-aedf-9eab2e465b6f</PersonCategoryId>
  <Remarks>sample string 3</Remarks>
</PersonCategoryDetails>