PUT api/DepreciationMaster
Update Depreciation Master
Request Information
URI Parameters
None.
Body Parameters
DepreciationMasterInsertUpdateRequestModelName | Description | Type | Additional information |
---|---|---|---|
DepMasterID | integer |
None. |
|
CountryID | integer |
None. |
|
DepMethodID | integer |
None. |
|
CompanyID | integer |
None. |
|
MainGrouplist | Collection of string |
None. |
|
MainGroupID | integer |
None. |
|
LifeSpan | decimal number |
None. |
|
DepPercentage | decimal number |
None. |
|
IsActive | integer |
None. |
|
IsDeleted | integer |
None. |
|
AddedBy | integer |
None. |
Request Formats
application/json, text/json, text/plain, text/html
Sample:
{ "depMasterID": 1, "countryID": 1, "depMethodID": 1, "companyID": 1, "mainGrouplist": [ "sample string 1", "sample string 2" ], "mainGroupID": 1, "lifeSpan": 1.0, "depPercentage": 1.0, "isActive": 1, "isDeleted": 1, "addedBy": 1 }
application/xml, text/xml
Sample:
<DepreciationMasterInsertUpdateRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.RequestModel"> <AddedBy>1</AddedBy> <CompanyID>1</CompanyID> <CountryID>1</CountryID> <DepMasterID>1</DepMasterID> <DepMethodID>1</DepMethodID> <DepPercentage>1</DepPercentage> <IsActive>1</IsActive> <IsDeleted>1</IsDeleted> <LifeSpan>1</LifeSpan> <MainGroupID>1</MainGroupID> <MainGrouplist xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </MainGrouplist> </DepreciationMasterInsertUpdateRequestModel>
multipart/form-data
Sample:
<DepreciationMasterInsertUpdateRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.RequestModel"><AddedBy>1</AddedBy><CompanyID>1</CompanyID><CountryID>1</CountryID><DepMasterID>1</DepMasterID><DepMethodID>1</DepMethodID><DepPercentage>1</DepPercentage><IsActive>1</IsActive><IsDeleted>1</IsDeleted><LifeSpan>1</LifeSpan><MainGroupID>1</MainGroupID><MainGrouplist xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><d2p1:string>sample string 1</d2p1:string><d2p1:string>sample string 2</d2p1:string></MainGrouplist></DepreciationMasterInsertUpdateRequestModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
CommonResponseDataModelName | Description | Type | Additional information |
---|---|---|---|
ReturnID | integer |
Required |
|
Message | string |
Required |
|
Successful | boolean |
Required |
|
Code | integer |
None. |
|
TotalRecord | integer |
None. |
Response Formats
application/json, text/json, text/plain, text/html
Sample:
{ "returnID": 1, "message": "sample string 2", "successful": true, "code": 4, "totalRecord": 5 }
application/xml, text/xml
Sample:
<CommonResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel"> <Code>4</Code> <Message>sample string 2</Message> <ReturnID>1</ReturnID> <Successful>true</Successful> <TotalRecord>5</TotalRecord> </CommonResponseDataModel>
multipart/form-data
Sample:
<CommonResponseDataModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ATMP.Core.DataModel"><Code>4</Code><Message>sample string 2</Message><ReturnID>1</ReturnID><Successful>true</Successful><TotalRecord>5</TotalRecord></CommonResponseDataModel>