Metafields Create
tiendanube_metafields_createCreates a metafield for Tiendanube resources such as products, variants, categories, pages, orders, or customers by specifying namespace, key, value, and owner.
Instructions
Create a metafield. HTTP: POST /metafields Required scope: read_*/write_* matching owner_resource: products (Product, Product_Variant, Category) | content (Page) | orders (Order) | customers (Customer) API version: 2025-03
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"namespace": "<namespace>",
"key": "<key>",
"value": "<value>",
"owner_resource": "<owner_resource>",
"owner_id": "<owner_id>"
},
"name": "tiendanube_metafields_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Key | |
| value | Yes | Value | |
| owner_id | Yes | Owner ID | |
| namespace | Yes | Namespace | |
| description | No | Description | |
| owner_resource | Yes | Owner resource type (Product | Product_Variant | Category | Page | Order | Customer) | |
| additional_fields | No | Extra raw API body fields not covered above; merged into the request body |