---
title: "Create specific app metafield"
method: POST
path: "/customers/{customer_id}/app_metafields"
tags: ["Customer App Metafields"]
---

# Create specific app metafield

`POST /customers/{customer_id}/app_metafields`

To create app metafield attached to specific customer

## Path parameters

- `customer_id` string, required

## Request body

- object
  - `key` Key — unresolved $ref
  - `field_type` FieldType — unresolved $ref
  - `field_value` FieldValue — unresolved $ref

## Response `200`

OK

- 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.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)
