<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Portal 10.7.1 throws error with AddToDefinition endpoint in REST API in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/portal-10-7-1-throws-error-with-addtodefinition/m-p/221979#M1404</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Greetings,&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I have a Portal for ArcGIS that I am trying to add a feature service to using the REST API.&amp;nbsp; So far I've had success creating the service itself.&amp;nbsp; When I try to add layers to it, I get a peculiar error message:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; border: 0px; font-weight: inherit; text-decoration: none; font-size: 13.33px;"&gt;{ "error": { "code": 403, "subcode": 2, "message": "Access to admin resources are not allowed, Signed Request needed for 'AddToDefinition' with table", "details": [] } }&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; border: 0px; font-weight: inherit; text-decoration: none;"&gt;This message appears when I try to use the server admin interface to add the layer definition as well.&amp;nbsp; Attached is the layer definition JSON.&amp;nbsp; I should say that I have used the same definition to create layers on a hosted feature service in ArcGIS Online with success.&amp;nbsp; Does anyone have suggestions on how I can add feature layers to a service using the REST API on Portal?&amp;nbsp; Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Dec 2019 14:41:39 GMT</pubDate>
    <dc:creator>HasheenDeBerry</dc:creator>
    <dc:date>2019-12-02T14:41:39Z</dc:date>
    <item>
      <title>Portal 10.7.1 throws error with AddToDefinition endpoint in REST API</title>
      <link>https://community.esri.com/t5/developers-questions/portal-10-7-1-throws-error-with-addtodefinition/m-p/221979#M1404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Greetings,&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I have a Portal for ArcGIS that I am trying to add a feature service to using the REST API.&amp;nbsp; So far I've had success creating the service itself.&amp;nbsp; When I try to add layers to it, I get a peculiar error message:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; border: 0px; font-weight: inherit; text-decoration: none; font-size: 13.33px;"&gt;{ "error": { "code": 403, "subcode": 2, "message": "Access to admin resources are not allowed, Signed Request needed for 'AddToDefinition' with table", "details": [] } }&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; border: 0px; font-weight: inherit; text-decoration: none;"&gt;This message appears when I try to use the server admin interface to add the layer definition as well.&amp;nbsp; Attached is the layer definition JSON.&amp;nbsp; I should say that I have used the same definition to create layers on a hosted feature service in ArcGIS Online with success.&amp;nbsp; Does anyone have suggestions on how I can add feature layers to a service using the REST API on Portal?&amp;nbsp; Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2019 14:41:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/portal-10-7-1-throws-error-with-addtodefinition/m-p/221979#M1404</guid>
      <dc:creator>HasheenDeBerry</dc:creator>
      <dc:date>2019-12-02T14:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Portal 10.7.1 throws error with AddToDefinition endpoint in REST API</title>
      <link>https://community.esri.com/t5/developers-questions/portal-10-7-1-throws-error-with-addtodefinition/m-p/221980#M1405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your attached layer info is from the admin layer resource. This has some extra private info that is not needed to crease new layers. In general it is best to use the public layer JSON with the admin API. I attached an updated version of your attachment that worked for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note I removed the NaN references- e.g...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "mmax": NaN,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "mmin": NaN,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "zmax": NaN,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "zmin": NaN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the adminLayerInfo references - e.g....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"adminLayerInfo": {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;"geometryField": {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;"name": "Shape",&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;"srid": 102100&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;},&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;"tableName": null&lt;BR /&gt;},&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Gary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2020 17:13:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/portal-10-7-1-throws-error-with-addtodefinition/m-p/221980#M1405</guid>
      <dc:creator>GaryMacDougall</dc:creator>
      <dc:date>2020-02-10T17:13:46Z</dc:date>
    </item>
  </channel>
</rss>

