<?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 Trouble with Direct Request API request set up with optional parameters. in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/trouble-with-direct-request-api-request-set-up/m-p/1374202#M4649</link>
    <description>&lt;P&gt;I'm using postman to prepare a request.&lt;/P&gt;&lt;P&gt;Below is an example of a successful routing between Orlando. FL to Tallahassee FL.&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;GET &lt;A href="https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World/solve?token=" target="_blank" rel="noopener"&gt;https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World/solve?token=&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;{{token}}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;f=json&amp;amp;stops=-81.3753552,28.5387011; -84.3078194,30.4382702&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I want to add additional parameters shown here:&amp;nbsp;&lt;A href="https://developers.arcgis.com/rest/network/api-reference/route-synchronous-service.htm" target="_blank" rel="noopener"&gt;Direct request—ArcGIS REST APIs | ArcGIS Developers&lt;/A&gt;.&amp;nbsp;&lt;BR /&gt;1)&amp;nbsp;&lt;SPAN&gt;restrictionAttributeNames&lt;BR /&gt;2)&amp;nbsp;attributeParameterValues&lt;BR /&gt;&lt;BR /&gt;These should be something like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;     "restrictionAttributeNames":"Height Restriction, Width Restriction, Weight Restriction, Weight per Axle Restriction, Length Restriction, Kingpin to Rear Axle Length Restriction, Axle Count Restriction, Use Preferred Truck Routes",
    "attributeParameterValues": [
        {
            "attributeName": "Height Restriction",
            "parameterName": "Vehicle Height (meters)",
            "value": 3.6576
        },
        {
            "attributeName": "Width Restriction",
            "parameterName": "Vehicle Width (meters)",
            "value": 3.6576
        },
        {
            "attributeName": "Weight Restriction",
            "parameterName": "Vehicle Weight (kilograms)",
            "value": 10000
        },
        {
            "attributeName": "Weight per Axle Restriction",
            "parameterName": "Vehicle Weight per Axle (kilograms)",
            "value": 1500
        },
        {
            "attributeName": "Length Restriction",
            "parameterName": "Vehicle Length (meters)",
            "value": 15.24
        },
        {
            "attributeName": "Kingpin to Rear Axle Length Restriction",
            "parameterName": "Vehicle Kingpin to Rear Axle Length (meters)",
            "value": 15.24
        },
        {
            "attributeName": "Axle Count Restriction",
            "parameterName": "Number of Axles",
            "value": 7
        },
        {
            "attributeName": "Use Preferred Truck Routes",
            "parameterName": "Restriction Usage",
            "value": "Prefer_High"
        }
    ]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I can't seem to format these properly into the request.&amp;nbsp;&lt;BR /&gt;1) Am I doing this right?&lt;BR /&gt;2) Am I forgetting some other parameter?&lt;BR /&gt;3) What should the request look like?&lt;/P&gt;&lt;P&gt;Please help! Thanks!&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jan 2024 22:57:07 GMT</pubDate>
    <dc:creator>ScottAndersonGQ</dc:creator>
    <dc:date>2024-01-24T22:57:07Z</dc:date>
    <item>
      <title>Trouble with Direct Request API request set up with optional parameters.</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/trouble-with-direct-request-api-request-set-up/m-p/1374202#M4649</link>
      <description>&lt;P&gt;I'm using postman to prepare a request.&lt;/P&gt;&lt;P&gt;Below is an example of a successful routing between Orlando. FL to Tallahassee FL.&amp;nbsp;&lt;BR /&gt;&lt;SPAN&gt;GET &lt;A href="https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World/solve?token=" target="_blank" rel="noopener"&gt;https://route.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World/solve?token=&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;{{token}}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;amp;f=json&amp;amp;stops=-81.3753552,28.5387011; -84.3078194,30.4382702&lt;/SPAN&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I want to add additional parameters shown here:&amp;nbsp;&lt;A href="https://developers.arcgis.com/rest/network/api-reference/route-synchronous-service.htm" target="_blank" rel="noopener"&gt;Direct request—ArcGIS REST APIs | ArcGIS Developers&lt;/A&gt;.&amp;nbsp;&lt;BR /&gt;1)&amp;nbsp;&lt;SPAN&gt;restrictionAttributeNames&lt;BR /&gt;2)&amp;nbsp;attributeParameterValues&lt;BR /&gt;&lt;BR /&gt;These should be something like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;     "restrictionAttributeNames":"Height Restriction, Width Restriction, Weight Restriction, Weight per Axle Restriction, Length Restriction, Kingpin to Rear Axle Length Restriction, Axle Count Restriction, Use Preferred Truck Routes",
    "attributeParameterValues": [
        {
            "attributeName": "Height Restriction",
            "parameterName": "Vehicle Height (meters)",
            "value": 3.6576
        },
        {
            "attributeName": "Width Restriction",
            "parameterName": "Vehicle Width (meters)",
            "value": 3.6576
        },
        {
            "attributeName": "Weight Restriction",
            "parameterName": "Vehicle Weight (kilograms)",
            "value": 10000
        },
        {
            "attributeName": "Weight per Axle Restriction",
            "parameterName": "Vehicle Weight per Axle (kilograms)",
            "value": 1500
        },
        {
            "attributeName": "Length Restriction",
            "parameterName": "Vehicle Length (meters)",
            "value": 15.24
        },
        {
            "attributeName": "Kingpin to Rear Axle Length Restriction",
            "parameterName": "Vehicle Kingpin to Rear Axle Length (meters)",
            "value": 15.24
        },
        {
            "attributeName": "Axle Count Restriction",
            "parameterName": "Number of Axles",
            "value": 7
        },
        {
            "attributeName": "Use Preferred Truck Routes",
            "parameterName": "Restriction Usage",
            "value": "Prefer_High"
        }
    ]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I can't seem to format these properly into the request.&amp;nbsp;&lt;BR /&gt;1) Am I doing this right?&lt;BR /&gt;2) Am I forgetting some other parameter?&lt;BR /&gt;3) What should the request look like?&lt;/P&gt;&lt;P&gt;Please help! Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 22:57:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/trouble-with-direct-request-api-request-set-up/m-p/1374202#M4649</guid>
      <dc:creator>ScottAndersonGQ</dc:creator>
      <dc:date>2024-01-24T22:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble with Direct Request API request set up with optional parameters.</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/trouble-with-direct-request-api-request-set-up/m-p/1374673#M4653</link>
      <description>&lt;P&gt;Solved my own questions with more research. The GET request was too much. Needed to use a POST.&amp;nbsp;&lt;BR /&gt;Different endpoint and documentation though. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;BR /&gt;These docs better explain the body requirements.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Docs:&amp;nbsp;&lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/route-async-services.htm" target="_blank" rel="noopener"&gt;Job request—ArcGIS REST APIs | ArcGIS Developers&lt;/A&gt;&lt;BR /&gt;POST &lt;A href="https://logistics.arcgis.com/arcgis/rest/services/World/Route/GPServer/FindRoutes/submitJob" target="_blank" rel="noopener"&gt;https://logistics.arcgis.com/arcgis/rest/services/World/Route/GPServer/FindRoutes/submitJob&lt;/A&gt;&lt;BR /&gt;Response:&amp;nbsp;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;"jobId"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"j751...."&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"jobStatus"&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt; &lt;SPAN&gt;"esriJobSubmitted"&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;GET:&amp;nbsp;&lt;SPAN&gt;&lt;A href="https://logistics.arcgis.com/arcgis/rest/services/World/Route/GPServer/FindRoutes/jobs/" target="_blank" rel="noopener"&gt;https://logistics.arcgis.com/arcgis/rest/services/World/Route/GPServer/FindRoutes/jobs/&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;{{jobId}}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;?returnMessages=true&amp;amp;f=json&amp;amp;token=&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;{{token}}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jan 2024 21:29:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/trouble-with-direct-request-api-request-set-up/m-p/1374673#M4653</guid>
      <dc:creator>ScottAndersonGQ</dc:creator>
      <dc:date>2024-01-25T21:29:26Z</dc:date>
    </item>
  </channel>
</rss>

