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": "48304e73-83ea-47f4-aefa-8c4cfdc2c055",
"Name": "sample string 2",
"DosesForm": 64,
"Description": "sample string 4",
"PharmaCompanyId": "18eb834f-9c66-48b0-8a7d-8be7bd4d9b26",
"Compositions": [
{
"Id": "85815ad8-1a9a-49b5-ae73-12ace867b5b8",
"SeqNo": 2,
"SaltQty": 3.1,
"SaltQtyUom": 64,
"SaltID": "bfb8f5c7-ee36-4885-9ee6-f5c93dabac5d"
},
{
"Id": "85815ad8-1a9a-49b5-ae73-12ace867b5b8",
"SeqNo": 2,
"SaltQty": 3.1,
"SaltQtyUom": 64,
"SaltID": "bfb8f5c7-ee36-4885-9ee6-f5c93dabac5d"
}
]
}
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>85815ad8-1a9a-49b5-ae73-12ace867b5b8</Id>
<SaltID>bfb8f5c7-ee36-4885-9ee6-f5c93dabac5d</SaltID>
<SaltQty>3.1</SaltQty>
<SaltQtyUom>64</SaltQtyUom>
<SeqNo>2</SeqNo>
</ProductCompositionRequest>
<ProductCompositionRequest>
<Id>85815ad8-1a9a-49b5-ae73-12ace867b5b8</Id>
<SaltID>bfb8f5c7-ee36-4885-9ee6-f5c93dabac5d</SaltID>
<SaltQty>3.1</SaltQty>
<SaltQtyUom>64</SaltQtyUom>
<SeqNo>2</SeqNo>
</ProductCompositionRequest>
</Compositions>
<Description>sample string 4</Description>
<DosesForm>64</DosesForm>
<Id>48304e73-83ea-47f4-aefa-8c4cfdc2c055</Id>
<Name>sample string 2</Name>
<PharmaCompanyId>18eb834f-9c66-48b0-8a7d-8be7bd4d9b26</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": "51c2e594-d381-4358-9feb-8617f0571a16",
"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>51c2e594-d381-4358-9feb-8617f0571a16</Data>
</ResultOfguid>