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": "ad1fdb2c-472a-4318-a19c-712a229f52c9",
"Name": "sample string 2",
"DosesForm": 64,
"Description": "sample string 4",
"PharmaCompanyId": "e4ab5b30-e44c-4178-afdf-04581f5f501c",
"Compositions": [
{
"Id": "31af68d2-0d1e-475d-a6e4-057550042c28",
"SeqNo": 2,
"SaltQty": 3.1,
"SaltQtyUom": 64,
"SaltID": "5cfc0287-aba8-46c1-a92d-4fa7de8976ae"
},
{
"Id": "31af68d2-0d1e-475d-a6e4-057550042c28",
"SeqNo": 2,
"SaltQty": 3.1,
"SaltQtyUom": 64,
"SaltID": "5cfc0287-aba8-46c1-a92d-4fa7de8976ae"
}
]
}
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>31af68d2-0d1e-475d-a6e4-057550042c28</Id>
<SaltID>5cfc0287-aba8-46c1-a92d-4fa7de8976ae</SaltID>
<SaltQty>3.1</SaltQty>
<SaltQtyUom>64</SaltQtyUom>
<SeqNo>2</SeqNo>
</ProductCompositionRequest>
<ProductCompositionRequest>
<Id>31af68d2-0d1e-475d-a6e4-057550042c28</Id>
<SaltID>5cfc0287-aba8-46c1-a92d-4fa7de8976ae</SaltID>
<SaltQty>3.1</SaltQty>
<SaltQtyUom>64</SaltQtyUom>
<SeqNo>2</SeqNo>
</ProductCompositionRequest>
</Compositions>
<Description>sample string 4</Description>
<DosesForm>64</DosesForm>
<Id>ad1fdb2c-472a-4318-a19c-712a229f52c9</Id>
<Name>sample string 2</Name>
<PharmaCompanyId>e4ab5b30-e44c-4178-afdf-04581f5f501c</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": "5b40f773-8c43-4e31-9fed-522328bf83d5",
"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>5b40f773-8c43-4e31-9fed-522328bf83d5</Data>
</ResultOfguid>