Select to view content in your preferred language

Using API to access private content

911
4
06-16-2023 11:00 AM
nparray
Emerging Contributor

Hello!

Here it says that ArcGIS Dev accounts can use API keys to access read-only private content: Authentication | ArcGIS Maps SDK for Unreal Engine | ArcGIS Developers

And so with my Dev account I followed this tutorial: https://developers.arcgis.com/documentation/mapping-apis-and-services/security/tutorials/create-and-...

When I try to Set content item scopes, I always get the following error. I'm testing right now with one of the tutorial provided files, and none of the files I import will successfully be added.

Would appreciate any and all help.

Thanks!

0 Kudos
4 Replies
MichaelBranscomb
Esri Frequent Contributor

It's possible that there is a specific property or setting of the item for which you're trying to enable API key access that is causing the issue here...

One way to help investigate this is to look at the item details. Your ArcGIS Developer account effectively provides you with your own ArcGIS Online organization and this can give you a more detailed view of the content you've created/published.

To access this organization, take your ArcGIS Developer account username (this should be displayed in the top right corner of the Developers site) and insert into this URL in place of "USERNAME" https://USERNAME.maps.arcgis.com/home/content.html.

Note although when setting API key scope the item tile shows "Feature Service" and when looking at the content in your org you'll see both a Feature Service and a Feature Layer (hosted) - I believe it's actually the item of type Feature Layer (hosted) that you are ultimately setting the API key scope for. I'll double check on that.

nparray
Emerging Contributor

Thank you so much for the reply! I don't think there was any issue with the item details, and I was able to add Feature Layer (hosted) without difficulty today after leaving it alone for a week, without changing the workflow. 

0 Kudos
John-Foster
Esri Contributor

@nparray I reviewed your workflow and I didn't see any errors on my account.

Can you verify that on the /dashboard page your account is an active Essentials account? Screenshot 2023-06-22 at 3.27.48 PM.png

Send me your subscription ID from the https://developers.arcgis.com/account/billing page and I'll try to see if we can determine if there is some issue in the database.

--jf
nparray
Emerging Contributor

Thank you so much for your reply! I tried doing my workflow today after letting it sit aside for a week and I was able to add imported layers without any errors occurring. I am on an Essentials account and I have sent you my subscription ID just in case this is a recurring issue. 

0 Kudos