For partners that build or integrate commercially available applications and service solutions with the Oracle Cloud Platform
For partners that provide implementation or managed services around Oracle Cloud Applications
Hi,
I have enabled the APIs in Configuration - Application. But I got the below error. Do I need to enable any other services?
Hi Mohan,
From the message I think the issue is related to the given right to the user and the setting below "API access". For example you're trying to update something with Core API, and this user has only RO there.
Regards,
Zsolt
Hi Zsolt,
Where we need to provide the access? By the way, I tried to use the Resource API (/rest/ofscCore/v1/resources).
This URL isn't belongs to Resource API. For that, you need to add "Core API" / Resource RW.
Zsolt
Hi Zsolt,
It is mentioned like below only 19C document. You have mentioned something like we need to provide access. Please provide those details.
/rest/ofscCore/v1/resources
https://docs.oracle.com/en/cloud/saas/field-service/19c/cxfsc/op-rest-ofsccore-v1-resources-get.html
Thanks,
Mohan
Hi Mohan,
Yes, I got it, and already gave the right guidance. You want to use a call which is belongs to Core API, and this is the way how that access can be enabled for an application: add Core API / Resource RW right.
https://docs.oracle.com/en/cloud/saas/field-service/19c/cxfsc/OFSC_Authenticate_and_Authorize.html -> "To authorize access to REST web resources"
Regards,
Zsolt
Hi Zsolt,
Thanks for your response. If you noticed my first screenshot, we have enabled the Client Id / Secret authentication already. We get the client Id & client secret from the Application UI and try to execute the below one. And we can able to execute the get token api.
curl -s -u '<CLIENT-ID>@<INSTANCE-NAME>:<CLIENT-SECRET>' --url 'https://api.test.etadirect.com/rest/ofscCore/v1/resources'
Thanks,
Mohan
Hi Zsolt,
Thanks for your response. I also suspect, I am missing something here.
1. Create new application - restapi
2. Enabled - Authenticate using Client ID/Client Secret
3. Add New - API access for Activity Management API
4. Add 'Get Activities' in Available Methods
5. Select all available Activity Fields and provided RW access for all fields
6. I havent do any additional restrictions
7. Form the cURL like below. Here I am directly passing client id & secret, we haven't use any user credentials here. I think here I am missed something.
For the authentication, I propose to follow Oracle guidance about OAUTH 2.0 & token way:
https://docs.oracle.com/en/cloud/saas/field-service/19c/cxfsc/OFSC_Configuring_OAuth_2_0_Authentication.html
This "Activity Management API" is not the one which you need to set, because you like to use Core API / Activity RO. Please change the configuration for this user to see API access, Core API, Activity: Read-only in the screen top right part. Points 3, 4 and 5 aren't okay.
Get activities example is https://docs.oracle.com/en/cloud/saas/field-service/19c/cxfsc/op-rest-ofsccore-v1-activities-get.html for Core API.
I plan this is as my last message here, because it's takes much more time than I can spare and it's almost impossible to fully teach someone with this way. Read the documentation through carefully, try the examples and read this post again.
Zsolt
For the authentication, I propose to follow Oracle guidance about OAUTH 2.0 & token way:
https://docs.oracle.com/en/cloud/saas/field-service/19c/cxfsc/OFSC_Configuring_OAuth_2_0_Authentication.html
This "Activity Management API" is not the one which you need to set, because you like to use Core API / Activity RO. Please change the configuration for this user to see API access, Core API, Activity: Read-only in the screen top right part. Points 3, 4 and 5 aren't okay.
Get activities example is https://docs.oracle.com/en/cloud/saas/field-service/19c/cxfsc/op-rest-ofsccore-v1-activities-get.html for Core API.
I plan this is as my last message here, because it's takes much more time than I can spare and it's almost impossible to fully teach someone with this way. Read the documentation through carefully, try the examples and read this post again.
Zsolt