Product Metafield

Upsert a product metafield

Upsert a product metafield

put/unstable/product-metafield

Request

  • Base URL
    https://api.authentified.co
  • Auth
    API key in header X-Authentified-API-Key

Request body

idstring required

The Unique Identifier of the metafield in your system

productIdstring required

The Unique Identifier of the product this metafield belongs to

namespacestring

The namespace of the metafield

keystring required

The key of the metafield

valuestring required

The value of the metafield

createdAtstring date-time

The date and time when the product metafield was created in your system

updatedAtstring date-time

The date and time when the product metafield was updated in your system

Example request

{
  "id": "158291",
  "productId": "458291",
  "namespace": "custom",
  "key": "careInstructions",
  "value": "* Wash in cold water only",
  "createdAt": "2023-10-01T12:12:00Z",
  "updatedAt": "2023-10-01T18:38:00Z"
}

Response

Product metafield updated successfully

idstring required

The Unique Identifier of the metafield in your system

productIdstring required

The Unique Identifier of the product this metafield belongs to

namespacestring

The namespace of the metafield

keystring required

The key of the metafield

valuestring required

The value of the metafield

createdAtstring date-time

The date and time when the product metafield was created in your system

updatedAtstring date-time

The date and time when the product metafield was updated in your system

Example response

{
  "id": "158291",
  "productId": "458291",
  "namespace": "custom",
  "key": "careInstructions",
  "value": "* Wash in cold water only",
  "createdAt": "2023-10-01T12:12:00Z",
  "updatedAt": "2023-10-01T18:38:00Z"
}

Changes

No recorded changes to this operation across all 1 revision of this API.