Api Accounts Create

POST handler with superadmin-only field protection.

Strips superadmin-only fields from non-superadmin requests before delegating to OrganizationInjectionMixin.post() for org injection.

Authentication

AuthorizationBearer
JWT access token or Respan API key

Request

This endpoint expects an object.
emailstringRequired1-255 characters
passwordstringRequired>=8 characters
namestringOptional<=255 characters
usernamestringOptional<=255 characters
first_namestringOptional<=50 characters
last_namestringOptional<=50 characters
is_activebooleanOptional
organization_namestring or nullOptionalDefaults to Test Org
create_organizationbooleanOptionalDefaults to true

Response

idintegerRead-only
emailstring<=255 characters
created_atdatetimeRead-only
organizationobject

DEV-10098: the “Customize retention policy” toggle IS the override’s presence.

Organization.is_custom_retention_enabled was never read by enforce_data_retention — the cron only ever min()s logs_retention_period_in_days with the plan window — so switching the toggle off left the stale override silently hard-deleting on the old (shorter) window while the page claimed the plan default. The column is retired; the wire field of the same name keeps its shape but is now DERIVED from the override, so what the page renders is what the cron enforces.

namestring<=255 characters
usernamestring<=255 characters
first_namestring<=50 characters
last_namestring<=50 characters
is_activeboolean