POST
/
editor
/
v1
/
tasks
/
{taskType}
curl --request POST \
  --url https://api.aceaicompany.com/editor/v1/tasks/{taskType} \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "customer": "<string>",
  "editor": "<string>",
  "owner": "<string>",
  "repo": "<string>",
  "sha": "<string>",
  "repository_id": 123,
  "as_of_date": "2023-11-07T05:31:56Z",
  "question": "<string>",
  "expected_answer": "<string>",
  "expected_evidence": [
    {
      "path": "<string>",
      "startLine": 123,
      "endLine": 123,
      "about": "<string>",
      "htmlUrl": "<string>"
    }
  ]
}'
{
  "result": "<string>"
}

Purpose: Creates a new task of the specified type. The request payload must include details such as name, customer, owner, repo, repository_id, as_of_date, question, expected_answer, and expected_evidence.

Path Parameters

taskType
string
required

The type of task to create (e.g. 'ellipsis-tier2-task').

Body

application/json
Payload containing the details of the task to create.

Request payload for creating a new ellipsis tier 2 task.

name
string
required

Name of the task.

customer
string
required

Customer name.

owner
string
required

Owner of the task.

repo
string
required

Repository name.

repository_id
integer
required

Repository ID.

as_of_date
string
required

Date as of which the task is valid.

question
string
required

The task question.

expected_answer
string
required

The expected answer for the task.

expected_evidence
object[]
required

Expected evidence details.

editor
string | null

Editor assigned (optional).

sha
string | null

Git commit SHA.

Response

200
application/json
Task created successfully.

Response after creating a new task.

result
string
required

A confirmation message including details such as rows affected or the inserted id.