Create / Update lookup table

Post / Put lookup table

This endpoint supports two methods for uploading CSV files:

  1. Binary stream upload– Recommended when your application can send the file contents directly as a binary stream.
  2. Form-data upload – Recommended when users upload files through a web form or user interface.
ℹ️

Note

Binary stream upload is the most common approach when integrating with APIs.

The CSV file must be provided in the data-binary parameter. If the file cannot be found, an empty lookup table entry will be created in Anodot.

Request Arguments (Binary Stream Upload)

ArgumentTypeDescription
filenamestringName of the CSV file to be uploaded.
data-binaryfile referenceBinary contents of the CSV file. In the cURL example, the file is referenced using the @ prefix followed by the file path.

Request Arguments - Form data

ArgumentTypeDescription
File Fieldfile referenceCSV file to upload. In cURL, specify the file path using the @ prefix (for example: @lookup.csv).

ℹ️

Remember:

The POST and PUT requests use the same request format.

  • Use POST to create a new lookup table. The file name must be unique within the account.
  • Use PUT to update an existing lookup table. The file name must match an existing table in the account.
Response
200
Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here!