Create Attribute Preset
POST
v1/attributes/{Attribute-Id}/presets/Use this endpoint to add a new attribute preset, allowing for quick and easy creation of attributes with localized values in both Arabic and English.
Request
Path Params
Attribute-Id
stringÂ
required
The unique identifier for the attribute to which the preset belongs.
Example:
1
Header Params
Store-Id
numberÂ
required
The unique identifier of the store where the attribute preset is being created.
Example:
37213
Body Params application/json
value
objectÂ
optional
An object containing the localized values for the attribute preset in both Arabic and English.
ar
stringÂ
optional
The attribute preset value in Arabic.
Example:
اللون
en
stringÂ
optional
The attribute preset value in English.
Example:
color
Example
{
"value": {
"ar": "اللون",
"en": "color"
}
}
Request samples
Responses
Json Represent The New Attribute Preset Values.(200)
Json Represent The New Attribute Preset Values.
HTTP Code:Â 200
Content Type :Â JSONapplication/json
Data Schema
No schema defined
Example
Not configured
Last modified: a month ago