---
title: "bulk update metafield"
method: PUT
path: "/merchants/current/metafields/bulk"
tags: ["Merchant Metafields"]
---

# bulk update metafield

`PUT /merchants/current/metafields/bulk`

bulk update information of metafield attached to current merchant

## Request body

- object
  - `items` Schema[] — unresolved $ref

## Response `200`

OK

- object
  - `items` MetafieldValue[]
    - `id` string — Metafield Value ID
    - `namespace` string — Namespace
    - `key` string — Key
    - `field_type` 'single_line_text_field' | 'multi_line_text_field' | 'number_integer' | 'number_decimal' | 'json' | 'boolean' | 'url' — Data type of the metafield value<br> Type allows:<br> single_line_text_field - One line of string (max 50 characters)<br> multi_line_text_field - Multiple line of string (max 1000 characters)<br> number_integer - Integer<br> number_decimal - Decimal<br> json - String of JSON object (max 4000 characters)<br> boolean - Boolean<br> url - String of URL<br>
    - `field_value` union — Metafield value
      - string
      - number
      - boolean
      - object
    - `created_at` string
    - `updated_at` string
    - `metafield_type` 'merchant' | 'app' — Type of the metafield
    - `resource_id` string — Resource ID
    - `resource_type` 'merchant' | 'customer' | 'product' | 'order' | 'order_item' | 'cart_item' — Resource Type
    - `merchant_id` string — Merchant ID

---

[API](https://skmtc.net/shoplineapp/apis/shopline-open-api.md) · [All operations](https://skmtc.net/shoplineapp/apis/shopline-open-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/shoplineapp/shopline-open-api/revisions/1675ac12cde7/schema)
