我试图在ADP Worker API中进行更新,但我一直收到“403:Invalid Scope”错误。我使用this reference guide,特别是人员>个人信息>个人配置文件>联系人>添加家庭电话部分。
我可以通过GET请求与API交互,但我无法POST。我使用的URL:
https://api.adp.com/events/hr/v1/worker.personal-communication.landline.add的
Body Payload:
{
"events": [
{
"data": {
"eventContext": {
"worker": {
"associateOID": "exampleID123123"
}
},
"transform": {
"worker": {
"person": {
"communication": {
"landline": {
"areaDialing": "240",
"dialNumber": "4567896"
}
}
}
}
}
},
"links": []
}
]
}
字符串
回复:
{
"response": {
"responseCode": 403,
"methodCode": "POST",
"resourceUri": {
"href": "/events/hr/v1/worker.personal-communication.landline.add"
},
"serverRequestDateTime": "2021-09-09T18:26:44.607Z",
"applicationCode": {
"code": 403,
"typeCode": "error",
"message": "Invalid Scope"
},
"client_ip_adddress": "xxx.xx.xxx.xxxx",
"adp-correlationID": "xxxxxxxxx-xxxxxxxxxxx-xxxxxxxxxx"
}
}
型
任何建议?提前感谢!
1条答案
按热度按时间s5a0g9ez1#
经过一番搜索,我相信我最初问题的答案是,我们需要联系我们的ADP代表,以增加命中事件API的能力。我们只能访问工人API,这允许以前成功的调用。
的数据