Request Body
The request body should be a JSON object with the following fields:Field | Type | Required | Description |
---|---|---|---|
eventId | string | Yes | The ID of the event to create the task on |
description | string | Yes | The task description |
dueDate | string | No | Due date for the task in ISO 8601 format (e.g., 2025-10-20T00:00:00Z ) |
Example Request
Example Response
Response Fields
Field | Type | Description |
---|---|---|
success | boolean | Whether the task was created successfully |
task.id | string | Unique identifier for the created task |
task.description | string | The task description |
task.dueDate | string | null | Due date in ISO 8601 format, or null if not provided |
task.eventId | string | ID of the event this task belongs to |
task.completed | boolean | Whether the task is completed (always false for new tasks) |
task.createdAt | string | Timestamp when the task was created |
Common Use Cases
- Automatically create follow-up tasks from external systems
- Trigger task creation based on booking events or customer actions
- Bulk import tasks from spreadsheets or other systems
- Automatically create additional tasks after event booking
Error Responses
400 Bad Request - Invalid request body or date formatNotes
Date format must be valid ISO 8601 (e.g.,2025-10-20T00:00:00Z
)