Create a new record in a collection.
Validates the request data against the collection schema, auto-generates a record ID, and sets system fields (account_id, created_at, created_by).
Args: collection: The collection name (from URL path). data: The record data (request body). May include ‘account_id’ for superadmins. current_user: The authenticated user. auth_context: Authorization context for permission checking. session: Database session.
Returns: The created record with all fields including system fields.
The body is of type Data · object.
Successful Response
Response for a created or retrieved record.
Contains all system fields plus user-defined fields.
Record ID (UUID)
Account ID the record belongs to
ISO 8601 timestamp when record was created
User ID who created the record
ISO 8601 timestamp when record was last updated
User ID who last updated the record
Display name for the account (optional)