Attributes
Import allowed values for attribute
[!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 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
item
CS-VG-04032021-UP-50D-10
CS-DV-04042021-UP-49D-12
CS-DG-02082021-UP-50G-07
post/v1/attributes/{attributeId}/allowed_list/import
Request
- Base URLhttps://yourbaseurl.talon.one
- Auth
- API key in header Authorization
- or API key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
attributeIdinteger required
The ID of the attribute. You can find the ID in the Campaign Manager's URL when you display the details of an attribute in Account > Tools > Attributes.
Request body multipart/form-data
Response
OK
Example response
{
"id": 6,
"created": "2020-06-10T09:05:27.993483Z",
"accountId": 3886,
"userId": 388,
"entity": "AttributeAllowedList",
"amount": 10
}Changes
No recorded changes to this operation across all 2 revisions of this API.