Dataset Labels
Dataset Labels
GET /api/v1/datasets/{dataset_id}/versions/{version_id}/labels
Get Labels
Parameters
| Name | In | Type | Required |
|---|---|---|---|
dataset_id | path | string | true |
version_id | path | string | true |
Response
Type: []Label
| Field | Type | Description |
|---|---|---|
id | uuid.UUID | |
created_at | time.Time | |
updated_at | time.Time | |
name | string | |
description | string | |
user_id | string | |
version_id | uuid.UUID | |
color | string | |
index | uint | |
shortcut | string |
Example
curl -X GET \
-H "Authorization: Bearer <token>" \
https://api.seeme.ai/api/v1/datasets/{dataset_id}/versions/{version_id}/labelsPOST /api/v1/datasets/{dataset_id}/versions/{version_id}/labels
Create Label
Parameters
| Name | In | Type | Required |
|---|---|---|---|
dataset_id | path | string | true |
version_id | path | string | true |
Request Body
Type: Label
| Field | Type | Description |
|---|---|---|
id | uuid.UUID | |
created_at | time.Time | |
updated_at | time.Time | |
name | string | |
description | string | |
user_id | string | |
version_id | uuid.UUID | |
color | string | |
index | uint | |
shortcut | string |
Response
Type: Label
| Field | Type | Description |
|---|---|---|
id | uuid.UUID | |
created_at | time.Time | |
updated_at | time.Time | |
name | string | |
description | string | |
user_id | string | |
version_id | uuid.UUID | |
color | string | |
index | uint | |
shortcut | string |
Example
curl -X POST \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{}' \
https://api.seeme.ai/api/v1/datasets/{dataset_id}/versions/{version_id}/labelsGET /api/v1/datasets/{dataset_id}/versions/{version_id}/labels/{id}
Get Label
Parameters
| Name | In | Type | Required |
|---|---|---|---|
dataset_id | path | string | true |
version_id | path | string | true |
id | path | string | true |
Response
Type: Label
| Field | Type | Description |
|---|---|---|
id | uuid.UUID | |
created_at | time.Time | |
updated_at | time.Time | |
name | string | |
description | string | |
user_id | string | |
version_id | uuid.UUID | |
color | string | |
index | uint | |
shortcut | string |
Example
curl -X GET \
-H "Authorization: Bearer <token>" \
https://api.seeme.ai/api/v1/datasets/{dataset_id}/versions/{version_id}/labels/{id}PUT /api/v1/datasets/{dataset_id}/versions/{version_id}/labels/{id}
Update Label
Parameters
| Name | In | Type | Required |
|---|---|---|---|
dataset_id | path | string | true |
version_id | path | string | true |
id | path | string | true |
Request Body
Type: Label
| Field | Type | Description |
|---|---|---|
id | uuid.UUID | |
created_at | time.Time | |
updated_at | time.Time | |
name | string | |
description | string | |
user_id | string | |
version_id | uuid.UUID | |
color | string | |
index | uint | |
shortcut | string |
Response
Type: Label
| Field | Type | Description |
|---|---|---|
id | uuid.UUID | |
created_at | time.Time | |
updated_at | time.Time | |
name | string | |
description | string | |
user_id | string | |
version_id | uuid.UUID | |
color | string | |
index | uint | |
shortcut | string |
Example
curl -X PUT \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{}' \
https://api.seeme.ai/api/v1/datasets/{dataset_id}/versions/{version_id}/labels/{id}DELETE /api/v1/datasets/{dataset_id}/versions/{version_id}/labels/{id}
Delete Label
Parameters
| Name | In | Type | Required |
|---|---|---|---|
dataset_id | path | string | true |
version_id | path | string | true |
id | path | string | true |
Example
curl -X DELETE \
-H "Authorization: Bearer <token>" \
https://api.seeme.ai/api/v1/datasets/{dataset_id}/versions/{version_id}/labels/{id}