doc-exports/docs/modelarts/api-ref/CreateWorkforceTask.html
Lai, Weijian 2f0818cf3d ModelArts API 22.3.0 version-20240311
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Lai, Weijian <laiweijian4@huawei.com>
Co-committed-by: Lai, Weijian <laiweijian4@huawei.com>
2024-04-05 09:35:42 +00:00

377 lines
28 KiB
HTML

<a name="CreateWorkforceTask"></a><a name="CreateWorkforceTask"></a>
<h1 class="topictitle1">Creating a Team Labeling Task</h1>
<div id="body0000001296787880"><div class="section" id="CreateWorkforceTask__section193311513586"><h4 class="sectiontitle">Function</h4><p id="CreateWorkforceTask__p49401751115814">This API is used to create a team labeling task.</p>
</div>
<div class="section" id="CreateWorkforceTask__section1696717519580"><h4 class="sectiontitle">URI</h4><p id="CreateWorkforceTask__p17980175195812">POST /v2/{project_id}/datasets/{dataset_id}/workforce-tasks</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateWorkforceTask__table16998135165814" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="CreateWorkforceTask__row15986125175814"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="CreateWorkforceTask__p10225218586">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="CreateWorkforceTask__p41218526587">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="CreateWorkforceTask__p1920952165817">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="CreateWorkforceTask__p32845213580">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreateWorkforceTask__row398725117589"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="CreateWorkforceTask__p103611529589">dataset_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="CreateWorkforceTask__p24416526582">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="CreateWorkforceTask__p1511452205818">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="CreateWorkforceTask__p259752115810">Dataset ID.</p>
</td>
</tr>
<tr id="CreateWorkforceTask__row3987135195817"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="CreateWorkforceTask__p146715525589">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="CreateWorkforceTask__p1576352165819">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="CreateWorkforceTask__p48318523588">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="CreateWorkforceTask__p294135235815">Project ID. For details about how to obtain the project ID, see <a href="modelarts_03_0147.html">Obtaining a Project ID</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="CreateWorkforceTask__section710565213586"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateWorkforceTask__request_CreateWorkforceTaskReq" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request body parameters</caption><thead align="left"><tr id="CreateWorkforceTask__row3112165214582"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.1"><p id="CreateWorkforceTask__p012465211581">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.2"><p id="CreateWorkforceTask__p12132185217583">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.2.5.1.3"><p id="CreateWorkforceTask__p413845217585">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.2.5.1.4"><p id="CreateWorkforceTask__p11147175217586">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreateWorkforceTask__row5112105235816"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="CreateWorkforceTask__p13155185285814">auto_sync_dataset</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="CreateWorkforceTask__p1316205218588">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="CreateWorkforceTask__p117045213589">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="CreateWorkforceTask__p19179652165818">Whether to automatically synchronize the result of a team labeling task to the dataset. The options are as follows:</p>
<ul id="CreateWorkforceTask__ul5186352125814"><li id="CreateWorkforceTask__li1018812527584"><strong id="CreateWorkforceTask__b8195185214581">true</strong>: Automatically synchronize the result of a team labeling task to the dataset. (Default value)</li><li id="CreateWorkforceTask__li15198135214580"><strong id="CreateWorkforceTask__b152041052135814">false</strong>: Do not automatically synchronize the result of a team labeling task to the dataset.</li></ul>
</td>
</tr>
<tr id="CreateWorkforceTask__row5112105235815"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="CreateWorkforceTask__p1220915529586">data_sync_type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="CreateWorkforceTask__p8216152105815">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="CreateWorkforceTask__p8223155212582">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="CreateWorkforceTask__p182322052105814">Synchronization type. The options are as follows:</p>
<ul id="CreateWorkforceTask__ul3241195210585"><li id="CreateWorkforceTask__li17243135265819"><strong id="CreateWorkforceTask__b132501152195816">0</strong>: not to be synchronized</li><li id="CreateWorkforceTask__li225645285811"><strong id="CreateWorkforceTask__b182691852105812">1</strong>: data to be synchronized</li><li id="CreateWorkforceTask__li2272105213588"><strong id="CreateWorkforceTask__b1279165219584">2</strong>: label to be synchronized</li><li id="CreateWorkforceTask__li142811652165810"><strong id="CreateWorkforceTask__b14287135214584">3</strong>: data and label to be synchronized</li></ul>
</td>
</tr>
<tr id="CreateWorkforceTask__row3113165295812"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="CreateWorkforceTask__p192911252185810">repetition</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="CreateWorkforceTask__p22991252165814">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="CreateWorkforceTask__p2307185255813">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="CreateWorkforceTask__p8316175220585">Number of persons who label each sample in a team labeling task. The minimum value is <strong id="CreateWorkforceTask__b1631965205812">1</strong>.</p>
</td>
</tr>
<tr id="CreateWorkforceTask__row181131852105817"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="CreateWorkforceTask__p332418522585">sample_conditions</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="CreateWorkforceTask__p1833345217588">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="CreateWorkforceTask__p1234105275816">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="CreateWorkforceTask__p1735113522583">Search conditions of dataset samples. Samples that meet the conditions are filtered for team labeling.</p>
</td>
</tr>
<tr id="CreateWorkforceTask__row31131052135818"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="CreateWorkforceTask__p5358135235814">synchronize_auto_labeling_data</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="CreateWorkforceTask__p536618525580">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="CreateWorkforceTask__p1737410524588">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="CreateWorkforceTask__p17385652195814">Whether to synchronize the auto labeling result of a team labeling task. The options are as follows:</p>
<ul id="CreateWorkforceTask__ul1839285213585"><li id="CreateWorkforceTask__li2394752155813"><strong id="CreateWorkforceTask__b2400105211586">true</strong>: Synchronize the results to be confirmed to team members after auto labeling is complete.</li><li id="CreateWorkforceTask__li040335235818"><strong id="CreateWorkforceTask__b5409552205816">false</strong>: Do not synchronize the auto labeling results. (Default value)</li></ul>
</td>
</tr>
<tr id="CreateWorkforceTask__row31134524582"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.1 "><p id="CreateWorkforceTask__p134141752185813">workforces_config</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.2 "><p id="CreateWorkforceTask__p1142117526583">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.2.5.1.3 "><p id="CreateWorkforceTask__p343017527582"><a href="#CreateWorkforceTask__request_WorkforcesConfig">WorkforcesConfig</a> object</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.2.5.1.4 "><p id="CreateWorkforceTask__p11438145216581">Team labeling task information: Tasks can be assigned by the team administrator or a specified team.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="CreateWorkforceTask__request_WorkforcesConfig"></a><a name="request_WorkforcesConfig"></a><table cellpadding="4" cellspacing="0" summary="" id="CreateWorkforceTask__request_WorkforcesConfig" frame="border" border="1" rules="all"><caption><b>Table 3 </b>WorkforcesConfig</caption><thead align="left"><tr id="CreateWorkforceTask__row54511552105810"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="CreateWorkforceTask__p546555295816">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="CreateWorkforceTask__p147318525583">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="CreateWorkforceTask__p19482352165814">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="CreateWorkforceTask__p84901352185810">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreateWorkforceTask__row114513528583"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="CreateWorkforceTask__p549717529580">agency</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="CreateWorkforceTask__p5506175245816">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="CreateWorkforceTask__p55151052185811">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="CreateWorkforceTask__p145227527589">Team administrator.</p>
</td>
</tr>
<tr id="CreateWorkforceTask__row1145165213580"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="CreateWorkforceTask__p135301526589">workforces</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="CreateWorkforceTask__p1538165255813">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="CreateWorkforceTask__p13548145285810">Array of <a href="#CreateWorkforceTask__request_WorkforceConfig">WorkforceConfig</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="CreateWorkforceTask__p1556175215583">List of teams that execute labeling tasks.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="CreateWorkforceTask__request_WorkforceConfig"></a><a name="request_WorkforceConfig"></a><table cellpadding="4" cellspacing="0" summary="" id="CreateWorkforceTask__request_WorkforceConfig" frame="border" border="1" rules="all"><caption><b>Table 4 </b>WorkforceConfig</caption><thead align="left"><tr id="CreateWorkforceTask__row2562852155812"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.1"><p id="CreateWorkforceTask__p557355214587">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.2"><p id="CreateWorkforceTask__p75812527585">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.4.2.5.1.3"><p id="CreateWorkforceTask__p1559012528587">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.4.2.5.1.4"><p id="CreateWorkforceTask__p115971752125812">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreateWorkforceTask__row1156285213583"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="CreateWorkforceTask__p160545245817">workers</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="CreateWorkforceTask__p1961445218581">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="CreateWorkforceTask__p1362215225812">Array of <a href="#CreateWorkforceTask__request_Worker">Worker</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="CreateWorkforceTask__p36311752115815">List of labeling team members.</p>
</td>
</tr>
<tr id="CreateWorkforceTask__row19562195210582"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="CreateWorkforceTask__p12638652145820">workforce_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="CreateWorkforceTask__p11645175218589">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="CreateWorkforceTask__p11653135212588">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="CreateWorkforceTask__p10662552155812">ID of a labeling team.</p>
</td>
</tr>
<tr id="CreateWorkforceTask__row1556215285814"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.1 "><p id="CreateWorkforceTask__p46706527584">workforce_name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.2 "><p id="CreateWorkforceTask__p967815235816">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.4.2.5.1.3 "><p id="CreateWorkforceTask__p6684185255813">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.4.2.5.1.4 "><p id="CreateWorkforceTask__p13692155215582">Name of a labeling team. The value contains 0 to 1024 characters and does not support the following special characters: !&lt;&gt;=&amp;"'</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="CreateWorkforceTask__request_Worker"></a><a name="request_Worker"></a><table cellpadding="4" cellspacing="0" summary="" id="CreateWorkforceTask__request_Worker" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Worker</caption><thead align="left"><tr id="CreateWorkforceTask__row1669813526586"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.5.2.5.1.1"><p id="CreateWorkforceTask__p147102524581">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.5.2.5.1.2"><p id="CreateWorkforceTask__p3717145217588">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.5.2.5.1.3"><p id="CreateWorkforceTask__p15725752155818">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.5.2.5.1.4"><p id="CreateWorkforceTask__p10732652195815">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreateWorkforceTask__row1469865215811"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.1 "><p id="CreateWorkforceTask__p1973910528587">create_time</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.2 "><p id="CreateWorkforceTask__p774715225815">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.3 "><p id="CreateWorkforceTask__p157541352105815">Long</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.5.2.5.1.4 "><p id="CreateWorkforceTask__p9761952145820">Creation time.</p>
</td>
</tr>
<tr id="CreateWorkforceTask__row106983523587"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.1 "><p id="CreateWorkforceTask__p276711527581">description</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.2 "><p id="CreateWorkforceTask__p57751752105811">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.3 "><p id="CreateWorkforceTask__p378113529588">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.5.2.5.1.4 "><p id="CreateWorkforceTask__p178955215583">Labeling team member description. The value contains 0 to 256 characters and does not support the following special characters: ^!&lt;&gt;=&amp;"'</p>
</td>
</tr>
<tr id="CreateWorkforceTask__row166981852115819"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.1 "><p id="CreateWorkforceTask__p9796175216585">email</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.2 "><p id="CreateWorkforceTask__p4803155245820">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.3 "><p id="CreateWorkforceTask__p88111852125817">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.5.2.5.1.4 "><p id="CreateWorkforceTask__p2821155216582">Email address of a labeling team member.</p>
</td>
</tr>
<tr id="CreateWorkforceTask__row5698125255815"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.1 "><p id="CreateWorkforceTask__p17828155211583">role</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.2 "><p id="CreateWorkforceTask__p7836145216584">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.3 "><p id="CreateWorkforceTask__p8844652205810">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.5.2.5.1.4 "><p id="CreateWorkforceTask__p5852125215581">Role. The options are as follows:</p>
<ul id="CreateWorkforceTask__ul11860852115816"><li id="CreateWorkforceTask__li12862452155810"><strong id="CreateWorkforceTask__b178681352125814">0</strong>: labeling personnel</li><li id="CreateWorkforceTask__li587125255812"><strong id="CreateWorkforceTask__b16878352125815">1</strong>: reviewer</li><li id="CreateWorkforceTask__li1888125212580"><strong id="CreateWorkforceTask__b1488735215586">2</strong>: team administrator</li><li id="CreateWorkforceTask__li38917528586"><strong id="CreateWorkforceTask__b2897552185820">3</strong>: dataset owner</li></ul>
</td>
</tr>
<tr id="CreateWorkforceTask__row10698552185817"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.1 "><p id="CreateWorkforceTask__p4902752105818">status</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.2 "><p id="CreateWorkforceTask__p1490985214589">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.3 "><p id="CreateWorkforceTask__p6918155225818">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.5.2.5.1.4 "><p id="CreateWorkforceTask__p19926115235812">Current login status of a labeling team member. The options are as follows:</p>
<ul id="CreateWorkforceTask__ul69351752125816"><li id="CreateWorkforceTask__li11937165213588"><strong id="CreateWorkforceTask__b994385212588">0</strong>: The invitation email has not been sent.</li><li id="CreateWorkforceTask__li79461252105818"><strong id="CreateWorkforceTask__b69531052115818">1</strong>: The invitation email has been sent but the user has not logged in.</li><li id="CreateWorkforceTask__li1095675265811"><strong id="CreateWorkforceTask__b8963152145820">2</strong>: The user has logged in.</li><li id="CreateWorkforceTask__li7967652145817"><strong id="CreateWorkforceTask__b159731852105817">3</strong>: The labeling team member has been deleted.</li></ul>
</td>
</tr>
<tr id="CreateWorkforceTask__row6699135214585"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.1 "><p id="CreateWorkforceTask__p89772527589">update_time</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.2 "><p id="CreateWorkforceTask__p798405295818">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.3 "><p id="CreateWorkforceTask__p5993252185819">Long</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.5.2.5.1.4 "><p id="CreateWorkforceTask__p31145305810">Update time.</p>
</td>
</tr>
<tr id="CreateWorkforceTask__row13699165214588"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.1 "><p id="CreateWorkforceTask__p1811195314588">worker_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.2 "><p id="CreateWorkforceTask__p19181753185812">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.3 "><p id="CreateWorkforceTask__p19261853205814">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.5.2.5.1.4 "><p id="CreateWorkforceTask__p43415318581">ID of a labeling team member.</p>
</td>
</tr>
<tr id="CreateWorkforceTask__row18699552145812"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.1 "><p id="CreateWorkforceTask__p1340153115819">workforce_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.2 "><p id="CreateWorkforceTask__p1548115365811">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.5.2.5.1.3 "><p id="CreateWorkforceTask__p25465311582">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.5.2.5.1.4 "><p id="CreateWorkforceTask__p964145395810">ID of a labeling team.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="CreateWorkforceTask__section571185355815"><h4 class="sectiontitle">Response Parameters</h4><p id="CreateWorkforceTask__p128015325817"><strong id="CreateWorkforceTask__b483115320586">Status code: 200</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateWorkforceTask__response_CreateWorkforceTaskResp" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Response body parameters</caption><thead align="left"><tr id="CreateWorkforceTask__row1885175318585"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.1"><p id="CreateWorkforceTask__p4956533585">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.2"><p id="CreateWorkforceTask__p61044539582">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.3.2.4.1.3"><p id="CreateWorkforceTask__p17113115365813">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreateWorkforceTask__row885185312585"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="CreateWorkforceTask__p1212085320585">task_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="CreateWorkforceTask__p4128155355812">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="CreateWorkforceTask__p313645355818">ID of a team labeling task.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="CreateWorkforceTask__section014417531586"><h4 class="sectiontitle">Example Requests</h4><p id="CreateWorkforceTask__p171527530583">Creating a Team Labeling Task</p>
<pre class="screen" id="CreateWorkforceTask__screen19187185318586">{
"workspace_id" : "0",
"task_name" : "task-eb17",
"task_type" : 0,
"description" : "",
"version_id" : "",
"labels" : [ {
"name" : "Cat",
"type" : 0,
"property" : {
"@modelarts:color" : "#3399ff"
}
}, {
"name" : "Rabbit",
"type" : 0,
"property" : {
"@modelarts:color" : "#3399ff"
}
} ],
"synchronize_data" : false,
"synchronize_auto_labeling_data" : false,
"workforces_config" : {
"workforces" : [ {
"workforce_id" : "feSUo5NUIUnQAQNNTiS",
"workers" : [ {
"email" : "xxx@xxx.com"
}, {
"email" : "xxx@xxx.com"
}, {
"email" : "xxx@xxx.com"
} ]
} ]
},
"auto_sync_dataset" : false
}</pre>
</div>
<div class="section" id="CreateWorkforceTask__section1242875317585"><h4 class="sectiontitle">Example Responses</h4><p id="CreateWorkforceTask__p17436953115816"><strong id="CreateWorkforceTask__b12439853105820">Status code: 200</strong></p>
<p id="CreateWorkforceTask__p19446185305818">OK</p>
<pre class="screen" id="CreateWorkforceTask__screen3455175385819">{
"task_id" : "6phXEto29utpaMwbQkg"
}</pre>
</div>
<div class="section" id="CreateWorkforceTask__section947817534581"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="CreateWorkforceTask__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="CreateWorkforceTask__row14861553195811"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="CreateWorkforceTask__p1349355395816">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="CreateWorkforceTask__p165002537582">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="CreateWorkforceTask__row20486165325815"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="CreateWorkforceTask__p250745316581">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="CreateWorkforceTask__p1751435395820">OK</p>
</td>
</tr>
<tr id="CreateWorkforceTask__row1048613535587"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="CreateWorkforceTask__p15521353195818">401</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="CreateWorkforceTask__p452816535588">Unauthorized</p>
</td>
</tr>
<tr id="CreateWorkforceTask__row1848610539587"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="CreateWorkforceTask__p12028125910">403</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="CreateWorkforceTask__p720621185920">Forbidden</p>
</td>
</tr>
<tr id="CreateWorkforceTask__row8486155317580"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="CreateWorkforceTask__p6208616593">404</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="CreateWorkforceTask__p721261125916">Not Found</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="CreateWorkforceTask__section521510117595"><h4 class="sectiontitle">Error Codes</h4><p id="CreateWorkforceTask__p9218121195920">See <a href="modelarts_03_0095.html">Error Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="label_task_management.html">Labeling Task Management</a></div>
</div>
</div>