<?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 Re: How to pair Api Key and Feature Service in ArcGIS REST JS Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-js-questions/how-to-pair-api-key-and-feature-service/m-p/1535098#M80</link>
    <description>&lt;P data-unlink="true"&gt;The functionality for API keys changed on June 26, where they are fully documented here &lt;A href="https://developers.arcgis.com/documentation/security-and-authentication/api-key-authentication/" target="_blank"&gt;https://developers.arcgis.com/documentation/security-and-authentication/api-key-authentication/&lt;/A&gt;&amp;nbsp; including new vs. legacy functionality. The new API keys are more secure and offer more features, but they work very different from the legacy keys.&lt;/P&gt;&lt;P&gt;Esri has not yet published the API specs how to programmatically manage the new API keys. I expect this will come in the future but I do not know of any timeline for it.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Sep 2024 17:38:16 GMT</pubDate>
    <dc:creator>John-Foster</dc:creator>
    <dc:date>2024-09-04T17:38:16Z</dc:date>
    <item>
      <title>How to pair Api Key and Feature Service</title>
      <link>https://community.esri.com/t5/arcgis-rest-js-questions/how-to-pair-api-key-and-feature-service/m-p/1534943#M79</link>
      <description>&lt;P&gt;I've returned to a project where I'm managing Feature Services/Layers through the ArcGis REST JS and consuming the data via a web frontend using the ArcGis Maps Javascript SDK authenticated with a Api Key.&lt;BR /&gt;After I create a Feature Service (using createFeatureService) and a Feature Layer (using addToServiceDefinition) I want to add the Feature Service to my Api Key programmatically so I can access it from my web frontend.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;When I did this the first time (around 2022) I used the, now legacy, Api Key and connected my Feature Service to the Api Key using addItemRelationship. But now with the new (application) Api Key this doesn't seem to work. How is this done with the new Api Key type? I tried to use updateItem, but couldn't get it to work. Does anyone have any advice?&lt;/P&gt;&lt;P&gt;Another thing I noticed is that when I manually add an item to the Api Key via "Edit Item Access" in the Online portal, the API Key for the "Application" disappears and I have to generate a new Api Key. Is this how it is supposed to work?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 14:37:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-js-questions/how-to-pair-api-key-and-feature-service/m-p/1534943#M79</guid>
      <dc:creator>sab9000</dc:creator>
      <dc:date>2024-09-04T14:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to pair Api Key and Feature Service</title>
      <link>https://community.esri.com/t5/arcgis-rest-js-questions/how-to-pair-api-key-and-feature-service/m-p/1535098#M80</link>
      <description>&lt;P data-unlink="true"&gt;The functionality for API keys changed on June 26, where they are fully documented here &lt;A href="https://developers.arcgis.com/documentation/security-and-authentication/api-key-authentication/" target="_blank"&gt;https://developers.arcgis.com/documentation/security-and-authentication/api-key-authentication/&lt;/A&gt;&amp;nbsp; including new vs. legacy functionality. The new API keys are more secure and offer more features, but they work very different from the legacy keys.&lt;/P&gt;&lt;P&gt;Esri has not yet published the API specs how to programmatically manage the new API keys. I expect this will come in the future but I do not know of any timeline for it.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 17:38:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-js-questions/how-to-pair-api-key-and-feature-service/m-p/1535098#M80</guid>
      <dc:creator>John-Foster</dc:creator>
      <dc:date>2024-09-04T17:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to pair Api Key and Feature Service</title>
      <link>https://community.esri.com/t5/arcgis-rest-js-questions/how-to-pair-api-key-and-feature-service/m-p/1536087#M81</link>
      <description>&lt;P&gt;Thank you for the information!&lt;BR /&gt;I guess I just have to wait for them to implement this functionality and find a way around it in the mean time.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Sep 2024 20:33:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-js-questions/how-to-pair-api-key-and-feature-service/m-p/1536087#M81</guid>
      <dc:creator>sab9000</dc:creator>
      <dc:date>2024-09-06T20:33:32Z</dc:date>
    </item>
  </channel>
</rss>

