PUT product?field={field}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| field | string |
Required |
Body Parameters
None.
Response Information
Resource Description
Product| Name | Description | Type | Additional information |
|---|---|---|---|
| id | globally unique identifier |
None. |
|
| masterId | globally unique identifier |
None. |
|
| branchId | globally unique identifier |
None. |
|
| branchName | string |
None. |
|
| code | string |
None. |
|
| name | string |
None. |
|
| imageBase64 | string |
None. |
|
| imageId | globally unique identifier |
None. |
|
| imageUrl | string |
None. |
|
| subTitle | string |
None. |
|
| type | integer |
None. |
|
| allBranch | boolean |
None. |
|
| groupId | globally unique identifier |
None. |
|
| groupName | string |
None. |
|
| price | decimal number |
None. |
|
| order | integer |
None. |
|
| note | string |
None. |
|
| prices | Collection of ProductPrice |
None. |
Response Formats
application/json, text/json
Sample:
{
"id": "e7522d6a-2ff8-4c68-b62d-78b0b553041a",
"masterId": "0c58c2e8-7ee7-4771-b5cc-b118a84d4a8b",
"branchId": "22c86b47-b851-454b-ad61-10ca883a5ca4",
"branchName": "sample string 1",
"code": "sample string 2",
"name": "sample string 3",
"imageBase64": "sample string 4",
"imageId": "45828065-2135-418a-88f6-4b0e86cbdedd",
"imageUrl": "sample string 5",
"subTitle": "sample string 6",
"type": 7,
"allBranch": true,
"groupId": "f2cc7fb3-7d6d-4e01-bee2-58fc187dae64",
"groupName": "sample string 9",
"price": 10.1,
"order": 11,
"note": "sample string 12",
"prices": [
{
"id": "4f412d22-ead3-444d-a011-2ce6d9a6bc93",
"productId": "af0ae021-5399-4d85-8db7-efbab056d63c",
"isStudent": true,
"name": "sample string 2",
"type": 3,
"month": 4,
"day": 5,
"price": 6.1,
"limitPrice": 7.1,
"note": "sample string 8",
"appVisible": true
},
{
"id": "4f412d22-ead3-444d-a011-2ce6d9a6bc93",
"productId": "af0ae021-5399-4d85-8db7-efbab056d63c",
"isStudent": true,
"name": "sample string 2",
"type": 3,
"month": 4,
"day": 5,
"price": 6.1,
"limitPrice": 7.1,
"note": "sample string 8",
"appVisible": true
}
]
}
application/xml, text/xml
Sample:
<Product xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Careby.Api.Models">
<allBranch>true</allBranch>
<branchId>22c86b47-b851-454b-ad61-10ca883a5ca4</branchId>
<branchName>sample string 1</branchName>
<code>sample string 2</code>
<groupId>f2cc7fb3-7d6d-4e01-bee2-58fc187dae64</groupId>
<groupName>sample string 9</groupName>
<id>e7522d6a-2ff8-4c68-b62d-78b0b553041a</id>
<imageBase64>sample string 4</imageBase64>
<imageId>45828065-2135-418a-88f6-4b0e86cbdedd</imageId>
<imageUrl>sample string 5</imageUrl>
<masterId>0c58c2e8-7ee7-4771-b5cc-b118a84d4a8b</masterId>
<name>sample string 3</name>
<note>sample string 12</note>
<order>11</order>
<price>10.1</price>
<prices>
<ProductPrice>
<appVisible>true</appVisible>
<day>5</day>
<id>4f412d22-ead3-444d-a011-2ce6d9a6bc93</id>
<isStudent>true</isStudent>
<limitPrice>7.1</limitPrice>
<month>4</month>
<name>sample string 2</name>
<note>sample string 8</note>
<price>6.1</price>
<productId>af0ae021-5399-4d85-8db7-efbab056d63c</productId>
<type>3</type>
</ProductPrice>
<ProductPrice>
<appVisible>true</appVisible>
<day>5</day>
<id>4f412d22-ead3-444d-a011-2ce6d9a6bc93</id>
<isStudent>true</isStudent>
<limitPrice>7.1</limitPrice>
<month>4</month>
<name>sample string 2</name>
<note>sample string 8</note>
<price>6.1</price>
<productId>af0ae021-5399-4d85-8db7-efbab056d63c</productId>
<type>3</type>
</ProductPrice>
</prices>
<subTitle>sample string 6</subTitle>
<type>7</type>
</Product>