PUT api/MedAidType/Update
Request Information
URI Parameters
None.
Body Parameters
MedAidTypeUpdateVM| Name | Description | Type | Additional information |
|---|---|---|---|
| BookId | integer |
Required |
|
| TypeId | integer |
Required |
|
| TypeName | string |
Required String length: inclusive between 0 and 100 |
|
| Code | string |
String length: inclusive between 0 and 10 |
|
| Category | MedAidCategoryLookupVM |
Required |
|
| BookType | AccountBookTypeLookup |
Required |
|
| Account | AccountMasterLookup |
None. |
|
| Status | string |
Required Matching regular expression pattern: A|I |
|
| UpdateUser | integer |
Required |
|
| UpdateIp | string |
Required String length: inclusive between 0 and 20 |
Request Formats
application/json, text/json
Sample:
{
"BookId": 1,
"TypeId": 2,
"TypeName": "sample string 3",
"Code": "sample string 4",
"Category": {
"CategoryId": 1,
"CategoryName": "sample string 2"
},
"BookType": {
"BookTypeId": 1,
"BookTypeName": "sample string 2"
},
"Account": {
"AccountId": 1,
"AccountName": "sample string 2"
},
"Status": "sample string 5",
"UpdateUser": 6,
"UpdateIp": "sample string 7"
}
application/xml, text/xml
Sample:
<MedAidTypeUpdateVM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
<Account>
<AccountId>1</AccountId>
<AccountName>sample string 2</AccountName>
</Account>
<BookId>1</BookId>
<BookType>
<BookTypeId>1</BookTypeId>
<BookTypeName>sample string 2</BookTypeName>
</BookType>
<Category>
<CategoryId>1</CategoryId>
<CategoryName>sample string 2</CategoryName>
</Category>
<Code>sample string 4</Code>
<Status>sample string 5</Status>
<TypeId>2</TypeId>
<TypeName>sample string 3</TypeName>
<UpdateIp>sample string 7</UpdateIp>
<UpdateUser>6</UpdateUser>
</MedAidTypeUpdateVM>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.