POST api/ContactTypes/CRUD

Add/Update/Delete ContactTypes

Request Information

URI Parameters

None.

Body Parameters

String Array of ContactType Names And Information(Mandatory)

Collection of ContactTypeInfo
NameDescriptionTypeAdditional information
ContactTypeId

integer

None.

ContactTypeName

string

None.

Desc

string

None.

isActive

boolean

None.

Deleted

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "ContactTypeId": 1,
    "ContactTypeName": "sample string 2",
    "Desc": "sample string 3",
    "isActive": true,
    "Deleted": 1
  },
  {
    "ContactTypeId": 1,
    "ContactTypeName": "sample string 2",
    "Desc": "sample string 3",
    "isActive": true,
    "Deleted": 1
  }
]

application/xml, text/xml

Sample:
<ArrayOfContactTypeInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ClassLibraryITTF1">
  <ContactTypeInfo>
    <ContactTypeId>1</ContactTypeId>
    <ContactTypeName>sample string 2</ContactTypeName>
    <Deleted>1</Deleted>
    <Desc>sample string 3</Desc>
    <isActive>true</isActive>
  </ContactTypeInfo>
  <ContactTypeInfo>
    <ContactTypeId>1</ContactTypeId>
    <ContactTypeName>sample string 2</ContactTypeName>
    <Deleted>1</Deleted>
    <Desc>sample string 3</Desc>
    <isActive>true</isActive>
  </ContactTypeInfo>
</ArrayOfContactTypeInfo>

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>