AnsweredAssumed Answered

Portal 10.7.1 throws error with AddToDefinition endpoint in REST API

Question asked by xilducex on Dec 2, 2019
Latest reply on Feb 10, 2020 by gmacdougall-esristaff



I have a Portal for ArcGIS that I am trying to add a feature service to using the REST API.  So far I've had success creating the service itself.  When I try to add layers to it, I get a peculiar error message:


{ "error": { "code": 403, "subcode": 2, "message": "Access to admin resources are not allowed, Signed Request needed for 'AddToDefinition' with table", "details": [] } }


This message appears when I try to use the server admin interface to add the layer definition as well.  Attached is the layer definition JSON.  I should say that I have used the same definition to create layers on a hosted feature service in ArcGIS Online with success.  Does anyone have suggestions on how I can add feature layers to a service using the REST API on Portal?  Thanks in advance.