Update or create a product attribute
Update or create a product attribute
POST/products/{productIdentifier}/attributes
Use it in a workflow
- Add a step and choose the SCAYLE Admin connector.
- Pick the Update or create a product attribute action (under Attributes).
- Fill in the fields below, then reference the result from later steps as
{{updateOrCreateAProductAttribute.response.data}}.
Request
Path parameters
productIdentifieroneOfrequired
Product ID or reference key.
If you are using a reference key, it is highly recommended to use the encoded equal sign (%3D) instead of the plain =
Query parameters
ignoreAttributeLocksboolean
If set to true, then even locked attributes get updated/deleted.
Default false
Request body
Enter the body as JSON in the step's Body field.
namestringrequired
The attribute name.
typestringrequired
The attribute type.
One ofsimplesimpleListlocalizedStringlocalizedStringListadvancedadvancedList
valueanyrequired
The attribute value where the datatype is defined by the type property.
isLockedboolean
Specifies if the attribute group should be locked.
shopCountrySpecificarray<object>Used to override the attribute value for a specific shop country. Only supported by products, product masters and variants.
shopKeystringrequired
A key that uniquely identifies the shop within the tenant's ecosystem.
countryCodestringrequired
ISO 3166 alpha 2 country code.
valueanyrequired
The attribute value where the datatype is defined by the type property.
isLockedboolean
Specifies if the attribute group should be locked for the shopCountry.
{
"name": "string",
"type": "simple",
"value": null,
"isLocked": false,
"shopCountrySpecific": [
{
"shopKey": "ms",
"countryCode": "DE",
"value": null,
"isLocked": false
}
]
}
Response
Returns 200 with an object. Read it in later steps with {{updateOrCreateAProductAttribute.response.data.<field>}}.
namestring
The attribute name.
typestring
The attribute type.
One ofsimplesimpleListlocalizedStringlocalizedStringListadvancedadvancedList
valueany
The attribute value where the datatype is defined by the type property.
isLockedboolean
Specifies if the attribute group should be locked.
shopCountrySpecificarray<object>Used to override the attribute value for a specific shop country. Only supported by products, product masters and variants.
shopKeystringrequired
A key that uniquely identifies the shop within the tenant's ecosystem.
countryCodestringrequired
ISO 3166 alpha 2 country code.
valueanyrequired
The attribute value where the datatype is defined by the type property.
isLockedboolean
Specifies if the attribute group should be locked for the shopCountry.
{
"name": "string",
"type": "simple",
"value": null,
"isLocked": false,
"shopCountrySpecific": [
{
"shopKey": "ms",
"countryCode": "DE",
"value": null,
"isLocked": false
}
]
}
Need more? See the SCAYLE Admin guide for connection setup and behaviour shared by every action.