<?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: Append REST API endpoint rejects request even though it's enabled in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/append-rest-api-endpoint-rejects-request-even/m-p/1154933#M4101</link>
    <description>&lt;P&gt;Thanks for the idea. I was looking to see if "Append" is a valid addition to capabilities, and found this confusing paragraph in the docs here:&amp;nbsp;&lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/feature-service.htm" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/rest/services-reference/enterprise/feature-service.htm&lt;/A&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;A feature service that supports the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;append&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;API exposes the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;supportsAppend&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;metadata property. When the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;supportsAppend&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;property is absent or is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;false&lt;/SPAN&gt;, the owner of the feature service cannot use the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;append&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;API. Also the Append capability cannot be added to a feature service if the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;supportsAppend&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;true&lt;/SPAN&gt;. See&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/append-feature-service-.htm" target="_blank" rel="noopener"&gt;Append (Feature Service)&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/apply-edits-feature-service-layer-.htm" target="_blank" rel="noopener"&gt;Append (Feature Service/Layer)&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for more details.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;So... if supportsAppend is false, you can't append, but if supportsAppend is true (like it is for me), then the Append capability cannot be added. The only way that makes sense in my head is if that means I can ALREADY use the /append endpoint, but it does not seem to be working.&lt;/P&gt;</description>
    <pubDate>Thu, 17 Mar 2022 17:55:15 GMT</pubDate>
    <dc:creator>ewagstaff</dc:creator>
    <dc:date>2022-03-17T17:55:15Z</dc:date>
    <item>
      <title>Append REST API endpoint rejects request even though it's enabled</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/append-rest-api-endpoint-rejects-request-even/m-p/1154099#M4099</link>
      <description>&lt;P&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;Making a request to the service URL confirms:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;"supportsAppend": true&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However when calling the /append endpoint using an OAuth token (from an app made by an admin account), I get this response:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;{
	"error": {
		"code": 405,
		"message": "Unable to append data.",
		"details": [
			"Append is not enabled."
		]
	}
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Sync and tracking are both disabled on the layer, as required. The /addFeatures endpoint works fine. Not sure what else to try. Does anyone know why I can't append?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 23:09:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/append-rest-api-endpoint-rejects-request-even/m-p/1154099#M4099</guid>
      <dc:creator>ewagstaff</dc:creator>
      <dc:date>2022-03-15T23:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Append REST API endpoint rejects request even though it's enabled</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/append-rest-api-endpoint-rejects-request-even/m-p/1154779#M4100</link>
      <description>&lt;P&gt;I think supportsAppend only indicates that append is allowed to be enabled&amp;nbsp;&lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/update-definition-feature-service-.htm" target="_blank"&gt;Update Definition (Feature Service)—ArcGIS REST APIs | ArcGIS Developers&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I would guess this means adding append to 'capabilities'&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 14:19:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/append-rest-api-endpoint-rejects-request-even/m-p/1154779#M4100</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2022-03-17T14:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Append REST API endpoint rejects request even though it's enabled</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/append-rest-api-endpoint-rejects-request-even/m-p/1154933#M4101</link>
      <description>&lt;P&gt;Thanks for the idea. I was looking to see if "Append" is a valid addition to capabilities, and found this confusing paragraph in the docs here:&amp;nbsp;&lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/feature-service.htm" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/rest/services-reference/enterprise/feature-service.htm&lt;/A&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;A feature service that supports the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;append&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;API exposes the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;supportsAppend&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;metadata property. When the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;supportsAppend&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;property is absent or is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;false&lt;/SPAN&gt;, the owner of the feature service cannot use the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;append&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;API. Also the Append capability cannot be added to a feature service if the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;supportsAppend&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;is&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;true&lt;/SPAN&gt;. See&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/append-feature-service-.htm" target="_blank" rel="noopener"&gt;Append (Feature Service)&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;or&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/apply-edits-feature-service-layer-.htm" target="_blank" rel="noopener"&gt;Append (Feature Service/Layer)&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;for more details.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;So... if supportsAppend is false, you can't append, but if supportsAppend is true (like it is for me), then the Append capability cannot be added. The only way that makes sense in my head is if that means I can ALREADY use the /append endpoint, but it does not seem to be working.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Mar 2022 17:55:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/append-rest-api-endpoint-rejects-request-even/m-p/1154933#M4101</guid>
      <dc:creator>ewagstaff</dc:creator>
      <dc:date>2022-03-17T17:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Append REST API endpoint rejects request even though it's enabled</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/append-rest-api-endpoint-rejects-request-even/m-p/1160880#M4107</link>
      <description>&lt;P&gt;For anyone encountering this issue later on, here's the solution:&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Even though the response says "Append is not enabled", the problem has nothing to do with the layer. Apparently the OAuth token I generated that lets me do all kinds of operations within the organization was not the right token to use for this particular operation. I had to generate a special token just for this using the&amp;nbsp;/generateToken endpoint but using my organization's domain instead of the&amp;nbsp;&lt;A href="https://www.arcgis.com" target="_blank"&gt;https://www.arcgis.com&lt;/A&gt;&amp;nbsp;domain.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I figured this out by monitoring the network requests of the actual append operation that you can do through the ArcGIS Online portal.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Apr 2022 18:13:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/append-rest-api-endpoint-rejects-request-even/m-p/1160880#M4107</guid>
      <dc:creator>ewagstaff</dc:creator>
      <dc:date>2022-04-04T18:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: Append REST API endpoint rejects request even though it's enabled</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/append-rest-api-endpoint-rejects-request-even/m-p/1182805#M4175</link>
      <description>&lt;P&gt;Can you show the basic code for the generateToken request that made the difference? Any additional guidance would be helpful.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 17:09:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/append-rest-api-endpoint-rejects-request-even/m-p/1182805#M4175</guid>
      <dc:creator>B_Brooks</dc:creator>
      <dc:date>2022-06-14T17:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Append REST API endpoint rejects request even though it's enabled</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/append-rest-api-endpoint-rejects-request-even/m-p/1182808#M4176</link>
      <description>&lt;P&gt;Sure, this is the request URL that generated the token that triggered the "Append is not enabled" error:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;curl --request POST \
--url 'https://www.arcgis.com/sharing/rest/generateToken?f=json&amp;amp;client=requestip&amp;amp;=' \
--header 'Content-Type: multipart/form-data; boundary=---011000010111000001101001' \
--form password=SECRET_PASSWORD \
--form username=SECRET_USER &lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;And this is the one that request that generated a token that worked for us:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;curl --request POST \
--url 'https://OUR_ORGANIZATION.maps.arcgis.com/sharing/rest/generateToken?f=json&amp;amp;grant_type=client_credentials' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data username=SECRET_USER \
--data password=SECRET_PASSWORD \
--data referer=clientip&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 14 Jun 2022 17:23:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/append-rest-api-endpoint-rejects-request-even/m-p/1182808#M4176</guid>
      <dc:creator>ewagstaff</dc:creator>
      <dc:date>2022-06-14T17:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Append REST API endpoint rejects request even though it's enabled</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/append-rest-api-endpoint-rejects-request-even/m-p/1182886#M4177</link>
      <description>&lt;P&gt;Very helpful. That's what I needed. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2022 19:52:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/append-rest-api-endpoint-rejects-request-even/m-p/1182886#M4177</guid>
      <dc:creator>B_Brooks</dc:creator>
      <dc:date>2022-06-14T19:52:23Z</dc:date>
    </item>
  </channel>
</rss>

