我正在尝试在 ADP Worker API 中进行更新,但我不断收到“403:无效范围”的错误消息。我正在使用此参考指南,特别是人员 > 个人信息 > 个人资料 > 联系人 > 添加家庭电话部分。
我可以通过 GET 请求与 API 交互,尽管我无法发布。我正在使用网址:
https://api.adp.com/events/hr/v1/worker.personal-communication.landline.add
身体有效载荷:
{
"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"
}
}
有什么建议么?先感谢您!