<?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 AddToDefinition throws error adding layers to hosted feature service via REST API on Portal 10.7.1 in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/addtodefinition-throws-error-adding-layers-to/m-p/289334#M11080</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; 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&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; text-decoration: none; font-size: 15px;"&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 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>Fri, 22 Nov 2019 14:24:26 GMT</pubDate>
    <dc:creator>HasheenDeBerry</dc:creator>
    <dc:date>2019-11-22T14:24:26Z</dc:date>
    <item>
      <title>AddToDefinition throws error adding layers to hosted feature service via REST API on Portal 10.7.1</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/addtodefinition-throws-error-adding-layers-to/m-p/289334#M11080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&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&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; 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&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; text-decoration: none; font-size: 15px;"&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 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>Fri, 22 Nov 2019 14:24:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/addtodefinition-throws-error-adding-layers-to/m-p/289334#M11080</guid>
      <dc:creator>HasheenDeBerry</dc:creator>
      <dc:date>2019-11-22T14:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: AddToDefinition throws error adding layers to hosted feature service via REST API on Portal 10.7.1</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/addtodefinition-throws-error-adding-layers-to/m-p/289335#M11081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I did some research on signed requests and my sources suggest that the AddToDefinition endpoint on Portal may require a&amp;nbsp;signature or HMAC hash added to the request header (&lt;A class="link-titled" href="https://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html" title="https://docs.aws.amazon.com/general/latest/gr/signing_aws_api_requests.html"&gt;Signing AWS API Requests - AWS General Reference&lt;/A&gt;&amp;nbsp;). If this is the case, does anyone know the ingredients to calculate this hash for Portal?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2019 15:36:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/addtodefinition-throws-error-adding-layers-to/m-p/289335#M11081</guid>
      <dc:creator>HasheenDeBerry</dc:creator>
      <dc:date>2019-11-22T15:36:22Z</dc:date>
    </item>
  </channel>
</rss>

