shopify_update_metafield
Update or create Shopify metafields on products, customers, orders, variants, or collections by specifying owner ID, namespace, key, value, and type.
Instructions
Create or update a metafield on a Shopify resource.
Args: owner_type: One of: PRODUCT, CUSTOMER, ORDER, VARIANT, COLLECTION. Defaults to PRODUCT. owner_id (required): Resource ID (numeric or GID). namespace (required): Metafield namespace. key (required): Metafield key. value (required): Metafield value (string-encoded per the type). type: Metafield type (e.g. single_line_text_field, number_integer, json). Defaults to single_line_text_field. project_id: Authenticated Project UUID. project_ref: Exact project correlation reference. connector_account_ref: Project-bound connector account alias. idempotency_key: Stable business-action identity. effect: Claimed read or write effect; Spring verifies it. approval_ref: Approved platform task UUID when resuming a write.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | ||
| type | No | ||
| value | No | ||
| effect | No | ||
| owner_id | No | ||
| namespace | No | ||
| owner_type | No | ||
| project_id | No | ||
| project_ref | No | ||
| approval_ref | No | ||
| idempotency_key | No | ||
| connector_account_ref | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |