POST api/ClientController/SaveClientDetails

Request Information

URI Parameters

None.

Body Parameters

ClientModel
NameDescriptionTypeAdditional information
C_Id

integer

None.

Client_Id

string

None.

C_Name

string

None.

C_Address

string

None.

C_District

integer

None.

C_Taluk

integer

None.

C_Pincode

integer

None.

C_President_Name

string

None.

C_Ceo_Name

string

None.

C_Mobile_No

string

None.

C_EmailId

string

None.

C_Note

string

None.

C_Special_Note

string

None.

C_UserId

integer

None.

C_TS

date

None.

C_Inactive

string

None.

C_TS_LastEdited

date

None.

C_LastEdited_Uid

string

None.

DistrictName

string

None.

TalukName

string

None.

Client_Projectlist

Collection of ProjectModel

None.

NotINClient_Projectlist

Collection of ProjectModel

None.

Request Formats

application/json, text/json

Sample:
{
  "C_Id": 1,
  "Client_Id": "sample string 2",
  "C_Name": "sample string 3",
  "C_Address": "sample string 4",
  "C_District": 1,
  "C_Taluk": 1,
  "C_Pincode": 1,
  "C_President_Name": "sample string 5",
  "C_Ceo_Name": "sample string 6",
  "C_Mobile_No": "sample string 7",
  "C_EmailId": "sample string 8",
  "C_Note": "sample string 9",
  "C_Special_Note": "sample string 10",
  "C_UserId": 11,
  "C_TS": "2025-12-07T14:59:42.4229914+05:30",
  "C_Inactive": "sample string 13",
  "C_TS_LastEdited": "2025-12-07T14:59:42.4239904+05:30",
  "C_LastEdited_Uid": "sample string 15",
  "DistrictName": "sample string 16",
  "TalukName": "sample string 17",
  "Client_Projectlist": [
    {
      "Tr_Pro_Id": 1,
      "Tr_Pro_Title": "sample string 1",
      "Tr_Pro_Description": "sample string 2",
      "Tr_Pro_Coordinater": 1,
      "Tr_Pro_Inactive": "sample string 3",
      "Tr_Pro_UserId_FK": 4,
      "Tr_Pro_TS": "2025-12-07T14:59:42.4239904+05:30",
      "Tr_Pro_TS_LastEdited": "2025-12-07T14:59:42.4239904+05:30",
      "Tr_Pro_TS_Edited_Uid_FK": 7,
      "CoordinatorName": "sample string 8",
      "CP_Id": 9,
      "CP_Inactive": "sample string 10",
      "IsSelected": 11,
      "Tr_Id": 12,
      "Tr_Inactive": "sample string 13"
    },
    {
      "Tr_Pro_Id": 1,
      "Tr_Pro_Title": "sample string 1",
      "Tr_Pro_Description": "sample string 2",
      "Tr_Pro_Coordinater": 1,
      "Tr_Pro_Inactive": "sample string 3",
      "Tr_Pro_UserId_FK": 4,
      "Tr_Pro_TS": "2025-12-07T14:59:42.4239904+05:30",
      "Tr_Pro_TS_LastEdited": "2025-12-07T14:59:42.4239904+05:30",
      "Tr_Pro_TS_Edited_Uid_FK": 7,
      "CoordinatorName": "sample string 8",
      "CP_Id": 9,
      "CP_Inactive": "sample string 10",
      "IsSelected": 11,
      "Tr_Id": 12,
      "Tr_Inactive": "sample string 13"
    }
  ],
  "NotINClient_Projectlist": [
    {
      "Tr_Pro_Id": 1,
      "Tr_Pro_Title": "sample string 1",
      "Tr_Pro_Description": "sample string 2",
      "Tr_Pro_Coordinater": 1,
      "Tr_Pro_Inactive": "sample string 3",
      "Tr_Pro_UserId_FK": 4,
      "Tr_Pro_TS": "2025-12-07T14:59:42.4239904+05:30",
      "Tr_Pro_TS_LastEdited": "2025-12-07T14:59:42.4239904+05:30",
      "Tr_Pro_TS_Edited_Uid_FK": 7,
      "CoordinatorName": "sample string 8",
      "CP_Id": 9,
      "CP_Inactive": "sample string 10",
      "IsSelected": 11,
      "Tr_Id": 12,
      "Tr_Inactive": "sample string 13"
    },
    {
      "Tr_Pro_Id": 1,
      "Tr_Pro_Title": "sample string 1",
      "Tr_Pro_Description": "sample string 2",
      "Tr_Pro_Coordinater": 1,
      "Tr_Pro_Inactive": "sample string 3",
      "Tr_Pro_UserId_FK": 4,
      "Tr_Pro_TS": "2025-12-07T14:59:42.4239904+05:30",
      "Tr_Pro_TS_LastEdited": "2025-12-07T14:59:42.4239904+05:30",
      "Tr_Pro_TS_Edited_Uid_FK": 7,
      "CoordinatorName": "sample string 8",
      "CP_Id": 9,
      "CP_Inactive": "sample string 10",
      "IsSelected": 11,
      "Tr_Id": 12,
      "Tr_Inactive": "sample string 13"
    }
  ]
}

