---
title: "Import allowed values for attribute"
method: POST
path: "/v1/attributes/{attributeId}/allowed_list/import"
tags: ["Attributes"]
---

# Import allowed values for attribute

`POST /v1/attributes/{attributeId}/allowed_list/import`

## Request

- Base URL: `https://yourbaseurl.talon.one`
- URL: `https://yourbaseurl.talon.one/v1/attributes/{attributeId}/allowed_list/import`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `Authorization`
- TypeScript: <https://skmtc.dev/talon/apis/management-api/docs/v1/attributes/:attributeId/allowed_list/import/post.ts> (a function with typed inputs; its response is checked against the schema)

> [!note] Management API endpoints are **not** meant to be used in real-time integrations that directly serve your end users. Rate limit: 3 requests per second.

Upload a CSV file containing a list of [picklist
values](https://docs.talon.one/docs/product/account/dev-tools/managing-attributes#picklist-values)
for the specified attribute.

The file should be sent as multipart data.

The import **replaces** the previous list of allowed values for this
attribute, if any.

The CSV file **must** only contain the following column:

- `item`: The values in your allowed list, for example a list of SKUs.

An allowed list is limited to 500,000 items.

## Example

```text
item
CS-VG-04032021-UP-50D-10
CS-DV-04042021-UP-49D-12
CS-DG-02082021-UP-50G-07
```

## Path parameters

- `attributeId` integer, required

## Request body `multipart/form-data`

- object
  - `upFile` string, binary: The CSV file containing the data that is being imported.

## Response `200`

OK

- Import
  - `id` integer, required: The internal ID of this entity.
  - `created` string, date-time, required: The time this entity was created.
  - `accountId` integer, required: The ID of the account that owns this entity.
  - `userId` integer, required: The ID of the user associated with this entity.
  - `entity` string, required: The name of the entity that was imported.
  - `amount` integer, required: The number of values that were imported.

## Other responses

- `400`: Bad request
- `401`: Unauthorized - Invalid API key
- `404`: Not found

---

[API](https://skmtc.dev/talon/apis/management-api.md) - [All operations](https://skmtc.dev/talon/apis/management-api/llms.txt) - [OpenAPI document](https://skmtc.dev/talon/apis/management-api/revisions/7ef1b9504c3a?raw)
