---
title: "POST /eav-attributes"
method: POST
path: "/eav-attributes"
tags: ["Data Model"]
---

# POST /eav-attributes

`POST /eav-attributes`

Create a new Attribute.

## Request body

- AttributeCreate
  - `name` string, required
  - `control_type` string, required — Type of the field among those values => textfield_notranslate,textfield,textarea,htmleditor,integer,decimal,date,time,combo,multicombo,boolean,brut
  - `code` string, required — Unique identifier of the attribute
  - `eav_attribute_group_id` integer, required
  - `linked_class` string, required — Entity on which the attribute apply. Possible value => Article, DamMedia, Sku
  - `description` string
  - `help_text` string
  - `attribute_sets` integer[] — List of attribute set ids to which the eav attribute should be associate
  - `text_size` integer
  - `decimal_digit_after` integer
  - `document_type_metadata` boolean
  - `mandatory` boolean
  - `filterable` boolean
  - `internal_view` boolean
  - `internal_edit` boolean

## Response `200`

Attribute created

- object
  - `success` boolean, required
  - `data` object, required
    - `id` integer
    - `msg` string
    - `code` string

---

[API](https://skmtc.net/quable/apis/quable-pim-api-documentation-v5.md) · [All operations](https://skmtc.net/quable/apis/quable-pim-api-documentation-v5/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/quable/quable-pim-api-documentation-v5/versions/1641096abb34/schema)
