v4

latestOpenAPI 3.1.02026-08-03427198448.4 KB
agent-scheduled-tasks

Create Custom Prompt Task

Create a new custom prompt scheduled task.

This creates a scheduled task definition with routine_type='custom_prompt' and stores the user's custom prompt in the agent_scheduled_task_prompts table.

post/api/agent-scheduled-tasks/custom-prompt

Query parameters

user_idstring
org_idstring

Request body

display_namestring required
schedule_typestring required
schedule_configobject required
configobject
promptstring required
context_entitiesobject[] nullable
timezonestring nullable
email_resultsboolean

Response

Successful Response

{"stackTrail":"paths:/api/agent-scheduled-tasks/custom-prompt:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}