Units LIST
GEThttps://sandbox.absmartly.com/v1/unit_types
Required Permissions: UnitType List
or UnitType Admin
Request
Query Parameters
sort string
The object key to sort the results by.
sort_asc boolean
page integer
items integer
Responses
- 200
A JSON Object containing an array of all units.
- application/json
- Schema
- Example (from schema)
Schema
items integer
page integer
Possible values: >= 1
total integer
unit_types object[]
{
"items": 0,
"page": 0,
"total": 0,
"unit_types": [
{
"id": 0,
"name": "user_id",
"description": "The ids of our users",
"created_at": "2024-12-12T13:15:10.507Z",
"created_by_user_id": 0,
"updated_at": "2024-12-12T13:15:10.507Z",
"updated_by_user_id": 0,
"created_by": {
"archived": false,
"avatar": {},
"avatar_file_upload_url": "/cropUrl/100x100/1.png",
"created_at": "2024-12-12T13:15:10.507Z",
"created_by_user_id": 0,
"department": "Marketing",
"email": "user@example.com"
},
"archived": false
}
]
}
Authorization: Authorization
name: Authorizationtype: apiKeyin: headerdescription: A User API Key for API authorization. **Must be in the format "Api-Key your_user_api_key"**scheme: ^Api-Key\s\S+
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L -X GET 'https://sandbox.absmartly.com/v1/unit_types' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>'
ResponseClear