Create a new record
POST/api/v1/orgs/:orgID/datasets/:datasetID/records
Create a new record in a specific dataset for an organization.
Data Field Structure:
The data field is a map where keys are field IDs and values depend on field type:
Supported Field Types:
- text - Single or multi-line text input
- number - Numeric values (integers, decimals)
- date - Date only (YYYY-MM-DD format)
- datetime - Date and time (ISO 8601 format)
- select - Single choice dropdown
- multiselect - Multiple choice selection
- progress-tracker - Workflow states with progression tracking
- relationship - Links to other records in the system
- event-markers - Track phases of a live event
Notes:
- The
createdAtfield is optional. If not provided, it will be set to the current time. - Progress tracker
statesare optional. If only thecurrentStateIdis provided, thestateswill be automatically populated with the current time.
Example Data Field:
{
"field_text": "Sample text",
"field_number": 42.5,
"field_date": "2024-01-15",
"field_datetime": "2024-01-15T10:30:00Z",
"field_select": "option_123",
"field_multiselect": ["option_1", "option_2"],
"field_progress_simple": {"currentStateId": "in_progress"},
"field_progress_detailed": {"currentStateId": "in_progress", "states": {"state_1": {"startTime": "2024-01-15T10:30:00Z"}, "in_progress": {"startTime": "2024-01-15T10:30:00Z"}}},
"field_relationship": [{"relatedRecordId": "record_456"}],
"field_events": {"markers": [{"id": "event_1", "label": "Milestone reached"}]}
}
Request
Responses
- 201
- 400
- 401
- 500
Record created successfully
Bad request - Invalid request body or validation error
Unauthorized - User does not have permission to create records
Internal server error