---
title: "Bulk create app metafield"
method: POST
path: "/carts/{cart_id}/items/app_metafields/bulk"
tags: ["Cart Item App Metafields"]
---

# Bulk create app metafield

`POST /carts/{cart_id}/items/app_metafields/bulk`

## Request

- Base URL: `https://open.shopline.io/v1`
- URL: `https://open.shopline.io/v1/carts/{cart_id}/items/app_metafields/bulk`
- Auth: HTTP bearer

To create app metafield attached to cart items of specific cart

## Path parameters

- `cart_id` string, required

## Request body

- object
  - `items` Schema[] (unresolved $ref)

## Response `200`

OK

- object
  - `items` AppMetafieldValue[]
    - `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
    - `application_id` string: Application ID

---

[API](https://skmtc.dev/shoplineapp/apis/shopline-open-api.md) - [All operations](https://skmtc.dev/shoplineapp/apis/shopline-open-api/llms.txt) - [OpenAPI document](https://skmtc.dev/shoplineapp/apis/shopline-open-api/revisions/d2518391b149?raw)
