Skip to main content
POST
/
tasks
/
create-and-assign
Create And Assign Task
curl --request POST \
  --url https://api.example.com/tasks/create-and-assign/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "group_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "instruction": "<string>",
  "parent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "assignee": "<string>",
  "plan": {
    "tool": "<string>",
    "rationale": "<string>",
    "expectation": "<string>"
  },
  "conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "cancel_requested": false,
  "context": {},
  "task_template_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "organisation_id": "<string>",
  "conversation_ctx": {
    "entities": []
  }
}
'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "group_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "instruction": "<string>",
  "organisation_id": "<string>",
  "result": "<string>",
  "effectiveness": {
    "assessment": "<string>",
    "implications": "<string>",
    "is_complete": false
  },
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "parent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "assignee": "<string>",
  "plan": {
    "tool": "<string>",
    "rationale": "<string>",
    "expectation": "<string>"
  },
  "conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "cancel_requested": false,
  "context": {},
  "task_template_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Api-key
string | null

Body

application/json
id
string<uuid>
required
group_id
string<uuid>
required
instruction
string
required
parent_id
string<uuid> | null
name
string | null
assignee
string | null
plan
Plan · object
conversation_id
string<uuid> | null
cancel_requested
boolean
default:false
context
Context · object
task_template_id
string<uuid> | null
organisation_id
string | null
conversation_ctx
ConversationContext · object

Response

Successful Response

id
string<uuid>
required
group_id
string<uuid>
required
instruction
string
required
organisation_id
string
required
result
string | null
required
effectiveness
ResultEffectiveness · object
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
parent_id
string<uuid> | null
name
string | null
assignee
string | null
plan
Plan · object
conversation_id
string<uuid> | null
cancel_requested
boolean
default:false
context
Context · object
task_template_id
string<uuid> | null