Get all locations

GET https://api.expirationreminder.net/v1/locations

Query Parameters

term stringOptional

Default:

page integerOptional

Default: -1

paging integerOptional

Default: -1

sort stringOptional

Default:

sortDirection stringOptional

Default: asc

GET /v1/locations
$ curl https://api.expirationreminder.net/v1/locations \
  -H "Authorization: Bearer <token>"

Responses

Property Type Description
locations object[] -
pages integer (int32) -
page integer (int32) -
total integer (int32) -

Example Response

{
  "locations": [
    {
    "id": "00000000-0000-0000-0000-000000000000",
    "parent_location_id": "00000000-0000-0000-0000-000000000000",
    "name": "string",
    "team_id": "00000000-0000-0000-0000-000000000000",
    "modified": "string",
    "custom_fields": [
    {
    "id": "00000000-0000-0000-0000-000000000000",
    "name": "string",
    "value": "string"
  }
  ]
  }
  ],
  "pages": 0,
  "page": 0,
  "total": 0
}

Bad Request

Property Type Description
message string -
ok boolean -

Example Response

{
  "message": "string",
  "ok": false
}
An unhandled error has occurred. Reload 🗙

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.