Updating a Team Labeling Task
Function
This API is used to update a team labeling task.
Debugging
You can debug this API through automatic authentication in or use the SDK sample code generated by API Explorer.
URI
PUT /v2/{project_id}/datasets/{dataset_id}/workforce-tasks/{workforce_task_id}
| 
        Parameter  | 
      
        Mandatory  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|---|
| 
        dataset_id  | 
      
        Yes  | 
      
        String  | 
      
        Dataset ID.  | 
     
| 
        project_id  | 
      
        Yes  | 
      
        String  | 
      
        Project ID. For details about how to obtain a project ID, see Obtaining a Project ID and Name.  | 
     
| 
        workforce_task_id  | 
      
        Yes  | 
      
        String  | 
      
        ID of a team labeling task.  | 
     
Request Parameters
| 
        Parameter  | 
      
        Mandatory  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|---|
| 
        dataset_id  | 
      
        No  | 
      
        String  | 
      
        Dataset ID.  | 
     
| 
        description  | 
      
        No  | 
      
        String  | 
      
        Team labeling task description. The value contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'  | 
     
| 
        task_id  | 
      
        No  | 
      
        String  | 
      
        ID of a team labeling task.  | 
     
| 
        task_name  | 
      
        No  | 
      
        String  | 
      
        Team labeling task name. The value contains 1 to 64 characters and only letters, digits, underscores (_), and hyphens (-) are allowed.  | 
     
| 
        workforces_config  | 
      
        No  | 
      
        WorkforcesConfig object  | 
      
        Team labeling task information: Tasks can be assigned by the team administrator or a specified team.  | 
     
| 
        Parameter  | 
      
        Mandatory  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|---|
| 
        agency  | 
      
        No  | 
      
        String  | 
      
        Administrator  | 
     
| 
        workforces  | 
      
        No  | 
      
        Array of WorkforceConfig objects  | 
      
        List of teams that execute labeling tasks.  | 
     
| 
        Parameter  | 
      
        Mandatory  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|---|
| 
        workers  | 
      
        No  | 
      
        Array of Worker objects  | 
      
        List of labeling team members.  | 
     
| 
        workforce_id  | 
      
        No  | 
      
        String  | 
      
        ID of a labeling team.  | 
     
| 
        workforce_name  | 
      
        No  | 
      
        String  | 
      
        Name of a labeling team. The value contains 0 to 1024 characters and does not support the following special characters: !<>=&"'  | 
     
| 
        Parameter  | 
      
        Mandatory  | 
      
        Type  | 
      
        Description  | 
     
|---|---|---|---|
| 
        create_time  | 
      
        No  | 
      
        Long  | 
      
        Creation time.  | 
     
| 
        description  | 
      
        No  | 
      
        String  | 
      
        Labeling team member description. The value contains 0 to 256 characters and does not support the following special characters: ^!<>=&"'  | 
     
| 
        | 
      
        No  | 
      
        String  | 
      
        Email address of a labeling team member.  | 
     
| 
        role  | 
      
        No  | 
      
        Integer  | 
      
        Role. Options: 
  | 
     
| 
        status  | 
      
        No  | 
      
        Integer  | 
      
        Current login status of a labeling team member. Options: 
  | 
     
| 
        update_time  | 
      
        No  | 
      
        Long  | 
      
        Update time.  | 
     
| 
        worker_id  | 
      
        No  | 
      
        String  | 
      
        ID of a labeling team member.  | 
     
| 
        workforce_id  | 
      
        No  | 
      
        String  | 
      
        ID of a labeling team.  | 
     
Response Parameters
None
Example Requests
Updating a Team Labeling Task
{
  "workforces_config" : {
    "workforces" : [ {
      "workforce_id" : "3frbQ90hb8ZKksAhyR8",
      "workers" : [ {
        "email" : "xxx@xxx.com"
      }, {
        "email" : "xxx@xxx.com"
      } ]
    } ]
  }
}
 Example Responses
Status code: 200
OK
{ }
 Status Codes
| 
        Status Code  | 
      
        Description  | 
     
|---|---|
| 
        200  | 
      
        OK  | 
     
| 
        401  | 
      
        Unauthorized  | 
     
| 
        403  | 
      
        Forbidden  | 
     
| 
        404  | 
      
        Not Found  | 
     
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.