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": [
{
"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": [
{
"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: [
{
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' => [
[
'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 \"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 \"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 \"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": [
{
"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
}{
"code": 123,
"details": [
{
"@type": "<string>"
}
],
"message": "<string>"
}Body
Saved facilities favorited as quote destinations; counterpart of origin_saved_facilities.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
CIF customer sets favorited as quote destinations; counterpart of favorite_origin_cif_sets.
Show child attributes
Show child attributes
Geography sets favorited specifically as quote destinations.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Legacy direction-agnostic geography sets. Retained for backward compatibility: these remain usable for BOTH origin and destination search until the carrier re-saves quote preferences, 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
CIF customer sets favorited as quote origins. Values are 9-digit CIFs, optionally followed by a 4-digit sub-location suffix (13 digits total).
Show child attributes
Show child attributes
Geography sets favorited specifically as quote origins.
Show child attributes
Show child attributes
Saved facilities favorited as quote origins; narrow the commodity and equipment choices when the selected origin is one of them.
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 (e.g. UP-NEWOR-CSXT-NEWOR-NS, which doubles back through NEWOR). Stored on the carrier row; defaults to true. Explicit presence: on UpdateQuotePreferences the carrier row is written only when this field is set, so a client that omits it (e.g. a favorites-only save) never flips the stored value. This is the canonical home for the toggle; the deprecated ShipperSettings.quotes_hide_duplicate_junctions reads/writes the same carrier column. See DEV-7011.
Response
A successful response.
Saved facilities favorited as quote destinations; counterpart of origin_saved_facilities.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
CIF customer sets favorited as quote destinations; counterpart of favorite_origin_cif_sets.
Show child attributes
Show child attributes
Geography sets favorited specifically as quote destinations.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Legacy direction-agnostic geography sets. Retained for backward compatibility: these remain usable for BOTH origin and destination search until the carrier re-saves quote preferences, 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
CIF customer sets favorited as quote origins. Values are 9-digit CIFs, optionally followed by a 4-digit sub-location suffix (13 digits total).
Show child attributes
Show child attributes
Geography sets favorited specifically as quote origins.
Show child attributes
Show child attributes
Saved facilities favorited as quote origins; narrow the commodity and equipment choices when the selected origin is one of them.
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 (e.g. UP-NEWOR-CSXT-NEWOR-NS, which doubles back through NEWOR). Stored on the carrier row; defaults to true. Explicit presence: on UpdateQuotePreferences the carrier row is written only when this field is set, so a client that omits it (e.g. a favorites-only save) never flips the stored value. This is the canonical home for the toggle; the deprecated ShipperSettings.quotes_hide_duplicate_junctions reads/writes the same carrier column. See DEV-7011.
Related topics
Get Quote PreferencesUpdate a noteList Shipper QuotesGet Shipper QuoteUpdate equipment notesWas 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": [
{
"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": [
{
"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: [
{
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' => [
[
'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 \"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 \"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 \"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": [
{
"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
}{
"code": 123,
"details": [
{
"@type": "<string>"
}
],
"message": "<string>"
}