Update Quote Preferences
curl --request PUT \
--url https://api-lg-k.arms.cedarai.com/shipper/quote-preferences \
--header 'Content-Type: application/json' \
--header 'x-arms-api-key: <api-key>' \
--header 'x-arms-assume-user: <api-key>' \
--data '
{
"destination_saved_facilities": [
{
"cif": "<string>",
"city_state": {
"city": "<string>",
"state_or_province": "<string>"
},
"equipment_profile_names": [
"<string>"
],
"name": "<string>",
"stccs": [
"<string>"
]
}
],
"favorite_commodity_sets": [
{
"name": "<string>",
"values": [
"<string>"
]
}
],
"favorite_destination_cif_sets": [
{
"name": "<string>",
"values": [
"<string>"
]
}
],
"favorite_destination_geography_sets": [
{
"name": "<string>",
"values": [
"<string>"
]
}
],
"favorite_equipment_profile_sets": [
{
"name": "<string>",
"profiles": [
{
"excluded_car_types": [],
"excluded_marks": [
"<string>"
],
"included_marks": [
"<string>"
],
"measurements": [
{
"range": {
"from": 123,
"to": 123
}
}
],
"name": "<string>",
"plate_codes": [
"<string>"
]
}
]
}
],
"favorite_geography_sets": [
{
"name": "<string>",
"values": [
"<string>"
]
}
],
"favorite_origin_cif_sets": [
{
"name": "<string>",
"values": [
"<string>"
]
}
],
"favorite_origin_geography_sets": [
{
"name": "<string>",
"values": [
"<string>"
]
}
],
"origin_saved_facilities": [
{
"cif": "<string>",
"city_state": {
"city": "<string>",
"state_or_province": "<string>"
},
"equipment_profile_names": [
"<string>"
],
"name": "<string>",
"stccs": [
"<string>"
]
}
],
"quotes_hide_duplicate_junctions": true
}
'import requests
url = "https://api-lg-k.arms.cedarai.com/shipper/quote-preferences"
payload = {
"destination_saved_facilities": [
{
"cif": "<string>",
"city_state": {
"city": "<string>",
"state_or_province": "<string>"
},
"equipment_profile_names": ["<string>"],
"name": "<string>",
"stccs": ["<string>"]
}
],
"favorite_commodity_sets": [
{
"name": "<string>",
"values": ["<string>"]
}
],
"favorite_destination_cif_sets": [
{
"name": "<string>",
"values": ["<string>"]
}
],
"favorite_destination_geography_sets": [
{
"name": "<string>",
"values": ["<string>"]
}
],
"favorite_equipment_profile_sets": [
{
"name": "<string>",
"profiles": [
{
"excluded_car_types": [],
"excluded_marks": ["<string>"],
"included_marks": ["<string>"],
"measurements": [{ "range": {
"from": 123,
"to": 123
} }],
"name": "<string>",
"plate_codes": ["<string>"]
}
]
}
],
"favorite_geography_sets": [
{
"name": "<string>",
"values": ["<string>"]
}
],
"favorite_origin_cif_sets": [
{
"name": "<string>",
"values": ["<string>"]
}
],
"favorite_origin_geography_sets": [
{
"name": "<string>",
"values": ["<string>"]
}
],
"origin_saved_facilities": [
{
"cif": "<string>",
"city_state": {
"city": "<string>",
"state_or_province": "<string>"
},
"equipment_profile_names": ["<string>"],
"name": "<string>",
"stccs": ["<string>"]
}
],
"quotes_hide_duplicate_junctions": True
}
headers = {
"x-arms-api-key": "<api-key>",
"x-arms-assume-user": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
'x-arms-api-key': '<api-key>',
'x-arms-assume-user': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
destination_saved_facilities: [
{
cif: '<string>',
city_state: {city: '<string>', state_or_province: '<string>'},
equipment_profile_names: ['<string>'],
name: '<string>',
stccs: ['<string>']
}
],
favorite_commodity_sets: [{name: '<string>', values: ['<string>']}],
favorite_destination_cif_sets: [{name: '<string>', values: ['<string>']}],
favorite_destination_geography_sets: [{name: '<string>', values: ['<string>']}],
favorite_equipment_profile_sets: [
{
name: '<string>',
profiles: [
{
excluded_car_types: [],
excluded_marks: ['<string>'],
included_marks: ['<string>'],
measurements: [{range: {from: 123, to: 123}}],
name: '<string>',
plate_codes: ['<string>']
}
]
}
],
favorite_geography_sets: [{name: '<string>', values: ['<string>']}],
favorite_origin_cif_sets: [{name: '<string>', values: ['<string>']}],
favorite_origin_geography_sets: [{name: '<string>', values: ['<string>']}],
origin_saved_facilities: [
{
cif: '<string>',
city_state: {city: '<string>', state_or_province: '<string>'},
equipment_profile_names: ['<string>'],
name: '<string>',
stccs: ['<string>']
}
],
quotes_hide_duplicate_junctions: true
})
};
fetch('https://api-lg-k.arms.cedarai.com/shipper/quote-preferences', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-lg-k.arms.cedarai.com/shipper/quote-preferences",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'destination_saved_facilities' => [
[
'cif' => '<string>',
'city_state' => [
'city' => '<string>',
'state_or_province' => '<string>'
],
'equipment_profile_names' => [
'<string>'
],
'name' => '<string>',
'stccs' => [
'<string>'
]
]
],
'favorite_commodity_sets' => [
[
'name' => '<string>',
'values' => [
'<string>'
]
]
],
'favorite_destination_cif_sets' => [
[
'name' => '<string>',
'values' => [
'<string>'
]
]
],
'favorite_destination_geography_sets' => [
[
'name' => '<string>',
'values' => [
'<string>'
]
]
],
'favorite_equipment_profile_sets' => [
[
'name' => '<string>',
'profiles' => [
[
'excluded_car_types' => [
],
'excluded_marks' => [
'<string>'
],
'included_marks' => [
'<string>'
],
'measurements' => [
[
'range' => [
'from' => 123,
'to' => 123
]
]
],
'name' => '<string>',
'plate_codes' => [
'<string>'
]
]
]
]
],
'favorite_geography_sets' => [
[
'name' => '<string>',
'values' => [
'<string>'
]
]
],
'favorite_origin_cif_sets' => [
[
'name' => '<string>',
'values' => [
'<string>'
]
]
],
'favorite_origin_geography_sets' => [
[
'name' => '<string>',
'values' => [
'<string>'
]
]
],
'origin_saved_facilities' => [
[
'cif' => '<string>',
'city_state' => [
'city' => '<string>',
'state_or_province' => '<string>'
],
'equipment_profile_names' => [
'<string>'
],
'name' => '<string>',
'stccs' => [
'<string>'
]
]
],
'quotes_hide_duplicate_junctions' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-arms-api-key: <api-key>",
"x-arms-assume-user: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-lg-k.arms.cedarai.com/shipper/quote-preferences"
payload := strings.NewReader("{\n \"destination_saved_facilities\": [\n {\n \"cif\": \"<string>\",\n \"city_state\": {\n \"city\": \"<string>\",\n \"state_or_province\": \"<string>\"\n },\n \"equipment_profile_names\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"stccs\": [\n \"<string>\"\n ]\n }\n ],\n \"favorite_commodity_sets\": [\n {\n \"name\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ],\n \"favorite_destination_cif_sets\": [\n {\n \"name\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ],\n \"favorite_destination_geography_sets\": [\n {\n \"name\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ],\n \"favorite_equipment_profile_sets\": [\n {\n \"name\": \"<string>\",\n \"profiles\": [\n {\n \"excluded_car_types\": [],\n \"excluded_marks\": [\n \"<string>\"\n ],\n \"included_marks\": [\n \"<string>\"\n ],\n \"measurements\": [\n {\n \"range\": {\n \"from\": 123,\n \"to\": 123\n }\n }\n ],\n \"name\": \"<string>\",\n \"plate_codes\": [\n \"<string>\"\n ]\n }\n ]\n }\n ],\n \"favorite_geography_sets\": [\n {\n \"name\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ],\n \"favorite_origin_cif_sets\": [\n {\n \"name\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ],\n \"favorite_origin_geography_sets\": [\n {\n \"name\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ],\n \"origin_saved_facilities\": [\n {\n \"cif\": \"<string>\",\n \"city_state\": {\n \"city\": \"<string>\",\n \"state_or_province\": \"<string>\"\n },\n \"equipment_profile_names\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"stccs\": [\n \"<string>\"\n ]\n }\n ],\n \"quotes_hide_duplicate_junctions\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-arms-api-key", "<api-key>")
req.Header.Add("x-arms-assume-user", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api-lg-k.arms.cedarai.com/shipper/quote-preferences")
.header("x-arms-api-key", "<api-key>")
.header("x-arms-assume-user", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"destination_saved_facilities\": [\n {\n \"cif\": \"<string>\",\n \"city_state\": {\n \"city\": \"<string>\",\n \"state_or_province\": \"<string>\"\n },\n \"equipment_profile_names\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"stccs\": [\n \"<string>\"\n ]\n }\n ],\n \"favorite_commodity_sets\": [\n {\n \"name\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ],\n \"favorite_destination_cif_sets\": [\n {\n \"name\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ],\n \"favorite_destination_geography_sets\": [\n {\n \"name\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ],\n \"favorite_equipment_profile_sets\": [\n {\n \"name\": \"<string>\",\n \"profiles\": [\n {\n \"excluded_car_types\": [],\n \"excluded_marks\": [\n \"<string>\"\n ],\n \"included_marks\": [\n \"<string>\"\n ],\n \"measurements\": [\n {\n \"range\": {\n \"from\": 123,\n \"to\": 123\n }\n }\n ],\n \"name\": \"<string>\",\n \"plate_codes\": [\n \"<string>\"\n ]\n }\n ]\n }\n ],\n \"favorite_geography_sets\": [\n {\n \"name\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ],\n \"favorite_origin_cif_sets\": [\n {\n \"name\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ],\n \"favorite_origin_geography_sets\": [\n {\n \"name\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ],\n \"origin_saved_facilities\": [\n {\n \"cif\": \"<string>\",\n \"city_state\": {\n \"city\": \"<string>\",\n \"state_or_province\": \"<string>\"\n },\n \"equipment_profile_names\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"stccs\": [\n \"<string>\"\n ]\n }\n ],\n \"quotes_hide_duplicate_junctions\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-lg-k.arms.cedarai.com/shipper/quote-preferences")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-arms-api-key"] = '<api-key>'
request["x-arms-assume-user"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"destination_saved_facilities\": [\n {\n \"cif\": \"<string>\",\n \"city_state\": {\n \"city\": \"<string>\",\n \"state_or_province\": \"<string>\"\n },\n \"equipment_profile_names\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"stccs\": [\n \"<string>\"\n ]\n }\n ],\n \"favorite_commodity_sets\": [\n {\n \"name\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ],\n \"favorite_destination_cif_sets\": [\n {\n \"name\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ],\n \"favorite_destination_geography_sets\": [\n {\n \"name\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ],\n \"favorite_equipment_profile_sets\": [\n {\n \"name\": \"<string>\",\n \"profiles\": [\n {\n \"excluded_car_types\": [],\n \"excluded_marks\": [\n \"<string>\"\n ],\n \"included_marks\": [\n \"<string>\"\n ],\n \"measurements\": [\n {\n \"range\": {\n \"from\": 123,\n \"to\": 123\n }\n }\n ],\n \"name\": \"<string>\",\n \"plate_codes\": [\n \"<string>\"\n ]\n }\n ]\n }\n ],\n \"favorite_geography_sets\": [\n {\n \"name\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ],\n \"favorite_origin_cif_sets\": [\n {\n \"name\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ],\n \"favorite_origin_geography_sets\": [\n {\n \"name\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ],\n \"origin_saved_facilities\": [\n {\n \"cif\": \"<string>\",\n \"city_state\": {\n \"city\": \"<string>\",\n \"state_or_province\": \"<string>\"\n },\n \"equipment_profile_names\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"stccs\": [\n \"<string>\"\n ]\n }\n ],\n \"quotes_hide_duplicate_junctions\": true\n}"
response = http.request(request)
puts response.read_body{
"destination_saved_facilities": [
{
"cif": "<string>",
"city_state": {
"city": "<string>",
"state_or_province": "<string>"
},
"equipment_profile_names": [
"<string>"
],
"name": "<string>",
"stccs": [
"<string>"
]
}
],
"favorite_commodity_sets": [
{
"name": "<string>",
"values": [
"<string>"
]
}
],
"favorite_destination_cif_sets": [
{
"name": "<string>",
"values": [
"<string>"
]
}
],
"favorite_destination_geography_sets": [
{
"name": "<string>",
"values": [
"<string>"
]
}
],
"favorite_equipment_profile_sets": [
{
"name": "<string>",
"profiles": [
{
"car_type": "ALL_CAR_TYPES",
"excluded_car_types": [
"ALL_CAR_TYPES"
],
"excluded_marks": [
"<string>"
],
"included_marks": [
"<string>"
],
"measurements": [
{
"dimension": "OUTSIDE_LENGTH_INCHES",
"range": {
"from": 123,
"to": 123
}
}
],
"name": "<string>",
"ownership": "HIGHWAY_CARRIER",
"plate_codes": [
"<string>"
],
"special_car_type": "FLAT"
}
]
}
],
"favorite_geography_sets": [
{
"name": "<string>",
"values": [
"<string>"
]
}
],
"favorite_origin_cif_sets": [
{
"name": "<string>",
"values": [
"<string>"
]
}
],
"favorite_origin_geography_sets": [
{
"name": "<string>",
"values": [
"<string>"
]
}
],
"origin_saved_facilities": [
{
"cif": "<string>",
"city_state": {
"city": "<string>",
"state_or_province": "<string>"
},
"equipment_profile_names": [
"<string>"
],
"name": "<string>",
"stccs": [
"<string>"
]
}
],
"quotes_hide_duplicate_junctions": true
}{
"code": 123,
"details": [
{
"@type": "<string>"
}
],
"message": "<string>"
}Body
Legacy direction-agnostic geography sets. Retained for backward compatibility: these remain usable for BOTH origin and destination search until quote preferences are re-saved, after which favorites are stored separately as origin and destination sets and this list is emptied. New clients should read these in addition to the origin/destination lists, and write only the origin/destination lists.
Show child attributes
Show child attributes
When true, quote route search (ListQuotes) and the quote route typeahead (ListRoutes) hide routes that reuse an interchange junction — the same gateway appearing on more than one leg (for example UP-NEWOR-CSXT-NEWOR-NS, which doubles back through NEWOR). Defaults to true.
On UpdateQuotePreferences the stored value is written only when this field is present, so a client that omits it (for example a favorites-only save) never changes it.
Response
A successful response.
Legacy direction-agnostic geography sets. Retained for backward compatibility: these remain usable for BOTH origin and destination search until quote preferences are re-saved, after which favorites are stored separately as origin and destination sets and this list is emptied. New clients should read these in addition to the origin/destination lists, and write only the origin/destination lists.
Show child attributes
Show child attributes
When true, quote route search (ListQuotes) and the quote route typeahead (ListRoutes) hide routes that reuse an interchange junction — the same gateway appearing on more than one leg (for example UP-NEWOR-CSXT-NEWOR-NS, which doubles back through NEWOR). Defaults to true.
On UpdateQuotePreferences the stored value is written only when this field is present, so a client that omits it (for example a favorites-only save) never changes it.
Was this page helpful?
curl --request PUT \
--url https://api-lg-k.arms.cedarai.com/shipper/quote-preferences \
--header 'Content-Type: application/json' \
--header 'x-arms-api-key: <api-key>' \
--header 'x-arms-assume-user: <api-key>' \
--data '
{
"destination_saved_facilities": [
{
"cif": "<string>",
"city_state": {
"city": "<string>",
"state_or_province": "<string>"
},
"equipment_profile_names": [
"<string>"
],
"name": "<string>",
"stccs": [
"<string>"
]
}
],
"favorite_commodity_sets": [
{
"name": "<string>",
"values": [
"<string>"
]
}
],
"favorite_destination_cif_sets": [
{
"name": "<string>",
"values": [
"<string>"
]
}
],
"favorite_destination_geography_sets": [
{
"name": "<string>",
"values": [
"<string>"
]
}
],
"favorite_equipment_profile_sets": [
{
"name": "<string>",
"profiles": [
{
"excluded_car_types": [],
"excluded_marks": [
"<string>"
],
"included_marks": [
"<string>"
],
"measurements": [
{
"range": {
"from": 123,
"to": 123
}
}
],
"name": "<string>",
"plate_codes": [
"<string>"
]
}
]
}
],
"favorite_geography_sets": [
{
"name": "<string>",
"values": [
"<string>"
]
}
],
"favorite_origin_cif_sets": [
{
"name": "<string>",
"values": [
"<string>"
]
}
],
"favorite_origin_geography_sets": [
{
"name": "<string>",
"values": [
"<string>"
]
}
],
"origin_saved_facilities": [
{
"cif": "<string>",
"city_state": {
"city": "<string>",
"state_or_province": "<string>"
},
"equipment_profile_names": [
"<string>"
],
"name": "<string>",
"stccs": [
"<string>"
]
}
],
"quotes_hide_duplicate_junctions": true
}
'import requests
url = "https://api-lg-k.arms.cedarai.com/shipper/quote-preferences"
payload = {
"destination_saved_facilities": [
{
"cif": "<string>",
"city_state": {
"city": "<string>",
"state_or_province": "<string>"
},
"equipment_profile_names": ["<string>"],
"name": "<string>",
"stccs": ["<string>"]
}
],
"favorite_commodity_sets": [
{
"name": "<string>",
"values": ["<string>"]
}
],
"favorite_destination_cif_sets": [
{
"name": "<string>",
"values": ["<string>"]
}
],
"favorite_destination_geography_sets": [
{
"name": "<string>",
"values": ["<string>"]
}
],
"favorite_equipment_profile_sets": [
{
"name": "<string>",
"profiles": [
{
"excluded_car_types": [],
"excluded_marks": ["<string>"],
"included_marks": ["<string>"],
"measurements": [{ "range": {
"from": 123,
"to": 123
} }],
"name": "<string>",
"plate_codes": ["<string>"]
}
]
}
],
"favorite_geography_sets": [
{
"name": "<string>",
"values": ["<string>"]
}
],
"favorite_origin_cif_sets": [
{
"name": "<string>",
"values": ["<string>"]
}
],
"favorite_origin_geography_sets": [
{
"name": "<string>",
"values": ["<string>"]
}
],
"origin_saved_facilities": [
{
"cif": "<string>",
"city_state": {
"city": "<string>",
"state_or_province": "<string>"
},
"equipment_profile_names": ["<string>"],
"name": "<string>",
"stccs": ["<string>"]
}
],
"quotes_hide_duplicate_junctions": True
}
headers = {
"x-arms-api-key": "<api-key>",
"x-arms-assume-user": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {
'x-arms-api-key': '<api-key>',
'x-arms-assume-user': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({
destination_saved_facilities: [
{
cif: '<string>',
city_state: {city: '<string>', state_or_province: '<string>'},
equipment_profile_names: ['<string>'],
name: '<string>',
stccs: ['<string>']
}
],
favorite_commodity_sets: [{name: '<string>', values: ['<string>']}],
favorite_destination_cif_sets: [{name: '<string>', values: ['<string>']}],
favorite_destination_geography_sets: [{name: '<string>', values: ['<string>']}],
favorite_equipment_profile_sets: [
{
name: '<string>',
profiles: [
{
excluded_car_types: [],
excluded_marks: ['<string>'],
included_marks: ['<string>'],
measurements: [{range: {from: 123, to: 123}}],
name: '<string>',
plate_codes: ['<string>']
}
]
}
],
favorite_geography_sets: [{name: '<string>', values: ['<string>']}],
favorite_origin_cif_sets: [{name: '<string>', values: ['<string>']}],
favorite_origin_geography_sets: [{name: '<string>', values: ['<string>']}],
origin_saved_facilities: [
{
cif: '<string>',
city_state: {city: '<string>', state_or_province: '<string>'},
equipment_profile_names: ['<string>'],
name: '<string>',
stccs: ['<string>']
}
],
quotes_hide_duplicate_junctions: true
})
};
fetch('https://api-lg-k.arms.cedarai.com/shipper/quote-preferences', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-lg-k.arms.cedarai.com/shipper/quote-preferences",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'destination_saved_facilities' => [
[
'cif' => '<string>',
'city_state' => [
'city' => '<string>',
'state_or_province' => '<string>'
],
'equipment_profile_names' => [
'<string>'
],
'name' => '<string>',
'stccs' => [
'<string>'
]
]
],
'favorite_commodity_sets' => [
[
'name' => '<string>',
'values' => [
'<string>'
]
]
],
'favorite_destination_cif_sets' => [
[
'name' => '<string>',
'values' => [
'<string>'
]
]
],
'favorite_destination_geography_sets' => [
[
'name' => '<string>',
'values' => [
'<string>'
]
]
],
'favorite_equipment_profile_sets' => [
[
'name' => '<string>',
'profiles' => [
[
'excluded_car_types' => [
],
'excluded_marks' => [
'<string>'
],
'included_marks' => [
'<string>'
],
'measurements' => [
[
'range' => [
'from' => 123,
'to' => 123
]
]
],
'name' => '<string>',
'plate_codes' => [
'<string>'
]
]
]
]
],
'favorite_geography_sets' => [
[
'name' => '<string>',
'values' => [
'<string>'
]
]
],
'favorite_origin_cif_sets' => [
[
'name' => '<string>',
'values' => [
'<string>'
]
]
],
'favorite_origin_geography_sets' => [
[
'name' => '<string>',
'values' => [
'<string>'
]
]
],
'origin_saved_facilities' => [
[
'cif' => '<string>',
'city_state' => [
'city' => '<string>',
'state_or_province' => '<string>'
],
'equipment_profile_names' => [
'<string>'
],
'name' => '<string>',
'stccs' => [
'<string>'
]
]
],
'quotes_hide_duplicate_junctions' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-arms-api-key: <api-key>",
"x-arms-assume-user: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api-lg-k.arms.cedarai.com/shipper/quote-preferences"
payload := strings.NewReader("{\n \"destination_saved_facilities\": [\n {\n \"cif\": \"<string>\",\n \"city_state\": {\n \"city\": \"<string>\",\n \"state_or_province\": \"<string>\"\n },\n \"equipment_profile_names\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"stccs\": [\n \"<string>\"\n ]\n }\n ],\n \"favorite_commodity_sets\": [\n {\n \"name\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ],\n \"favorite_destination_cif_sets\": [\n {\n \"name\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ],\n \"favorite_destination_geography_sets\": [\n {\n \"name\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ],\n \"favorite_equipment_profile_sets\": [\n {\n \"name\": \"<string>\",\n \"profiles\": [\n {\n \"excluded_car_types\": [],\n \"excluded_marks\": [\n \"<string>\"\n ],\n \"included_marks\": [\n \"<string>\"\n ],\n \"measurements\": [\n {\n \"range\": {\n \"from\": 123,\n \"to\": 123\n }\n }\n ],\n \"name\": \"<string>\",\n \"plate_codes\": [\n \"<string>\"\n ]\n }\n ]\n }\n ],\n \"favorite_geography_sets\": [\n {\n \"name\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ],\n \"favorite_origin_cif_sets\": [\n {\n \"name\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ],\n \"favorite_origin_geography_sets\": [\n {\n \"name\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ],\n \"origin_saved_facilities\": [\n {\n \"cif\": \"<string>\",\n \"city_state\": {\n \"city\": \"<string>\",\n \"state_or_province\": \"<string>\"\n },\n \"equipment_profile_names\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"stccs\": [\n \"<string>\"\n ]\n }\n ],\n \"quotes_hide_duplicate_junctions\": true\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-arms-api-key", "<api-key>")
req.Header.Add("x-arms-assume-user", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api-lg-k.arms.cedarai.com/shipper/quote-preferences")
.header("x-arms-api-key", "<api-key>")
.header("x-arms-assume-user", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"destination_saved_facilities\": [\n {\n \"cif\": \"<string>\",\n \"city_state\": {\n \"city\": \"<string>\",\n \"state_or_province\": \"<string>\"\n },\n \"equipment_profile_names\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"stccs\": [\n \"<string>\"\n ]\n }\n ],\n \"favorite_commodity_sets\": [\n {\n \"name\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ],\n \"favorite_destination_cif_sets\": [\n {\n \"name\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ],\n \"favorite_destination_geography_sets\": [\n {\n \"name\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ],\n \"favorite_equipment_profile_sets\": [\n {\n \"name\": \"<string>\",\n \"profiles\": [\n {\n \"excluded_car_types\": [],\n \"excluded_marks\": [\n \"<string>\"\n ],\n \"included_marks\": [\n \"<string>\"\n ],\n \"measurements\": [\n {\n \"range\": {\n \"from\": 123,\n \"to\": 123\n }\n }\n ],\n \"name\": \"<string>\",\n \"plate_codes\": [\n \"<string>\"\n ]\n }\n ]\n }\n ],\n \"favorite_geography_sets\": [\n {\n \"name\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ],\n \"favorite_origin_cif_sets\": [\n {\n \"name\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ],\n \"favorite_origin_geography_sets\": [\n {\n \"name\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ],\n \"origin_saved_facilities\": [\n {\n \"cif\": \"<string>\",\n \"city_state\": {\n \"city\": \"<string>\",\n \"state_or_province\": \"<string>\"\n },\n \"equipment_profile_names\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"stccs\": [\n \"<string>\"\n ]\n }\n ],\n \"quotes_hide_duplicate_junctions\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-lg-k.arms.cedarai.com/shipper/quote-preferences")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-arms-api-key"] = '<api-key>'
request["x-arms-assume-user"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"destination_saved_facilities\": [\n {\n \"cif\": \"<string>\",\n \"city_state\": {\n \"city\": \"<string>\",\n \"state_or_province\": \"<string>\"\n },\n \"equipment_profile_names\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"stccs\": [\n \"<string>\"\n ]\n }\n ],\n \"favorite_commodity_sets\": [\n {\n \"name\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ],\n \"favorite_destination_cif_sets\": [\n {\n \"name\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ],\n \"favorite_destination_geography_sets\": [\n {\n \"name\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ],\n \"favorite_equipment_profile_sets\": [\n {\n \"name\": \"<string>\",\n \"profiles\": [\n {\n \"excluded_car_types\": [],\n \"excluded_marks\": [\n \"<string>\"\n ],\n \"included_marks\": [\n \"<string>\"\n ],\n \"measurements\": [\n {\n \"range\": {\n \"from\": 123,\n \"to\": 123\n }\n }\n ],\n \"name\": \"<string>\",\n \"plate_codes\": [\n \"<string>\"\n ]\n }\n ]\n }\n ],\n \"favorite_geography_sets\": [\n {\n \"name\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ],\n \"favorite_origin_cif_sets\": [\n {\n \"name\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ],\n \"favorite_origin_geography_sets\": [\n {\n \"name\": \"<string>\",\n \"values\": [\n \"<string>\"\n ]\n }\n ],\n \"origin_saved_facilities\": [\n {\n \"cif\": \"<string>\",\n \"city_state\": {\n \"city\": \"<string>\",\n \"state_or_province\": \"<string>\"\n },\n \"equipment_profile_names\": [\n \"<string>\"\n ],\n \"name\": \"<string>\",\n \"stccs\": [\n \"<string>\"\n ]\n }\n ],\n \"quotes_hide_duplicate_junctions\": true\n}"
response = http.request(request)
puts response.read_body{
"destination_saved_facilities": [
{
"cif": "<string>",
"city_state": {
"city": "<string>",
"state_or_province": "<string>"
},
"equipment_profile_names": [
"<string>"
],
"name": "<string>",
"stccs": [
"<string>"
]
}
],
"favorite_commodity_sets": [
{
"name": "<string>",
"values": [
"<string>"
]
}
],
"favorite_destination_cif_sets": [
{
"name": "<string>",
"values": [
"<string>"
]
}
],
"favorite_destination_geography_sets": [
{
"name": "<string>",
"values": [
"<string>"
]
}
],
"favorite_equipment_profile_sets": [
{
"name": "<string>",
"profiles": [
{
"car_type": "ALL_CAR_TYPES",
"excluded_car_types": [
"ALL_CAR_TYPES"
],
"excluded_marks": [
"<string>"
],
"included_marks": [
"<string>"
],
"measurements": [
{
"dimension": "OUTSIDE_LENGTH_INCHES",
"range": {
"from": 123,
"to": 123
}
}
],
"name": "<string>",
"ownership": "HIGHWAY_CARRIER",
"plate_codes": [
"<string>"
],
"special_car_type": "FLAT"
}
]
}
],
"favorite_geography_sets": [
{
"name": "<string>",
"values": [
"<string>"
]
}
],
"favorite_origin_cif_sets": [
{
"name": "<string>",
"values": [
"<string>"
]
}
],
"favorite_origin_geography_sets": [
{
"name": "<string>",
"values": [
"<string>"
]
}
],
"origin_saved_facilities": [
{
"cif": "<string>",
"city_state": {
"city": "<string>",
"state_or_province": "<string>"
},
"equipment_profile_names": [
"<string>"
],
"name": "<string>",
"stccs": [
"<string>"
]
}
],
"quotes_hide_duplicate_junctions": true
}{
"code": 123,
"details": [
{
"@type": "<string>"
}
],
"message": "<string>"
}