Library

Create a unit

Create a workspace unit. Built-in units cannot be changed.

post/library/units

Request

  • Base URL: https://next-api.saturation.io/v1
  • URL: https://next-api.saturation.io/v1/library/units
  • Auth: HTTP bearer

Headers

Idempotency-Keystring required

Unique request key, 16 to 255 characters. Retrying the same request returns the first response. Missing or invalid keys return 400 validation; reuse with a different body returns 409 idempotency_conflict.

Request body

labelstring required
pluralLabelstring nullable
category'time' | 'quantity' | 'flat'
hoursPerUnitnumber nullable
colorstring nullable
descriptionstring

Response

The created unit.

idstring required

Unit ID.

labelstring required
pluralLabelstring nullable required
category'time' | 'quantity' | 'flat' required
hoursPerUnitnumber nullable required
colorstring nullable required
descriptionstring nullable
isCustomboolean required
createdAtstring date-time

Creation time for a workspace unit.

updatedAtstring date-time

Last update time for a workspace unit.

Changes

No operation changes recorded.