Projects

Validate project labeling config

POST

Determine whether the label configuration for a specific project is valid. For more information about setting up labeling configs, see Configure labeling interface and our Tags reference.

The project ID can be found in the URL when viewing the project in Label Studio, or you can retrieve all project IDs using List all projects.

Path parameters

idintegerRequired
A unique integer value identifying this project.

Request

This endpoint expects an object.
label_config
stringRequired
Label config in XML format. See more about it in documentation

Response

This endpoint returns an object
label_config
string
Label config in XML format. See more about it in documentation
POST
1curl -X POST http://localhost:8080/api/projects/1/validate/ \
2 -H "Authorization: Token <api_key>" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "label_config": "label_config"
6}'
200Successful
1{
2 "label_config": "label_config"
3}