POST
/
v1
/
datasets
/
Create a new dataset.
curl --request POST \
  --url https://api.roe-ai.com/v1/datasets/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "organization": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "creator": {
    "id": 123,
    "email": "jsmith@example.com",
    "first_name": "<string>",
    "last_name": "<string>",
    "is_staff": false,
    "is_active": true,
    "date_joined": "2023-11-07T05:31:56Z",
    "is_first_login": true,
    "is_email_verified": false
  },
  "created_at": "2023-11-07T05:31:56Z",
  "organization": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

name
string
required

Name of the dataset.

Minimum length: 1
organization
string<uuid>

ID of the organization to associate the dataset with.

Response

Successfully created dataset.

id
string<uuid>
required
name
string
required
Maximum length: 1024
creator
object
required
created_at
string<date-time>
required
organization
string<uuid>