- Start Here 🚀
- Overview to Zid Apps
- Authorization
- Responses
- Webhooks
- Rate Limiting
- APIs
- Orders
- Reverse Orders
- Carts
- Products
- Inventories
- Shipping
- Marketing
- Gift Cards
- Coupons
- Bundle Offers
- Loyalty Program
- Loyalty Program Points per OrderGET
- Store Loyalty StatusGET
- Info PageGET
- Loyalty Program ActivationPOST
- Loyalty StatusGET
- Set Points ExpirationPOST
- Cashback Rule Method UpdatePOST
- Cashback Rule Method Update StatusPUT
- Add Points Redemption MethodPOST
- Update Points Redemption MethodPOST
- Delete Points Redemption MethodPOST
- Toggle Redemption Method StatusPUT
- Show Loyalty Points Info for Specific CustomerGET
- Customer ProfileGET
- List DataGET
- Customer Points HistoryGET
- Info Page - ManagersGET
- Update Info PagePUT
- Adjust Customer PointsPOST
- Gift Cards
- Customers
- Store Settings
- Countries and Cities
- Webhook
- Orders
- Store Events
Add a New Product Attribute
POST
https://api.zid.sa/v1/Metafields
Product Attributes
🔑Scopes
products.read_write
- Products Read & WriteRequest
Header Params
Accept-Language
enum<string>Â
optional
en
if not specified.Allowed values:
enar
Example:
en
Store-Id
numberÂ
required
Example:
37213
Body Params application/json
name
objectÂ
optional
en
stringÂ
optional
ar
stringÂ
optional
Example
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.zid.sa/v1/Metafields' \
--header 'Accept-Language;' \
--header 'Store-Id;' \
--header 'Content-Type: application/json' \
--data-raw ''
Responses
🟢200List of attributes by ID
application/json
Body
id
stringÂ
optional
Example:
81ad822e-a9b2-4d4c-8a07-7f8110915e2f
name
objectÂ
optional
ar
stringÂ
optional
Example:
اللون
en
stringÂ
optional
Example:
Color
slug
stringÂ
optional
Example:
color
value
objectÂ
optional
ar
stringÂ
optional
Example:
أسود
en
stringÂ
optional
Example:
Black
Example
{
"id": "81ad822e-a9b2-4d4c-8a07-7f8110915e2f",
"name": {
"ar": "اللون",
"en": "Color"
},
"slug": "color",
"value": {
"ar": "أسود",
"en": "Black"
}
}
Modified at 2025-01-16 08:27:30