Create Work Routine
POST /work/routines
Create one routine.
deliveryConversationId must be a conversation this credential can read —
otherwise a routine would be a way to post into a room its author cannot
see, and it is refused with the same 403 reading that room would give.
triggerKind: "schedule" takes weekdays + localTime + timezone;
triggerKind: "event" takes a trigger config and an optional
eventPolicy instead. The creator comes from the authenticated principal.
Authorizations
Parameters
Header Parameters
Request Body required
One routine to create. Identity is never expressible here.
object
Agent that runs the routine
Conversation the routine posts into; must be readable by the caller
Whether the routine starts active
What the agent is asked to do each run
IANA timezone the local time is read in
What the routine is called
schedule or event
Responses
201
Successful Response
object
One routine, as the create and update operations return it.
object
The routine as stored after the write
object
422
Validation Error