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

# POST /eav-attributes

`POST /eav-attributes`

## Request

- Base URL: `https://instance_name.quable.com/api_1.php`
- URL: `https://instance_name.quable.com/api_1.php/eav-attributes`
- Auth: none declared

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.dev/quable/apis/quable-pim-dam-api-v4.md) - [All operations](https://skmtc.dev/quable/apis/quable-pim-dam-api-v4/llms.txt) - [OpenAPI document](https://skmtc.dev/quable/apis/quable-pim-dam-api-v4/revisions/3d11b340c0f2?raw)
