GET /api/v1/region/:region/location_machine_xrefs.json
Get all machines at locations in a single region. This is a legacy endpoint, and it was very bloated and has since been reduced. It is better to use the locations.json endpoint if you want more location and machine info

Supported Formats

json

Params

Param name Description
region
required

Name of the Region you want to see machines for

Validations:

  • Must be a String


GET /api/v1/location_machine_xrefs/:id.json
Get info about a single lmx

Supported Formats

json

Params

Param name Description
id
required

The location machine ID (LMX ID)

Validations:

  • Must be a Integer

user_id
optional

Limits scores (not comments) to a single user. If user ID param is 0, excludes all scores.

Validations:

  • Must be a Integer

all_scores
optional

Set to 1 alongside user_id to return the user’s top scores under machine_score_xrefs_user and the top scores from all users under machine_score_xrefs_all (both max 10, sorted by score), instead of machine_score_xrefs. Also returns machine_score_xrefs_all_only_user, which is true when every score in machine_score_xrefs_all belongs to this user (the two lists are identical). With user_id=0, machine_score_xrefs_user is empty. Ignored without user_id.

Validations:

  • Must be a Integer


POST /api/v1/location_machine_xrefs.json
Find or create a machine at a location

Supported Formats

json

Params

Param name Description
location_id
required

Location ID to add machine to

Validations:

  • Must be a Integer

machine_id
required

Machine ID to add to location

Validations:

  • Must be a Integer

condition
optional

Notes on machine’s condition

Validations:

  • Must be a String


PUT /api/v1/location_machine_xrefs/:id.json
Update a machine's condition at a location

Supported Formats

json

Params

Param name Description
id
required

LMX id

Validations:

  • Must be a Integer

condition
required

Notes on machine’s condition

Validations:

  • Must be a String


DESTROY /api/v1/location_machine_xrefs/:id.json
Remove a machine from a location

Supported Formats

json

Params

Param name Description
id
required

LMX id

Validations:

  • Must be a Integer


GET /api/v1/location_machine_xrefs/top_n_machines.json
Show the top N machines on location

Supported Formats

json

Params

Param name Description
n
optional

Number of machines to show

Validations:

  • Must be a String


GET /api/v1/location_machine_xrefs/most_recent_by_lat_lon.json
Returns the most recently added machines near transmitted lat/lon

This sends you the most recent machines added near your lat/lon (defaults to within 50 miles).

Supported Formats

json

Params

Param name Description
lat
required

Latitude

Validations:

  • Must be a String

lon
required

Longitude

Validations:

  • Must be a String

max_distance
optional

Closest location within “max_distance” miles, with a max of 500

Validations:

  • Must be a String


PUT /api/v1/location_machine_xrefs/:location_machine_xref_id/ic_toggle.json
Toggle a machine's Insider Connected status

Supported Formats

json

Params

Param name Description
location_machine_xref_id
required

LMX id

Validations:

  • Must be a Integer

ic_enabled
optional

Sets the Insider Connected status for this machine

Validations:

  • Must be one of: true, false, 1, 0.