根据成功因素的ODATA API文档,我们可以更新作业申请状态。但是当尝试使用/ upsert API时,状态栏无法更新。enter image description here
答案 0 :(得分:0)
端点(取决于您的数据中心):
https://api12preview.sapsf.eu/odata/v2/upsert?$format=json
类型/标题:
Type: POST
Header:
Content-Type = application/json
Authorization = your Type of Authorization Token (Basic/OAuth)
正文(键入application / json):
{ "__metadata": { "uri": "JobApplication(<YOUR_APPLICATION_ID>)" },
"appStatusSetItemId" : "<targetStatus>"
}
示例(从默认状态(86)到预检状态(90))
{ "__metadata": { "uri": "JobApplication(141)" },
"appStatusSetItemId" : "90"
}
所需权限:
Recruiting Permissions -> OData Application Create (sometime necessary for update!)
Recruiting Permissions -> OData Application Update
其他信息:
1) in the body request you are posting (see above) you also need to provide all
required fields defined in your job application, otherwise update won't work
2) You can see your instance's appStatusSetItemId in "Edit Applicant Status Configuration".
It is the internal status from the pipeline of your applications.