Reorder a load drop
curl --request PATCH \
--url https://clarus-api.com/api/load_drops/{id}/sequence \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Clarus-Subdomain: <api-key>' \
--data '{
"sequence": 2
}'import requests
url = "https://clarus-api.com/api/load_drops/{id}/sequence"
payload = { "sequence": 2 }
headers = {
"Authorization": "Bearer <token>",
"X-Clarus-Subdomain": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'X-Clarus-Subdomain': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({sequence: 2})
};
fetch('https://clarus-api.com/api/load_drops/{id}/sequence', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": "<string>"
}{
"errors": [
{
"code": 123,
"symbol": "<string>",
"details": "<string>",
"source": "<string>",
"context": {}
}
]
}{
"errors": [
{
"code": 123,
"symbol": "<string>",
"details": "<string>",
"source": "<string>",
"context": {}
}
]
}Load Drops
Reorder a load drop
Move a load drop to an absolute stop position within its load. The other drops on the load are re-sequenced automatically. Send the target position as a top-level sequence integer.
PATCH
/
api
/
load_drops
/
{id}
/
sequence
Reorder a load drop
curl --request PATCH \
--url https://clarus-api.com/api/load_drops/{id}/sequence \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Clarus-Subdomain: <api-key>' \
--data '{
"sequence": 2
}'import requests
url = "https://clarus-api.com/api/load_drops/{id}/sequence"
payload = { "sequence": 2 }
headers = {
"Authorization": "Bearer <token>",
"X-Clarus-Subdomain": "<api-key>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {
Authorization: 'Bearer <token>',
'X-Clarus-Subdomain': '<api-key>',
'Content-Type': 'application/json'
},
body: JSON.stringify({sequence: 2})
};
fetch('https://clarus-api.com/api/load_drops/{id}/sequence', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"error": "<string>"
}{
"errors": [
{
"code": 123,
"symbol": "<string>",
"details": "<string>",
"source": "<string>",
"context": {}
}
]
}{
"errors": [
{
"code": 123,
"symbol": "<string>",
"details": "<string>",
"source": "<string>",
"context": {}
}
]
}
