<?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 get 404 error &amp;quot;Service Hosted/&amp;lt;FEATURE_SERVICE_NAME&amp;gt;/MapServer not found &amp;quot; in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/get-404-error-quot-service-hosted-lt-feature/m-p/1266046#M4405</link>
    <description>&lt;P&gt;I am new to ARCGIS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to upload a .geojson to the map and&amp;nbsp;&lt;SPAN&gt;publish it with REST API.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="que.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/64829iBDA4434444AC22F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="que.PNG" alt="que.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, when I try&amp;nbsp;&lt;/SPAN&gt;to update styles for the feature layer with REST API.&amp;nbsp;I get the 404 error&amp;nbsp;"Service Hosted/sfamap/MapServer not found "&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;curl -s --insecure --location -e "{{ ARCGIS_URL_PORTAL_REST }}" --request POST "{{ ARCGIS_URL_ADMIN_HOSTED }}/Hosted/{{ FEATURE_SERVICE_NAME }}/FeatureServer/0/updateDefinition" \
                --header "Content-Type: application/x-www-form-urlencoded" \
                --data-urlencode "updateDefinition={
                   "drawingInfo": {
                        "renderer": {"type":"simple","symbol":{"color":[255,255,0,255],"size":6.75,"angle":0,"xoffset":0,"yoffset":0,"type":"esriSMS","style":"esriSMSCircle","outline":{"color":[26,26,26,255],"width":1.5,"type":"esriSLS","style":"esriSLSSolid"}}},
                        "transparency": 0
                     }
                }" 
               --data-urlencode "f=pjson" \
               --data-urlencode "token={{ cjmkt_token }}"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Mar 2023 16:45:34 GMT</pubDate>
    <dc:creator>ryanh</dc:creator>
    <dc:date>2023-03-09T16:45:34Z</dc:date>
    <item>
      <title>get 404 error "Service Hosted/&lt;FEATURE_SERVICE_NAME&gt;/MapServer not found "</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/get-404-error-quot-service-hosted-lt-feature/m-p/1266046#M4405</link>
      <description>&lt;P&gt;I am new to ARCGIS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to upload a .geojson to the map and&amp;nbsp;&lt;SPAN&gt;publish it with REST API.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="que.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/64829iBDA4434444AC22F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="que.PNG" alt="que.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, when I try&amp;nbsp;&lt;/SPAN&gt;to update styles for the feature layer with REST API.&amp;nbsp;I get the 404 error&amp;nbsp;"Service Hosted/sfamap/MapServer not found "&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;curl -s --insecure --location -e "{{ ARCGIS_URL_PORTAL_REST }}" --request POST "{{ ARCGIS_URL_ADMIN_HOSTED }}/Hosted/{{ FEATURE_SERVICE_NAME }}/FeatureServer/0/updateDefinition" \
                --header "Content-Type: application/x-www-form-urlencoded" \
                --data-urlencode "updateDefinition={
                   "drawingInfo": {
                        "renderer": {"type":"simple","symbol":{"color":[255,255,0,255],"size":6.75,"angle":0,"xoffset":0,"yoffset":0,"type":"esriSMS","style":"esriSMSCircle","outline":{"color":[26,26,26,255],"width":1.5,"type":"esriSLS","style":"esriSLSSolid"}}},
                        "transparency": 0
                     }
                }" 
               --data-urlencode "f=pjson" \
               --data-urlencode "token={{ cjmkt_token }}"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Mar 2023 16:45:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/get-404-error-quot-service-hosted-lt-feature/m-p/1266046#M4405</guid>
      <dc:creator>ryanh</dc:creator>
      <dc:date>2023-03-09T16:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: get 404 error "Service Hosted/&lt;FEATURE_SERVICE_NAME&gt;/MapServer not found "</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/get-404-error-quot-service-hosted-lt-feature/m-p/1330046#M4557</link>
      <description>&lt;P&gt;Hi Ryanh, I got the same error today. It was working fine before we restarted the server box. Have you ever worked out the cause of the issue?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 11:09:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/get-404-error-quot-service-hosted-lt-feature/m-p/1330046#M4557</guid>
      <dc:creator>JackFanZhang</dc:creator>
      <dc:date>2023-09-19T11:09:58Z</dc:date>
    </item>
  </channel>
</rss>

