get
https://api.duodeal.app/api/unities/
Retrieves a single unit of measure by its ID.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | Unity unique identifier |
Response Fields
| Field | Type | Description |
|---|---|---|
id | integer | Unity unique identifier |
name | string | Unit name (e.g., "Unit", "Hour", "Day") |
byDefault | boolean | Whether this is the default unit |
createdAt | datetime | Creation timestamp |
updatedAt | datetime | Last update timestamp |
Response
200 OK: Returns the unity details401 Unauthorized: Invalid or missing API key404 Not Found: Unity not found
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
200Successful response
401Unauthorized
