From a97096a0f5948b0b4fb2da04f213d73e1fc5f5e0 Mon Sep 17 00:00:00 2001 From: Mano Toth Date: Thu, 9 Jan 2025 11:49:05 +0100 Subject: [PATCH] Add info about creating datasets with API --- reference/datasets.mdx | 8 +++++--- restapi/introduction.mdx | 2 +- snippets/minimal-prerequisites.mdx | 2 +- snippets/standard-prerequisites.mdx | 2 +- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/reference/datasets.mdx b/reference/datasets.mdx index aaf61d64..d019716a 100644 --- a/reference/datasets.mdx +++ b/reference/datasets.mdx @@ -70,11 +70,13 @@ In most cases, you can use `_time` and `_sysTime` interchangeably. The differenc ## Create dataset -To create a dataset, follow these steps: +To create a dataset using the Axiom app, follow these steps: 1. Click Settings icon **Settings > Datasets**. -2. Click **New dataset**. -3. Name the dataset, and then click **Add**. +1. Click **New dataset**. +1. Name the dataset, and then click **Add**. + +To create a dataset using the Axiom API, send a POST request to the [datasets endpoint](https://axiom.co/docs/restapi/endpoints/createDataset). Dataset names are 1 to 128 characters in length. They only contain ASCII alphanumeric characters and the hyphen (`-`) character. diff --git a/restapi/introduction.mdx b/restapi/introduction.mdx index 6ccaf34e..265798d7 100644 --- a/restapi/introduction.mdx +++ b/restapi/introduction.mdx @@ -44,7 +44,7 @@ Datasets are required to send, query, and retrieve requests. Datasets are a coll You will need to create or use an existing Dataset to get started with Axiom REST API. -See [Creating a Dataset](/reference/datasets) to get started. +See [Creating a Dataset](/reference/datasets#create-dataset) to get started. ## Authentication diff --git a/snippets/minimal-prerequisites.mdx b/snippets/minimal-prerequisites.mdx index 0f0fb659..3b6780c7 100644 --- a/snippets/minimal-prerequisites.mdx +++ b/snippets/minimal-prerequisites.mdx @@ -1,4 +1,4 @@ ## Prerequisites - [Create an Axiom account](https://app.axiom.co/register). -- [Create a dataset in Axiom](/reference/datasets) where you send your data. \ No newline at end of file +- [Create a dataset in Axiom](/reference/datasets#create-dataset) where you send your data. \ No newline at end of file diff --git a/snippets/standard-prerequisites.mdx b/snippets/standard-prerequisites.mdx index 8e39a142..d2312a40 100644 --- a/snippets/standard-prerequisites.mdx +++ b/snippets/standard-prerequisites.mdx @@ -1,5 +1,5 @@ ## Prerequisites - [Create an Axiom account](https://app.axiom.co/register). -- [Create a dataset in Axiom](/reference/datasets) where you send your data. +- [Create a dataset in Axiom](/reference/datasets#create-dataset) where you send your data. - [Create an API token in Axiom](/reference/tokens) with permissions to update the dataset you have created. \ No newline at end of file