PUT /catalog/products/{product_id}/metafields/{metafield_id}
Updates a Product Metafield.
Required Fields
- none
Read-Only Fields
- id
- These fields can only be modified using the API account that created the metafield:
namespacekeypermission_setvalue
Usage Notes
- Attempting to modify the
namespace,key,permission_set, orvaluefield using an API account different from the one used to create those metafields will result in a403error message.
Servers
- https://api.bigcommerce.com/stores/{store_hash}/v3
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
metafield_id |
Integer | Yes |
The ID of the |
product_id |
Integer | Yes |
The ID of the |
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.