PUT Attributes/GlobalAttribute
Request Information
URI Parameters
None.
Body Parameters
UpdateGlobalAttributeName | Description | Type | Additional information |
---|---|---|---|
GlobalAttributeId | integer |
None. |
|
Value | string |
None. |
|
Name | string |
None. |
|
Sku | string |
Required |
|
Enabled | boolean |
Required |
|
Mktps | Collection of UpdateGlobalAttributeMktp |
None. |
Request Formats
application/json, text/json
Sample:
{ "GlobalAttributeId": 1, "Value": "sample string 1", "Name": "sample string 2", "Sku": "sample string 3", "Enabled": true, "Mktps": [ { "MktpId": 1, "Enabled": true }, { "MktpId": 1, "Enabled": true } ] }
application/xml, text/xml
Sample:
<UpdateGlobalAttribute xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPIHUB.Models.Attribute"> <Enabled>true</Enabled> <GlobalAttributeId>1</GlobalAttributeId> <Mktps> <UpdateGlobalAttributeMktp> <Enabled>true</Enabled> <MktpId>1</MktpId> </UpdateGlobalAttributeMktp> <UpdateGlobalAttributeMktp> <Enabled>true</Enabled> <MktpId>1</MktpId> </UpdateGlobalAttributeMktp> </Mktps> <Name>sample string 2</Name> <Sku>sample string 3</Sku> <Value>sample string 1</Value> </UpdateGlobalAttribute>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
HttpResponseMessageName | 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. |