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": {}
}
]
}Request Structure
{
"sequence": 2
}
2, shuffling the other drops on the load accordingly. The body is a flat object (not a JSON:API envelope).Authorizations
OAuth 2.0 authentication. Use the client credentials or authorization code flow to obtain an access token.
FlowAuthorization Code
- Authorization URL
- https://clarus-api.com/oauth/authorize
- Token URL
- https://clarus-api.com/oauth/token
FlowClient Credentials
- Token URL
- https://clarus-api.com/oauth/token
The subdomain/tenant name identifying which tenant's data to access. Required for all API requests.
Path Parameters
The unique identifier of the load drop to reorder
Body
application/json
Target stop position for the drop within its load
Required range:
x >= 0Response
Operation completed successfully with no content to return

