POST /catalog/products/{product_id}/variants/{variant_id}/metafields
Creates a product variant Metafield.
Required Fields:
- permission_set
- namespace
- key
- value
Read-Only Fields
- id
Note: The maxiumum number of metafields allowed on each order, product, category, variant, or brand is 250 per client ID. For more information, see Platform Limits in the Help Center.
Servers
- https://api.bigcommerce.com/stores/{store_hash}/v3
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
product_id |
Integer | Yes |
The ID of the |
variant_id |
Integer | Yes |
ID of the variant on a product, or on an associated Price List Record. |
Request headers
| Name | Type | Required | Description |
|---|---|---|---|
Accept |
String | Yes |
The MIME type of the response body. Default value: "application/json" |
Content-Type |
String | Yes |
The MIME type of the request body. Default value: "application/json" |
Request body fields
| Name | Type | Required | Description |
|---|---|---|---|
namespace |
String | Yes |
Namespace for the metafield, for organizational purposes. This is set by the developer. Required for POST. |
description |
String | No |
Description for the metafields. |
key |
String | Yes |
The name of the field, for example: |
value |
String | Yes |
The value of the field, for example: |
permission_set |
String | Yes |
Determines the visibility and writeability of the field by other API consumers. |Value|Description
|-|-|
| Valid values:
|
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.