PUT api/Gallery/variants/{variantId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| variantId | integer |
Required |
Body Parameters
VariantModel| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| label | string |
None. |
|
| price | decimal number |
None. |
|
| fulfillment | string |
None. |
|
| prodigiSku | string |
None. |
|
| stockQty | integer |
None. |
|
| sortOrder | integer |
None. |
|
| isActive | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"label": "sample string 1",
"price": 2.0,
"fulfillment": "sample string 3",
"prodigiSku": "sample string 4",
"stockQty": 1,
"sortOrder": 5,
"isActive": true
}
application/xml, text/xml
Sample:
<GalleryController.VariantModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cait.Controllers"> <fulfillment>sample string 3</fulfillment> <id>1</id> <isActive>true</isActive> <label>sample string 1</label> <price>2</price> <prodigiSku>sample string 4</prodigiSku> <sortOrder>5</sortOrder> <stockQty>1</stockQty> </GalleryController.VariantModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |