Views

Create view

POST

Create a new Data Manager view for a specific project. A view is a tab in the Data Manager where you can set filters and customize what 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.

Request

This endpoint expects an object.
data
objectOptional
Custom view data
project
integerOptional
Project ID

Response

This endpoint returns an object
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
POST
1curl -X POST http://localhost:8080/api/dm/views/ \
2 -H "Authorization: Token <api_key>" \
3 -H "Content-Type: application/json" \
4 -d '{}'
200Successful
1{
2 "project": 1,
3 "id": 1,
4 "filter_group": {
5 "filters": [
6 {
7 "column": "column",
8 "type": "type",
9 "operator": "operator"
10 }
11 ],
12 "conjunction": "conjunction",
13 "id": 1
14 },
15 "data": {
16 "data": {
17 "key": "value"
18 }
19 },
20 "ordering": {
21 "ordering": {
22 "key": "value"
23 }
24 },
25 "selected_items": {
26 "selected_items": {
27 "key": "value"
28 }
29 },
30 "user": 1
31}