This API is used to delete labeling team members in batches.
POST /v2/{project_id}/workforces/{workforce_id}/workers/batch-delete
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
project_id |
Yes |
String |
Project ID. For details about how to obtain the project ID, see Obtaining a Project ID. |
workforce_id |
Yes |
String |
ID of a labeling team. |
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
workers |
No |
Array of strings |
Team member ID list. |
Status code: 200
Parameter |
Type |
Description |
|---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error message. |
results |
Array of BatchResponse objects |
Result of deleting team members in batches. |
success |
Boolean |
Check whether the operation is successful. The options are as follows: - true: The operation is successful. - false: The operation is failed. |
Deleting Labeling Team Members in Batches
{
"workers" : [ "89d4ae38431b8905449821605abdc3a9", "a2abd3f27b4e92c593c15282f8b6bd29" ]
}
Status code: 200
OK
{
"success" : true,
"results" : [ {
"success" : true
}, {
"success" : true
} ]
}
Status Code |
Description |
|---|---|
200 |
OK |
401 |
Unauthorized |
403 |
Forbidden |
404 |
Not Found |
See Error Codes.