OAUTH_SCOPE_MISMATCH when calling /bulk/v2/read API on a Linking Module
I'm trying to start a Bulk Read Job with the following API call:
POST /crm/bulk/v2/read HTTP/1.1
Authorization: Zoho-oauthtoken xxxxxxx
Content-Type: application/json
{
"query": {
"module": "Contacts_X_Accounts"
}
}
And I get this response:
{
"code": "OAUTH_SCOPE_MISMATCH",
"details": {},
"message": "invalid oauth scope to access this URL",
"status": "error"
}
The OAuth token was generated with ZohoCRM.bulk.read, ZohoCRM.modules.ALL and ZohoCRM.settings.ALL scopes and the "Contacts_X_Accounts" module is a Linking Module which is visible for everybody in the CRM.
I can start Bulk Read Jobs for other modules and use APIs like /crm/v2/settings/fields?module=Contacts_X_Accounts or /crm/v2/Contacts_X_Accounts/3402649000015698989 with the same token without a problem .
Do you have any idea what am I doing wrong?