put
https://api.duodeal.app/api/unities/
Updates an existing unit of measure by its ID.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | integer | Yes | Unity unique identifier |
Body Fields
| Field | Type | Required | Description |
|---|---|---|---|
name | string | No | Unit name |
byDefault | boolean | No | Set as default unit |
Response Fields
| Field | Type | Description |
|---|---|---|
id | integer | Unity unique identifier |
name | string | Unit name |
byDefault | boolean | Whether this is the default unit |
createdAt | datetime | Creation timestamp |
updatedAt | datetime | Last update timestamp |
Response
200 OK: Unity successfully updated400 Bad Request: Invalid request body or validation error401 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…
200Resource updated
400Bad request
401Unauthorized
404Resource not found
