成本中心新增
POST
/compensationv2/v1/CostCenter/BatchAdd
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://openapi.italent.cn/compensationv2/v1/CostCenter/BatchAdd' \
--header 'Content-Type: application/json' \
--data-raw '//1.正确数据示例
[
{
"code": "cheng31",
"name": "成本111",
"level": "成本中心",
"pOrgCode": "cheng11",
"personInCharge": 660064566,
"customMetaFields": {
"Status": 0,
"EffectiveDate": "2021-09-06T18:16:13.0979334+08:00",
"asdf": "asdf"
}
},
{
"code": "cheng41",
"name": "成本1111",
"level": "成本中心",
"pOrgCode": "cheng31",
"personInCharge": 660064566,
"customMetaFields": null
},
{
"code": "chengABC",
"name": "成本ABC",
"level": "成本中心",
"pOrgCode": "cheng41",
"personInCharge": 660064566,
"customMetaFields": null
},
{
"code": "chenABCD",
"name": "chenABCD",
"level": "成本中心",
"pOrgCode": "chengABC",
"personInCharge": 660064566,
"customMetaFields": null
}
]
//2.部分成功示例
[
{
"code": "cheng31",
"name": "成本11",
"level": "成本中心",
"pOrgCode": "cheng1",
"personInCharge": 660064566,
"businessLevel": 8,
"customMetaFields": {
"EffectiveDate": "2021-09-06T18:16:13.0979334+08:00"
}
},
{
"code": "cheng41",
"name": "成本1111",
"level": "成本中心123",
"pOrgCode": "cheng11",
"personInCharge": 660064566,
"businessLevel": 0,
"customMetaFields": null
},
{
"code": "mumu",
"name": "成本ABC",
"level": "成本中心",
"pOrgCode": "cheng41",
"personInCharge": 660064566,
"businessLevel": 0,
"customMetaFields": null
},
{
"code": "chenABCD",
"name": "",
"level": "成本中心",
"pOrgCode": "",
"personInCharge": 660064566,
"businessLevel": 0,
"customMetaFields": null
}
]'
响应示例响应示例
{
"code": 0,
"message": "string",
"data": [
{
"costCenterModel": {
"code": "string",
"name": "string",
"level": "string",
"pOrgCode": "string",
"personInCharge": 0,
"businessLevel": 0,
"customMetaFields": {
"property1": {},
"property2": {}
}
},
"message": "string"
}
],
"isSuccess": true
}
请求参数
Body 参数application/json
返回响应
修改于 2021-10-13 10:54:23