v1

latestSwagger 2.02026-07-17148179252.3 KB
Catalog

Updates a Metafield object.

put/catalog/brands/{brand_id}/metafields/{metafield_id}

Request body

permission_set'app_only' | 'read' | 'write'

Determines whether the field is completely private to the app that owns the field (app_only), or visible to other API consumers (read), or completely open for reading and writing to other apps (write).

namespacestring

Namespace for the metafield, for organizational purposes.

keystring

The name of the field, for example: location_id, color.

valuestring

The value of the field, for example: 1, blue.

descriptionstring

Description for the metafields.

resource_type'category' | 'brand' | 'product' | 'variant'

The type of resource with which the metafield is associated.

resource_idinteger

The unique identifier for the resource with which the metafield is associated.

idinteger

The unique identifier for the metafields.

Response

A metafield and metadata.

metaMeta

Empty meta object; may be used later.