Skip to main content
GET
Get Enum Values

Get Enum Values

Returns all valid values for a named Nexudus enumeration. Enums are used throughout the platform to represent fixed sets of choices — for example, invoice status, resource types, booking states, or delivery status. The portal uses this endpoint to build dropdowns and validate field values dynamically.

Authentication

Requires a valid customer bearer token.

Query Parameters

name
string
required
The name of the enumeration to retrieve. This must match the exact server-side enum name (e.g. "InvoiceStatus", "ResourceType").

Response

Returns an array of enum entry objects. The exact shape depends on the enum requested, but each entry typically includes:
Id
number
Numeric value of the enum entry (as stored in the database).
Name
string
Machine-readable key for the enum entry.
Label
string
Human-readable localised label for display in the UI.

Example Response

TypeScript Integration

Usage in Portal

Error Responses

400 Bad Request
error
The name parameter is missing or does not match a known server-side enum.
401 Unauthorized
error
The bearer token is missing, expired, or invalid.