批量同步职位
<p><strong>简要描述:</strong> </p>
<ul>
<li>批量同步职位</li>
</ul>
<p><strong>请求URL:</strong> </p>
<ul>
<li><code>{Host}/v2/position/upsertPositions</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST (application/json) </li>
</ul>
<p><strong>参数:</strong> </p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">positions</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string[]</td>
<td>职位集合</td>
</tr>
</tbody>
</table>
<p><strong>提交数据示例</strong></p>
<pre><code>{
"positions": [
"string"
],
"appKey": "string",
"sign": "string",
"timestamp": 0,
"projectId": "string"
}</code></pre>
<p><strong>返回数据说明</strong></p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">code</td>
<td style="text-align: left;">int</td>
<td>错误码</td>
</tr>
<tr>
<td style="text-align: left;">message</td>
<td style="text-align: left;">string</td>
<td>错误描述,成功为空</td>
</tr>
<tr>
<td style="text-align: left;">data</td>
<td style="text-align: left;">PositionRelation[]</td>
<td>职位关系集合</td>
</tr>
</tbody>
</table>
<p>PositionRelation 实体:</p>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">position</td>
<td style="text-align: left;">string</td>
<td>第三方职位</td>
</tr>
<tr>
<td style="text-align: left;">projectId</td>
<td style="text-align: left;">string</td>
<td>明道云组织编号</td>
</tr>
<tr>
<td style="text-align: left;">jobId</td>
<td style="text-align: left;">string</td>
<td>明道云职位Id</td>
</tr>
</tbody>
</table>
<p><strong>成功</strong></p>
<pre><code>{
"data": [
{
"position": "string",
"projectId": "string",
"jobId": "string"
}
],
"code": 1,
"message": ""
}</code></pre>
<p><strong>失败</strong></p>
<pre><code>{
"code": 10001,
"message": "错误描述"
}</code></pre>