POST Catlog/ProductAttribute/Save
Request Information
URI Parameters
None.
Body Parameters
ProductAttributeViewModelName | Description | Type | Additional information |
---|---|---|---|
Id | integer |
None. |
|
StoreId | integer |
None. |
|
ProductId | integer |
Required |
|
AttributeMasterId | integer |
Required |
|
AttributeMasterName | string |
None. |
|
TextPrompt | string |
Max length: 50 |
|
ControlType | ControlType |
None. |
|
ControlTypeId | integer |
None. |
|
ControlTypeName | string |
None. |
|
IsRequired | boolean |
None. |
|
ProductAttributeValues | Collection of ProductAttributeValueViewModel |
None. |
|
DisplayOrder | integer |
None. |
|
Published | boolean |
None. |
|
ModifiedBy | string |
None. |
|
ModifiedDate | date |
None. |
Request Formats
application/json, text/json
Sample:
{ "Id": 1, "StoreId": 1, "ProductId": 2, "AttributeMasterId": 3, "AttributeMasterName": "sample string 4", "TextPrompt": "sample string 5", "ControlType": 1, "ControlTypeId": 6, "ControlTypeName": "sample string 7", "IsRequired": true, "ProductAttributeValues": [ { "Id": 1, "StoreId": 1, "ProductAttributeId": 2, "Name": "sample string 3", "PriceAdjustment": 4.0, "IsUsePercentage": true, "IsPreSelected": true, "PictureUrl": "sample string 7", "DisplayOrder": 8, "Published": true, "ModifiedBy": "sample string 10", "ModifiedDate": "2025-04-26T16:28:20.6265324+01:00" }, { "Id": 1, "StoreId": 1, "ProductAttributeId": 2, "Name": "sample string 3", "PriceAdjustment": 4.0, "IsUsePercentage": true, "IsPreSelected": true, "PictureUrl": "sample string 7", "DisplayOrder": 8, "Published": true, "ModifiedBy": "sample string 10", "ModifiedDate": "2025-04-26T16:28:20.6265324+01:00" } ], "DisplayOrder": 9, "Published": true, "ModifiedBy": "sample string 11", "ModifiedDate": "2025-04-26T16:28:20.6265324+01:00" }
application/xml, text/xml
Sample:
<ProductAttributeViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ECommerce.Service.Catalog.ViewModel"> <AttributeMasterId>3</AttributeMasterId> <AttributeMasterName>sample string 4</AttributeMasterName> <ControlType>Dropdown</ControlType> <ControlTypeId>6</ControlTypeId> <ControlTypeName>sample string 7</ControlTypeName> <DisplayOrder>9</DisplayOrder> <Id>1</Id> <IsRequired>true</IsRequired> <ModifiedBy>sample string 11</ModifiedBy> <ModifiedDate>2025-04-26T16:28:20.6265324+01:00</ModifiedDate> <ProductAttributeValues> <ProductAttributeValueViewModel> <DisplayOrder>8</DisplayOrder> <Id>1</Id> <IsPreSelected>true</IsPreSelected> <IsUsePercentage>true</IsUsePercentage> <ModifiedBy>sample string 10</ModifiedBy> <ModifiedDate>2025-04-26T16:28:20.6265324+01:00</ModifiedDate> <Name>sample string 3</Name> <PictureUrl>sample string 7</PictureUrl> <PriceAdjustment>4</PriceAdjustment> <ProductAttributeId>2</ProductAttributeId> <Published>true</Published> <StoreId>1</StoreId> </ProductAttributeValueViewModel> <ProductAttributeValueViewModel> <DisplayOrder>8</DisplayOrder> <Id>1</Id> <IsPreSelected>true</IsPreSelected> <IsUsePercentage>true</IsUsePercentage> <ModifiedBy>sample string 10</ModifiedBy> <ModifiedDate>2025-04-26T16:28:20.6265324+01:00</ModifiedDate> <Name>sample string 3</Name> <PictureUrl>sample string 7</PictureUrl> <PriceAdjustment>4</PriceAdjustment> <ProductAttributeId>2</ProductAttributeId> <Published>true</Published> <StoreId>1</StoreId> </ProductAttributeValueViewModel> </ProductAttributeValues> <ProductId>2</ProductId> <Published>true</Published> <StoreId>1</StoreId> <TextPrompt>sample string 5</TextPrompt> </ProductAttributeViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
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. |