---
title: "Create a new PredefinedValue in the datamodel"
method: POST
path: "/predefined-values"
tags: ["Data Model"]
---

# Create a new PredefinedValue in the datamodel

`POST /predefined-values`

Creates a PredefinedValue resource.

## Request body

- PredefinedValuePredefinedValueInputPredefinedValueInputCreate
  - `id` string
  - `attribute` object
    - `id` string
  - `name` LocaleTranslation — This structure does accept key & values where key has to be a locale code configured in your PIM & the value is the value for this field in this locale.
    - `fr_FR` string
    - `en_US` string
  - `description` LocaleTranslation — This structure does accept key & values where key has to be a locale code configured in your PIM & the value is the value for this field in this locale.
    - `fr_FR` string
    - `en_US` string

## Response `201`

PredefinedValue resource created

- PredefinedValuePredefinedValueOutputPredefinedValueOutput
  - `legacyId` integer
  - `attribute` AttributesEavAttributeOutputPredefinedValueOutput
    - `id` string — This is the unique identifier of the resource
  - `name` LocaleTranslation — This structure does accept key & values where key has to be a locale code configured in your PIM & the value is the value for this field in this locale.
    - `fr_FR` string
    - `en_US` string
  - `description` LocaleTranslation — This structure does accept key & values where key has to be a locale code configured in your PIM & the value is the value for this field in this locale.
    - `fr_FR` string
    - `en_US` string
  - `dateCreated` string, date-time, nullable — This is an ISO datetime
  - `dateModified` string, date-time, nullable — This is an ISO datetime
  - `id` string — This is the unique identifier of the resource

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