---
title: "cart.meta_data.set"
method: POST
path: "/cart.meta_data.set.json"
tags: ["cart"]
---

# cart.meta_data.set

`POST /cart.meta_data.set.json`

## Request

- Base URL: `https://api.api2cart.com/v1.1`
- URL: `https://api.api2cart.com/v1.1/cart.meta_data.set.json`
- Auth: API key in header `x-api-key` and API key in header `x-store-key`

Set metadata for a specific entity. Entities supported may differ across platforms. To get the list of supported entities, pass an invalid value in the <code>entity</code> parameter. The response will contain the list of entities supported by the specific platform. Usually this is data created by third-party plugins.

## Query parameters

- `entity_id` string, required
- `key` string, required
- `value` string, required
- `namespace` string, required
- `entity` string
- `store_id` string
- `lang_id` string
- `idempotency_key` string

## Response `200`

successful operation

- object
  - `return_code` integer
  - `return_message` string
  - `result` object
    - `id` string

---

[API](https://skmtc.dev/api2cart/apis/api2cart-openapi.md) · [All operations](https://skmtc.dev/api2cart/apis/api2cart-openapi/llms.txt) · [OpenAPI document](https://skmtc.dev/api2cart/apis/api2cart-openapi/revisions/c34440741693?raw)