application/xml, text/xml

Sample:
<ClientModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KHBWebApi.Models">
  <C_Address>sample string 4</C_Address>
  <C_Ceo_Name>sample string 6</C_Ceo_Name>
  <C_District>1</C_District>
  <C_EmailId>sample string 8</C_EmailId>
  <C_Id>1</C_Id>
  <C_Inactive>sample string 13</C_Inactive>
  <C_LastEdited_Uid>sample string 15</C_LastEdited_Uid>
  <C_Mobile_No>sample string 7</C_Mobile_No>
  <C_Name>sample string 3</C_Name>
  <C_Note>sample string 9</C_Note>
  <C_Pincode>1</C_Pincode>
  <C_President_Name>sample string 5</C_President_Name>
  <C_Special_Note>sample string 10</C_Special_Note>
  <C_TS>2025-12-07T14:59:42.4229914+05:30</C_TS>
  <C_TS_LastEdited>2025-12-07T14:59:42.4239904+05:30</C_TS_LastEdited>
  <C_Taluk>1</C_Taluk>
  <C_UserId>11</C_UserId>
  <Client_Id>sample string 2</Client_Id>
  <Client_Projectlist>
    <ProjectModel>
      <CP_Id>9</CP_Id>
      <CP_Inactive>sample string 10</CP_Inactive>
      <CoordinatorName>sample string 8</CoordinatorName>
      <IsSelected>11</IsSelected>
      <Tr_Id>12</Tr_Id>
      <Tr_Inactive>sample string 13</Tr_Inactive>
      <Tr_Pro_Coordinater>1</Tr_Pro_Coordinater>
      <Tr_Pro_Description>sample string 2</Tr_Pro_Description>
      <Tr_Pro_Id>1</Tr_Pro_Id>
      <Tr_Pro_Inactive>sample string 3</Tr_Pro_Inactive>
      <Tr_Pro_TS>2025-12-07T14:59:42.4239904+05:30</Tr_Pro_TS>
      <Tr_Pro_TS_Edited_Uid_FK>7</Tr_Pro_TS_Edited_Uid_FK>
      <Tr_Pro_TS_LastEdited>2025-12-07T14:59:42.4239904+05:30</Tr_Pro_TS_LastEdited>
      <Tr_Pro_Title>sample string 1</Tr_Pro_Title>
      <Tr_Pro_UserId_FK>4</Tr_Pro_UserId_FK>
    </ProjectModel>
    <ProjectModel>
      <CP_Id>9</CP_Id>
      <CP_Inactive>sample string 10</CP_Inactive>
      <CoordinatorName>sample string 8</CoordinatorName>
      <IsSelected>11</IsSelected>
      <Tr_Id>12</Tr_Id>
      <Tr_Inactive>sample string 13</Tr_Inactive>
      <Tr_Pro_Coordinater>1</Tr_Pro_Coordinater>
      <Tr_Pro_Description>sample string 2</Tr_Pro_Description>
      <Tr_Pro_Id>1</Tr_Pro_Id>
      <Tr_Pro_Inactive>sample string 3</Tr_Pro_Inactive>
      <Tr_Pro_TS>2025-12-07T14:59:42.4239904+05:30</Tr_Pro_TS>
      <Tr_Pro_TS_Edited_Uid_FK>7</Tr_Pro_TS_Edited_Uid_FK>
      <Tr_Pro_TS_LastEdited>2025-12-07T14:59:42.4239904+05:30</Tr_Pro_TS_LastEdited>
      <Tr_Pro_Title>sample string 1</Tr_Pro_Title>
      <Tr_Pro_UserId_FK>4</Tr_Pro_UserId_FK>
    </ProjectModel>
  </Client_Projectlist>
  <DistrictName>sample string 16</DistrictName>
  <NotINClient_Projectlist>
    <ProjectModel>
      <CP_Id>9</CP_Id>
      <CP_Inactive>sample string 10</CP_Inactive>
      <CoordinatorName>sample string 8</CoordinatorName>
      <IsSelected>11</IsSelected>
      <Tr_Id>12</Tr_Id>
      <Tr_Inactive>sample string 13</Tr_Inactive>
      <Tr_Pro_Coordinater>1</Tr_Pro_Coordinater>
      <Tr_Pro_Description>sample string 2</Tr_Pro_Description>
      <Tr_Pro_Id>1</Tr_Pro_Id>
      <Tr_Pro_Inactive>sample string 3</Tr_Pro_Inactive>
      <Tr_Pro_TS>2025-12-07T14:59:42.4239904+05:30</Tr_Pro_TS>
      <Tr_Pro_TS_Edited_Uid_FK>7</Tr_Pro_TS_Edited_Uid_FK>
      <Tr_Pro_TS_LastEdited>2025-12-07T14:59:42.4239904+05:30</Tr_Pro_TS_LastEdited>
      <Tr_Pro_Title>sample string 1</Tr_Pro_Title>
      <Tr_Pro_UserId_FK>4</Tr_Pro_UserId_FK>
    </ProjectModel>
    <ProjectModel>
      <CP_Id>9</CP_Id>
      <CP_Inactive>sample string 10</CP_Inactive>
      <CoordinatorName>sample string 8</CoordinatorName>
      <IsSelected>11</IsSelected>
      <Tr_Id>12</Tr_Id>
      <Tr_Inactive>sample string 13</Tr_Inactive>
      <Tr_Pro_Coordinater>1</Tr_Pro_Coordinater>
      <Tr_Pro_Description>sample string 2</Tr_Pro_Description>
      <Tr_Pro_Id>1</Tr_Pro_Id>
      <Tr_Pro_Inactive>sample string 3</Tr_Pro_Inactive>
      <Tr_Pro_TS>2025-12-07T14:59:42.4239904+05:30</Tr_Pro_TS>
      <Tr_Pro_TS_Edited_Uid_FK>7</Tr_Pro_TS_Edited_Uid_FK>
      <Tr_Pro_TS_LastEdited>2025-12-07T14:59:42.4239904+05:30</Tr_Pro_TS_LastEdited>
      <Tr_Pro_Title>sample string 1</Tr_Pro_Title>
      <Tr_Pro_UserId_FK>4</Tr_Pro_UserId_FK>
    </ProjectModel>
  </NotINClient_Projectlist>
  <TalukName>sample string 17</TalukName>
</ClientModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ClientModel'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.