---
title: "Create a new AttributeSet in the datamodel"
method: POST
path: "/attribute-sets"
tags: ["Data Model"]
---

# Create a new AttributeSet in the datamodel

`POST /attribute-sets`

Creates a AttributeSet resource.

## Request body

- AttributeSetCreate
  - `attributes` object — This is an array of attribute items.
    - `id` string — This is the unique identifier of the attribute that the resource should be apply to
    - `position` integer — Position used to sort attributes.
  - `id` string, required — This is the unique identifier of the resource
  - `documentTypeCode` string, required — This is the unique identifier of the document type that the resource should be apply to
  - `description` LanguageTranslation — This structure does accept key & values where key has to be a language code configured in your PIM & the value is the value for this field in this language.
    - `fr-FR` string
    - `en-US` string
  - `name` LanguageTranslation, required — This structure does accept key & values where key has to be a language code configured in your PIM & the value is the value for this field in this language.
    - `fr-FR` string
    - `en-US` string

## Response `201`

AttributeSet resource created

- AttributeSetAttributeSetOutputRead
  - `attributes` object — This is an array of attribute items.
    - `id` string — This is the unique identifier of the attribute that the resource should be apply to
    - `position` integer — Position used to sort attributes.
  - `legacyId` integer
  - `id` string, required — This is the unique identifier of the resource
  - `documentTypeCode` string, required — This is the unique identifier of the document type that the resource should be apply to
  - `description` LanguageTranslation — This structure does accept key & values where key has to be a language code configured in your PIM & the value is the value for this field in this language.
    - `fr-FR` string
    - `en-US` string
  - `name` LanguageTranslation, required — This structure does accept key & values where key has to be a language code configured in your PIM & the value is the value for this field in this language.
    - `fr-FR` string
    - `en-US` string
  - `dateModified` string, date-time, nullable — This is an ISO datetime
  - `dateCreated` string, date-time, nullable — This is an ISO datetime

## Other responses

- `400` — Invalid input
- `422` — Unprocessable entity

---

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