<?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 How to get spatial analysis service URL? in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/how-to-get-spatial-analysis-service-url/m-p/1556887#M4884</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to generate a spatial join between layers stored on our AGOL. I'm using the REST API with an HTTP POST method, via Power Automate. However, I'm getting a bad URL response.&lt;/P&gt;&lt;P&gt;From the documentation (below), the format should be:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;http:&lt;/SPAN&gt;&lt;SPAN&gt;//&amp;lt;analysis url&amp;gt;/JoinFeatures/SubmitJob&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I think I'm getting tripped up on finding the analysis URL to use in the request. The parameters seem ok, I think it's the actual URL. I've tried to figure out how to find this in our AGOL content; I also have ArcGIS Pro (but not Enterprise) but haven't seen how that would help.&lt;/P&gt;&lt;P&gt;Any help on getting this analysis URL?&lt;/P&gt;&lt;P&gt;Here's what I'm trying:&lt;/P&gt;&lt;P&gt;URI:&amp;nbsp;&lt;A href="https://services5.arcgis.com/&amp;lt;feature" target="_blank"&gt;https://services5.arcgis.com/[feature&lt;/A&gt;&amp;nbsp;layer code]/arcgis/rest/services/JoinFeatures/SubmitJob&lt;/P&gt;&lt;P&gt;method: post&lt;/P&gt;&lt;P&gt;queries:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;f: "pjson"&lt;/LI&gt;&lt;LI&gt;Token: successfully retrieved token via HTTP GET request (&lt;A href="https://www.arcgis.com/sharing/rest/oauth2/token" target="_blank"&gt;https://www.arcgis.com/sharing/rest/oauth2/token&lt;/A&gt;)&lt;/LI&gt;&lt;LI&gt;joinLayer: URL of join layer (points)&lt;/LI&gt;&lt;LI&gt;targetLayer: URL of target layer (polygons)&lt;/LI&gt;&lt;LI&gt;spatialRelationship: CompletelyWithin&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/spatial-analysis/tasks/sa-join-features/" target="_blank"&gt;Join Features | ArcGIS REST APIs | ArcGIS Developers&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Nov 2024 17:12:13 GMT</pubDate>
    <dc:creator>MatanBenYishay</dc:creator>
    <dc:date>2024-11-08T17:12:13Z</dc:date>
    <item>
      <title>How to get spatial analysis service URL?</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/how-to-get-spatial-analysis-service-url/m-p/1556887#M4884</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm trying to generate a spatial join between layers stored on our AGOL. I'm using the REST API with an HTTP POST method, via Power Automate. However, I'm getting a bad URL response.&lt;/P&gt;&lt;P&gt;From the documentation (below), the format should be:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;http:&lt;/SPAN&gt;&lt;SPAN&gt;//&amp;lt;analysis url&amp;gt;/JoinFeatures/SubmitJob&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I think I'm getting tripped up on finding the analysis URL to use in the request. The parameters seem ok, I think it's the actual URL. I've tried to figure out how to find this in our AGOL content; I also have ArcGIS Pro (but not Enterprise) but haven't seen how that would help.&lt;/P&gt;&lt;P&gt;Any help on getting this analysis URL?&lt;/P&gt;&lt;P&gt;Here's what I'm trying:&lt;/P&gt;&lt;P&gt;URI:&amp;nbsp;&lt;A href="https://services5.arcgis.com/&amp;lt;feature" target="_blank"&gt;https://services5.arcgis.com/[feature&lt;/A&gt;&amp;nbsp;layer code]/arcgis/rest/services/JoinFeatures/SubmitJob&lt;/P&gt;&lt;P&gt;method: post&lt;/P&gt;&lt;P&gt;queries:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;f: "pjson"&lt;/LI&gt;&lt;LI&gt;Token: successfully retrieved token via HTTP GET request (&lt;A href="https://www.arcgis.com/sharing/rest/oauth2/token" target="_blank"&gt;https://www.arcgis.com/sharing/rest/oauth2/token&lt;/A&gt;)&lt;/LI&gt;&lt;LI&gt;joinLayer: URL of join layer (points)&lt;/LI&gt;&lt;LI&gt;targetLayer: URL of target layer (polygons)&lt;/LI&gt;&lt;LI&gt;spatialRelationship: CompletelyWithin&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/spatial-analysis/tasks/sa-join-features/" target="_blank"&gt;Join Features | ArcGIS REST APIs | ArcGIS Developers&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2024 17:12:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/how-to-get-spatial-analysis-service-url/m-p/1556887#M4884</guid>
      <dc:creator>MatanBenYishay</dc:creator>
      <dc:date>2024-11-08T17:12:13Z</dc:date>
    </item>
  </channel>
</rss>

