POST api/MedAidType/Save

Request Information

URI Parameters

None.

Body Parameters

MedAidTypeSaveVM
NameDescriptionTypeAdditional information
BookId

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

CreateUser

integer

Required

CreateIp

string

Required

String length: inclusive between 0 and 20

Request Formats

application/json, text/json

Sample:
{
  "BookId": 1,
  "TypeName": "sample string 2",
  "Code": "sample string 3",
  "Category": {
    "CategoryId": 1,
    "CategoryName": "sample string 2"
  },
  "BookType": {
    "BookTypeId": 1,
    "BookTypeName": "sample string 2"
  },
  "Account": {
    "AccountId": 1,
    "AccountName": "sample string 2"
  },
  "Status": "sample string 4",
  "CreateUser": 5,
  "CreateIp": "sample string 6"
}

application/xml, text/xml

Sample:
<MedAidTypeSaveVM 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 3</Code>
  <CreateIp>sample string 6</CreateIp>
  <CreateUser>5</CreateUser>
  <Status>sample string 4</Status>
  <TypeName>sample string 2</TypeName>
</MedAidTypeSaveVM>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.