Create Record
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, or None for anonymous. auth_context: Authorization context for permission checking. session: Database session.
Returns: The created record with all fields including system fields.
Body
The body is of type Data · object.
Response
Successful Response
Response for a created or retrieved record.
Contains all system fields plus user-defined fields.