PUT products/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | globally unique identifier |
Required |
Body Parameters
ProductRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| Name | string |
None. |
|
| DosesForm | byte |
None. |
|
| Description | string |
None. |
|
| PharmaCompanyId | globally unique identifier |
None. |
|
| Compositions | Collection of ProductCompositionRequest |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "1be49125-52d5-41d8-8b38-92ba0fe36fb8",
"Name": "sample string 2",
"DosesForm": 64,
"Description": "sample string 4",
"PharmaCompanyId": "884f9ee5-eb85-4892-a85b-67c85de7ba21",
"Compositions": [
{
"Id": "cec456b5-b6e2-4588-a468-1873f4b96cb0",
"SeqNo": 2,
"SaltQty": 3.1,
"SaltQtyUom": 64,
"SaltID": "1453bbae-daba-4e99-b995-0550df4f4e1b"
},
{
"Id": "cec456b5-b6e2-4588-a468-1873f4b96cb0",
"SeqNo": 2,
"SaltQty": 3.1,
"SaltQtyUom": 64,
"SaltID": "1453bbae-daba-4e99-b995-0550df4f4e1b"
}
]
}
application/xml, text/xml
Sample:
<ProductRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZoeLife.BusinessEntities.Requests.Medicine">
<Compositions>
<ProductCompositionRequest>
<Id>cec456b5-b6e2-4588-a468-1873f4b96cb0</Id>
<SaltID>1453bbae-daba-4e99-b995-0550df4f4e1b</SaltID>
<SaltQty>3.1</SaltQty>
<SaltQtyUom>64</SaltQtyUom>
<SeqNo>2</SeqNo>
</ProductCompositionRequest>
<ProductCompositionRequest>
<Id>cec456b5-b6e2-4588-a468-1873f4b96cb0</Id>
<SaltID>1453bbae-daba-4e99-b995-0550df4f4e1b</SaltID>
<SaltQty>3.1</SaltQty>
<SaltQtyUom>64</SaltQtyUom>
<SeqNo>2</SeqNo>
</ProductCompositionRequest>
</Compositions>
<Description>sample string 4</Description>
<DosesForm>64</DosesForm>
<Id>1be49125-52d5-41d8-8b38-92ba0fe36fb8</Id>
<Name>sample string 2</Name>
<PharmaCompanyId>884f9ee5-eb85-4892-a85b-67c85de7ba21</PharmaCompanyId>
</ProductRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResultOfGuid| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | globally unique identifier |
None. |
|
| Messages | Collection of string |
None. |
|
| Succeeded | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": "0a14a1fa-a322-46e4-8718-375610759143",
"Messages": [
"sample string 1",
"sample string 2"
],
"Succeeded": true
}
application/xml, text/xml
Sample:
<ResultOfguid xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ZoeLife.Shared.Wrapper">
<Messages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</Messages>
<Succeeded>true</Succeeded>
<Data>0a14a1fa-a322-46e4-8718-375610759143</Data>
</ResultOfguid>