Manage datasets via API
Learn how to manage Axiom datasets via API.
This page explains how to manage datasets programmatically via the API.
TODO
Prerequisites
- Create an Axiom account.
- Create a dataset in Axiom where you send your data.
- Create an API token in Axiom with permissions to create, read, update, and delete datasets.
- In the code samples below, replace
API_TOKEN
with the Axiom API token you have generated. For added security, store the API token in an environment variable.
Create datasets
To create a dataset, send a POST request to the datasets
endpoint. In the body of the request, specify the name and the description of the dataset. For example:
The example response contains the dataset ID that you can later use to access the dataset programmatically.
For more information, see the API reference.
Get information about datasets
Get information about all datasets
To get information about all the datasets in your Axiom organization, send a GET request to the datasets
endpoint. For example:
The example response is a list of dataset objects. Each object contains a unique dataset ID that you can later use to access the dataset programmatically.
For more information, see the API reference.
Get information about specific dataset
To get information about a specific dataset, send a GET request to the datasets/ID
endpoint where ID
is the unique ID of the dataset. For example:
Example response:
For more information, see the API reference.
Update datasets
To update a dataset, send a PUT request to the datasets/ID
endpoint where ID
is the unique ID of the dataset. In the body of the request, specify the properties you want to update. For example:
Example response:
For more information, see the API reference.
Delete datasets
To delete a dataset, send a DELETE request to the datasets/ID
endpoint where ID
is the unique ID of the dataset. For example:
For more information, see the API reference.