Error scheduling data extraction on Autodesk Platform Services
I’m getting the following error body when trying to schedule a data extraction.
{
"detail": "This clientId is not authorized to perform the operation.",
"status": 403,
"type": "error",
"title": "Forbidden",
"id": 983632626,
"errors": [
{
"detail": "This clientId is not authorized to perform the operation.",
"title": "Forbidden",
"type": "error"
}
]
}
My request is the following:
curl --location 'https://developer.api.autodesk.com/data-connector/v1/accounts//requests' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data '{
"description": "My Company Data Extract",
"isActive": true,
"scheduleInterval": "ONE_TIME",
"reoccuringInterval": null,
"effectiveFrom": "2020-11-06T19:09:40.106Z",
"effectiveTo": "2020-11-12T19:09:40.106Z",
"serviceGroups": [
"admin",
"issues"
],
"callbackUrl": "https://api.mycompany.com/autodesk/jobinfo",
"sendEmail": true,
"projectId": null,
"projectIdList": "[ \"\" ]",
"startDate": "2023-06-06T00:00:00.000Z",
"endDate": "2023-06-06T12:00:00.000Z",
"dateRange": "LAST_MONTH",
"projectStatus": "active"
}'
The scopes I used for creating the authentication token are: account:read data:create data:write data:read and I’m using a three legged authentication.
I also created a client_id and client_secret on APS which was then added to ACC.
Thanks
Read more here: Source link
