<?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 Unable to add feature layer to api key in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-add-feature-layer-to-api-key/m-p/1300139#M81418</link>
    <description>&lt;P&gt;Hi, I have hosted a feature layer and created an api key. Now I am trying to add the feature layer to the api key by following below steps:&lt;BR /&gt;- Click on Edit the api key.&lt;/P&gt;&lt;P&gt;- Click on "set content icon scopes"&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Add the hosted feature layer&lt;/P&gt;&lt;P&gt;- Click on Add button&lt;/P&gt;&lt;P&gt;After clicking on add button, I get an error notification. Below is the screenshot:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FactSetResearchSystems_0-1686905740624.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/73471iF2F125540A18D149/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FactSetResearchSystems_0-1686905740624.png" alt="FactSetResearchSystems_0-1686905740624.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FactSetResearchSystems_1-1686905871182.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/73472i4B7F5C34B12636F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FactSetResearchSystems_1-1686905871182.png" alt="FactSetResearchSystems_1-1686905871182.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Jun 2023 08:58:40 GMT</pubDate>
    <dc:creator>FactSetResearchSystems</dc:creator>
    <dc:date>2023-06-16T08:58:40Z</dc:date>
    <item>
      <title>Unable to add feature layer to api key</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-add-feature-layer-to-api-key/m-p/1300139#M81418</link>
      <description>&lt;P&gt;Hi, I have hosted a feature layer and created an api key. Now I am trying to add the feature layer to the api key by following below steps:&lt;BR /&gt;- Click on Edit the api key.&lt;/P&gt;&lt;P&gt;- Click on "set content icon scopes"&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Add the hosted feature layer&lt;/P&gt;&lt;P&gt;- Click on Add button&lt;/P&gt;&lt;P&gt;After clicking on add button, I get an error notification. Below is the screenshot:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FactSetResearchSystems_0-1686905740624.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/73471iF2F125540A18D149/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FactSetResearchSystems_0-1686905740624.png" alt="FactSetResearchSystems_0-1686905740624.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FactSetResearchSystems_1-1686905871182.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/73472i4B7F5C34B12636F0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FactSetResearchSystems_1-1686905871182.png" alt="FactSetResearchSystems_1-1686905871182.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jun 2023 08:58:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-add-feature-layer-to-api-key/m-p/1300139#M81418</guid>
      <dc:creator>FactSetResearchSystems</dc:creator>
      <dc:date>2023-06-16T08:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to add feature layer to api key</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-add-feature-layer-to-api-key/m-p/1300271#M81421</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/464669"&gt;@FactSetResearchSystems&lt;/a&gt;&amp;nbsp;-&lt;/P&gt;&lt;P&gt;A couple of things to verify:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Are you logged into the site with your developer account (not ArcGIS Online organizational account)? You can only do this with a developer account noted here:&amp;nbsp;&lt;A href="https://developers.arcgis.com/documentation/mapping-apis-and-services/security/api-keys/#arcgis-content-item-scopes" target="_blank"&gt;https://developers.arcgis.com/documentation/mapping-apis-and-services/security/api-keys/#arcgis-content-item-scopes&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Does your developer account own both the API key and the hosted feature layer? You can only access private content that you own with API keys:&amp;nbsp;&lt;A href="https://developers.arcgis.com/documentation/mapping-apis-and-services/security/api-keys/#arcgis-content-item-scopes" target="_blank"&gt;https://developers.arcgis.com/documentation/mapping-apis-and-services/security/api-keys/#arcgis-content-item-scopes&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;Is the layer editable? You can only access content with API keys and your developer account if they are read-only (not editable):&amp;nbsp;&lt;A href="https://developers.arcgis.com/documentation/mapping-apis-and-services/security/api-keys/#available-content-item-scopes" target="_blank"&gt;https://developers.arcgis.com/documentation/mapping-apis-and-services/security/api-keys/#available-content-item-scopes&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Fri, 16 Jun 2023 16:05:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/unable-to-add-feature-layer-to-api-key/m-p/1300271#M81421</guid>
      <dc:creator>LaurenBoyd</dc:creator>
      <dc:date>2023-06-16T16:05:32Z</dc:date>
    </item>
  </channel>
</rss>

