Skip to main content
POST

Authorizations

x-arms-api-key
string
header
required

Your ARMS API key

x-arms-assume-user
string
header
required

Email of a user assigned to the appropriate user group

Query Parameters

carrierId
integer
required

Carrier identifier; required for all endpoints

viewAsUserGroup
string

Optional user group context

Body

application/json

Input for classifying a class list (switch list) from a list of car numbers.

carrierId
integer
required

Carrier identifier.

equipmentInitialAndNumbers
string[]
required

Equipment initial and numbers to classify, e.g. ['BNSF 999001', 'UP 999010']. Order is preserved in the resulting class list and is also used for capacity accounting.

Minimum array length: 1
scope
string

Block-to-track scope to use. Real-world scopes are usually named after the lead and shift the crew is working (for example yard1_first_shift or mainyard_lead_morning). If omitted, the first scope accessible to the caller is used. Values that do not start with block2track_ are automatically prefixed (so yard1_first_shift and block2track_yard1_first_shift are equivalent). A scope that is not configured for the carrier is rejected with 400 Bad Request.

jobId
string

User-specified label for the class list. Carriers commonly pass the train or job number the crew is working (for example 350 or MORNING-JOB-12). If omitted, a label like Classify <UTC timestamp> is generated.

isBack
boolean
default:false

True if switching from the back of the track. Defaults to false.

Response

OK

A class list (switch list) represents a work order for switching operations.

resourceId
integer
uuid
string

UUID that complements the legacy numeric resourceId.

jobId
string

User-specified label for the class list

status
enum<string>

Status of the class list

Available options:
ACTIVE,
ARCHIVED
createdAt
string<date-time>

When the class list was created

cuts
integer[]

Cut positions in the class list

isBack
boolean

True if switching from the back of the track

carrier
object
createdBy
object