PUT api/Company/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

CompanyModels
NameDescriptionTypeAdditional information
CO_Id

integer

None.

CO_Code

string

None.

CO_Name

string

Required

Max length: 100

CO_Country

string

None.

StateSpeedSearch

StateSpeedSearchModels

Required

DistrictSpeedSearch

DistrictSpeedSearchModels

Required

TalukSpeedSearch

TalukSpeedSearchModels

Required

VillageSpeedSearch

VillageSpeedSearchModels

Required

CO_PinCode

integer

Required

CO_MobileNumber

integer

Required

CO_Email

string

Required

Max length: 50

CO_TIN_No

string

Max length: 20

CO_ST_No

string

Max length: 20

CO_CustomerSupportNo

integer

Required

CO_PO_TC

string

Required

Max length: 500

CO_Invoice_TC

string

Required

Max length: 500

CO_UserId_FK

integer

None.

CO_TS

date

None.

CO_Inactive

character

None.

CO_TS_LastEdited

date

None.

CO_TS_Edited_Uid_FK

integer

None.

CO_Email1

string

None.

CO_Email2

string

None.

CO_Email3

string

None.

CO_Email4

string

None.

CO_Email5

string

None.

CO_MobileNo1

integer

None.

CO_MobileNo2

integer

None.

CO_MobileNo3

integer

None.

CO_MobileNo4

integer

None.

CO_MobileNo5

integer

None.

CO_PriorNotifyDays

integer

Required

Request Formats

application/json, text/json

Sample:
{
  "CO_Id": 1,
  "CO_Code": "sample string 2",
  "CO_Name": "sample string 3",
  "CO_Country": "sample string 4",
  "StateSpeedSearch": {
    "ST_Id": 1,
    "ST_StateID": "sample string 2",
    "ST_StateName": "sample string 3"
  },
  "DistrictSpeedSearch": {
    "DI_Id": 1,
    "DI_DistrictId": "sample string 2",
    "DI_District": "sample string 3"
  },
  "TalukSpeedSearch": {
    "TA_Id": 1,
    "TA_TalukId": "sample string 2",
    "TA_Taluk": "sample string 3"
  },
  "VillageSpeedSearch": {
    "VI_Id": 1,
    "VI_VillageId": "sample string 2",
    "VI_Village": "sample string 3"
  },
  "CO_PinCode": 5,
  "CO_MobileNumber": 6,
  "CO_Email": "sample string 7",
  "CO_TIN_No": "sample string 8",
  "CO_ST_No": "sample string 9",
  "CO_CustomerSupportNo": 10,
  "CO_PO_TC": "sample string 11",
  "CO_Invoice_TC": "sample string 12",
  "CO_UserId_FK": 13,
  "CO_TS": "2024-03-28T22:30:23.297332+05:30",
  "CO_Inactive": "A",
  "CO_TS_LastEdited": "2024-03-28T22:30:23.2978031+05:30",
  "CO_TS_Edited_Uid_FK": 17,
  "CO_Email1": "sample string 18",
  "CO_Email2": "sample string 19",
  "CO_Email3": "sample string 20",
  "CO_Email4": "sample string 21",
  "CO_Email5": "sample string 22",
  "CO_MobileNo1": 1,
  "CO_MobileNo2": 1,
  "CO_MobileNo3": 1,
  "CO_MobileNo4": 1,
  "CO_MobileNo5": 1,
  "CO_PriorNotifyDays": 23
}

application/xml, text/xml

Sample:
<CompanyModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models">
  <CO_Code>sample string 2</CO_Code>
  <CO_Country>sample string 4</CO_Country>
  <CO_CustomerSupportNo>10</CO_CustomerSupportNo>
  <CO_Email>sample string 7</CO_Email>
  <CO_Email1>sample string 18</CO_Email1>
  <CO_Email2>sample string 19</CO_Email2>
  <CO_Email3>sample string 20</CO_Email3>
  <CO_Email4>sample string 21</CO_Email4>
  <CO_Email5>sample string 22</CO_Email5>
  <CO_Id>1</CO_Id>
  <CO_Inactive>65</CO_Inactive>
  <CO_Invoice_TC>sample string 12</CO_Invoice_TC>
  <CO_MobileNo1>1</CO_MobileNo1>
  <CO_MobileNo2>1</CO_MobileNo2>
  <CO_MobileNo3>1</CO_MobileNo3>
  <CO_MobileNo4>1</CO_MobileNo4>
  <CO_MobileNo5>1</CO_MobileNo5>
  <CO_MobileNumber>6</CO_MobileNumber>
  <CO_Name>sample string 3</CO_Name>
  <CO_PO_TC>sample string 11</CO_PO_TC>
  <CO_PinCode>5</CO_PinCode>
  <CO_PriorNotifyDays>23</CO_PriorNotifyDays>
  <CO_ST_No>sample string 9</CO_ST_No>
  <CO_TIN_No>sample string 8</CO_TIN_No>
  <CO_TS>2024-03-28T22:30:23.297332+05:30</CO_TS>
  <CO_TS_Edited_Uid_FK>17</CO_TS_Edited_Uid_FK>
  <CO_TS_LastEdited>2024-03-28T22:30:23.2978031+05:30</CO_TS_LastEdited>
  <CO_UserId_FK>13</CO_UserId_FK>
  <DistrictSpeedSearch xmlns:d2p1="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models.SpeedSearch">
    <d2p1:DI_District>sample string 3</d2p1:DI_District>
    <d2p1:DI_DistrictId>sample string 2</d2p1:DI_DistrictId>
    <d2p1:DI_Id>1</d2p1:DI_Id>
  </DistrictSpeedSearch>
  <StateSpeedSearch xmlns:d2p1="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models.SpeedSearch">
    <d2p1:ST_Id>1</d2p1:ST_Id>
    <d2p1:ST_StateID>sample string 2</d2p1:ST_StateID>
    <d2p1:ST_StateName>sample string 3</d2p1:ST_StateName>
  </StateSpeedSearch>
  <TalukSpeedSearch xmlns:d2p1="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models.SpeedSearch">
    <d2p1:TA_Id>1</d2p1:TA_Id>
    <d2p1:TA_Taluk>sample string 3</d2p1:TA_Taluk>
    <d2p1:TA_TalukId>sample string 2</d2p1:TA_TalukId>
  </TalukSpeedSearch>
  <VillageSpeedSearch xmlns:d2p1="http://schemas.datacontract.org/2004/07/eDairyWebAPI.Models.SpeedSearch">
    <d2p1:VI_Id>1</d2p1:VI_Id>
    <d2p1:VI_Village>sample string 3</d2p1:VI_Village>
    <d2p1:VI_VillageId>sample string 2</d2p1:VI_VillageId>
  </VillageSpeedSearch>
</CompanyModels>

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 'CompanyModels'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.