Select to view content in your preferred language

No longer have REST access to non-public feature layers

520
4
06-27-2022 03:13 PM
RhettZufelt
MVP Notable Contributor

Before the "update", one could go to the item details page of a hosted feature layer, and either click on the View or copy the URL that takes you to the rest services for that item.

 

Now, if you click the view, rather than taking you to sampleserver#..., it takes you to your organization page with the item id, but can't navigate anywhere else.

 

RhettZufelt_0-1656367758138.png

If you copy the url and paste in a browser, it will at least take you to the REST server, BUT, will not pass any token data anymore, and will only show feature layers that are shared to the entire public.

How do I get to the REST service endpoints for services that are not share publicly, but rather to owner and/or organization?

 

Thanks,

R_

 

 

0 Kudos
4 Replies
SFM_TravisBott
Frequent Contributor

Piling on here as this was an important change. 

I am attempting to add a field to a feature service that has a view. The previous workflow was to add the field, then go to the REST endpoint for the view's feature layer, change visibility from 'false' to 'true,' reset the edit date, and apply the update. This would allow the added fields to cascade into the view. But now there are not admin rights on the view layer's endpoints and the workflow if failing to produce the same results. 

Edit - won't get rid of this comment, but discovered that it's still possible there's just a different order of operations. 

0 Kudos
RhettZufelt
MVP Notable Contributor

As inconvenient and confusing as it is, apparently, this is by design.

Seems for hosted feature services, you can click on the view link, and will take you to the rest for just that service.  Then, there is an admin link you can click on that page to get to the admin features. 

For hosted tile layers, you need to copy the URL (not click on the link) and paste/go in browser window.  Then, you can type "admin" in the path between /rest/services (/rest/admin/services) to get to the admin page for tile layers.

Does not appear to be a way to browse the service directory anymore, except for services shared to the public.

 

R_

 

 

0 Kudos
SFM_TravisBott
Frequent Contributor

So weird. So for tile layers it's the 'old way' where you'd just modify the URL to access the admin side, but for feature layers they've changed it. 

0 Kudos
RhettZufelt
MVP Notable Contributor

Pretty much, except you can't click on the view link for tile layers.  you need to copy/paste the url below it.

R_

0 Kudos