Views

List views

GET

List all views for a specific project. A view is a tab in the Data Manager where you can set filters and customize which tasks and information appears.

You will need to provide the project ID. You can find this in the URL when viewing the project in Label Studio, or you can use List all projects.

Query parameters

projectintegerOptional
Project ID

Response

This endpoint returns a list of objects
project
integer
Project ID
id
integerOptional
filter_group
objectOptional
data
map from strings to anyOptional
Custom view data
ordering
map from strings to anyOptional
Ordering parameters
selected_items
map from strings to anyOptional
Selected items
user
integerOptional
User who made this view
GET
1curl http://localhost:8080/api/dm/views/ \
2 -H "Authorization: Token <api_key>"
200Retrieved
1[
2 {
3 "project": 1,
4 "id": 1,
5 "filter_group": {
6 "filters": [
7 {
8 "column": "column",
9 "type": "type",
10 "operator": "operator"
11 }
12 ],
13 "conjunction": "conjunction",
14 "id": 1
15 },
16 "data": {
17 "data": {
18 "key": "value"
19 }
20 },
21 "ordering": {
22 "ordering": {
23 "key": "value"
24 }
25 },
26 "selected_items": {
27 "selected_items": {
28 "key": "value"
29 }
30 },
31 "user": 1
32 }
33]