-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Implement create endpoint.
Base path: /api/v2/organizations/{org}/members/{user}
Behavior
- Body:
{ name?, template_id? | recipe_id?, parameters?: { [k]: string }, input?: string }
- Require one of
template_id
orrecipe_id
. - Map
input
to prompt parameter (TBD constant). - Generate name if absent.
- Return task details.
- MVP: template-based creation first, recipe-based creation post-MVP.
Request model
name?
: stringtemplate_id?
: uuidrecipe_id?
: uuid (post-MVP)parameters?
: map[string]stringinput?
: string (shorthand for prompt)
Response model (task)
id
: uuidorganization_id
: uuidowner_id
: uuiddisplay_name
: stringtemplate_id
: uuidrecipe_id?
: uuid (post-MVP)workspace_id?
: uuidstatus
:queued | working | idle | paused | completed | failed
created_at
,updated_at
,started_at?
,completed_at?
last_error?
: string
References: #838