Why am I receiving a 403 Forbidden error on my Rest API request?
Environment:
Oracle Field Service (OFS)
Issue:
I am using a new Application to get my Daily Extract files but the request is failing with 403 Forbidden error.
{
"type": "http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.4",
"title": "Forbidden",
"status": "403",
"detail": "Authentication was provided, but the authenticated user is not permitted to perform the requested operation."
}
Resolution:
The error indicates that you don't have authorization to perform the request. Follow the steps below to grant permission.
1. In OFS, navigate to Configuration > Applications and select the application you are using for this request.
2. Under API access, locate the API (in this example Core API). Click to edit and select 'Available entities'.
3. Locate the entity related to the request and update the permission from 'Hidden' to 'Read-Only' (for this Daily Extract example), or Read-write (if applicable to the request you are sending).
4. Click Submit. Click Save.