GET
/
units
curl -X GET \
 /units \
 --header "Authorization: Bearer <token>"
{
  "data": [
    {
      "id": {},
      "name": "Stück",
      "createdAt": "2021-01-01T00:00:00+00:00",
      "updatedAt": "2021-01-01T00:00:00+00:00"
    }
  ],
  "meta": {
    "pagination": {
      "totalItems": 123,
      "itemsPerPage": 123,
      "currentPage": 123,
      "lastPage": 123,
      "pageTotalItems": 123
    }
  }
}

Authorizations

Authorization
string
header
required

Value for the Authorization header parameter.

Query Parameters

locale
string

Defines the locale to use for translations. Defaults to tenant locale.

page
integer
default:
1

The collection page number

limit
integer
default:
30

The number of items per page

Required range: 0 < x < 100
groups[]
enum<string>[]
Available options:
translations

Response

200
application/json
Unit collection
data
object[]
meta
object