POST api/Customers/UpdateCustomerAllergies
Request Information
URI Parameters
None.
Body Parameters
AllergiesRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| CustomerIdType | integer |
None. |
|
| CustId | string |
None. |
|
| Allergies | Dictionary of integer [key] and string [value] |
None. |
Request Formats
application/json, text/json
Sample:
{
"CustomerIdType": 1,
"CustId": "sample string 2",
"Allergies": {
"1": "sample string 2",
"3": "sample string 4"
}
}
application/xml, text/xml
Sample:
<BLCustomer.AllergiesRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BLMedical">
<Allergies xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfintstring>
<d2p1:Key>1</d2p1:Key>
<d2p1:Value>sample string 2</d2p1:Value>
</d2p1:KeyValueOfintstring>
<d2p1:KeyValueOfintstring>
<d2p1:Key>3</d2p1:Key>
<d2p1:Value>sample string 4</d2p1:Value>
</d2p1:KeyValueOfintstring>
</Allergies>
<CustId>sample string 2</CustId>
<CustomerIdType>1</CustomerIdType>
</BLCustomer.AllergiesRequest>
application/x-www-form-urlencoded
Sample:
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.
Response Information
Resource Description
AllergiesResult| Name | Description | Type | Additional information |
|---|---|---|---|
| Success | boolean |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Success": true,
"Message": "sample string 2"
}
application/xml, text/xml
Sample:
<BLCustomer.AllergiesResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BLMedical"> <Message>sample string 2</Message> <Success>true</Success> </BLCustomer.AllergiesResult>
application/bson
Sample:
Binary JSON content. See http://bsonspec.org for details.