TasksTask types

Task types

Tasks · 3 operations

GET

List task types

/api/task-type

Task types with their subtypes. Use the ids when creating or filtering tasks.

list_task_types

Query parameters · 2

namestringlength max 100
isArchivalbooleanOmitted: active only; true: archived only; all: everything (becomes undefined, no filter).default false

Response · 200

application/json

statusCodenumberrequiredexample 200
messagestringrequired—
dataobject4 fields
totalnumberrequired—
totalPagesnumberrequired—
currentPagenumberrequired—
taskTypesobject[]required10 fields
taskTypeIdnumberrequired—
namestringrequired—
iconstringrequired—
colorstringrequirednullable—
instructionstringrequirednullable—
isDefaultbooleanrequired—
ordernumberrequired—
isArchivalbooleanrequired—
updatedAtstringrequiredformat YYYY-MM-DDTHH:mm:ss
createdAtstringrequiredformat YYYY-MM-DDTHH:mm:ss
Errors400401403429500
curl "https://your-school.rist.pro/api/task-type" \
  -H "Authorization: Bearer $RIST_API_KEY"
Response example · 200
{
  "statusCode": 200,
  "message": "Operation completed successfully",
  "data": {
    "total": 0,
    "totalPages": 0,
    "currentPage": 0,
    "taskTypes": [
      {
        "taskTypeId": 1,
        "name": "string",
        "icon": "string",
        "color": "string",
        "instruction": "string",
        "isDefault": false,
        "order": 0,
        "isArchival": false,
        "updatedAt": "2026-11-09T14:30:00",
        "createdAt": "2026-11-09T14:30:00"
      }
    ]
  }
}
POST

Create task type

/api/task-type

Add a task type (name, icon key as in lesson types, optional #RRGGBB color and an instruction shown on its tasks). isDefault makes it the type of new tasks instead of the current default.

create_task_type

Request body

application/json · object

namestringrequiredlength 1–100
iconstringrequiredKey from the icon catalog shared with lesson types.length max 50
colorstringrequirednullableAny #RRGGBB color, not a palette name.length 7–7
instructionstringrequirednullableHint for the manager, shown on the card of a task of this type.length max 2000
isDefaultbooleanType given to a new task; switched in a transaction so there is always exactly one.

Response · 201

application/json

statusCodenumberrequiredexample 201
messagestringrequired—
dataobject10 fields
taskTypeIdnumberrequired—
namestringrequired—
iconstringrequired—
colorstringrequirednullable—
instructionstringrequirednullable—
isDefaultbooleanrequired—
ordernumberrequired—
isArchivalbooleanrequired—
updatedAtstringrequiredformat YYYY-MM-DDTHH:mm:ss
createdAtstringrequiredformat YYYY-MM-DDTHH:mm:ss
Errors400401403429500
curl -X POST "https://your-school.rist.pro/api/task-type" \
  -H "Authorization: Bearer $RIST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "icon": "string",
    "color": "string",
    "instruction": "string",
    "isDefault": false
  }'
Response example · 201
{
  "statusCode": 201,
  "message": "Operation completed successfully",
  "data": {
    "taskTypeId": 1,
    "name": "string",
    "icon": "string",
    "color": "string",
    "instruction": "string",
    "isDefault": false,
    "order": 0,
    "isArchival": false,
    "updatedAt": "2026-11-09T14:30:00",
    "createdAt": "2026-11-09T14:30:00"
  }
}
PUT

Update task type

/api/task-type/{id}

Change a task type; name and icon are always required.

update_task_type

Path parameters · 1

idnumberrequired—

Request body

application/json · object

namestringrequiredlength 1–100
iconstringrequiredKey from the icon catalog shared with lesson types.length max 50
colorstringrequirednullableAny #RRGGBB color, not a palette name.length 7–7
instructionstringrequirednullableHint for the manager, shown on the card of a task of this type.length max 2000
isDefaultbooleanType given to a new task; switched in a transaction so there is always exactly one.

Response · 200

application/json

statusCodenumberrequiredexample 200
messagestringrequired—
dataobject10 fields
taskTypeIdnumberrequired—
namestringrequired—
iconstringrequired—
colorstringrequirednullable—
instructionstringrequirednullable—
isDefaultbooleanrequired—
ordernumberrequired—
isArchivalbooleanrequired—
updatedAtstringrequiredformat YYYY-MM-DDTHH:mm:ss
createdAtstringrequiredformat YYYY-MM-DDTHH:mm:ss
Errors400401403429500
curl -X PUT "https://your-school.rist.pro/api/task-type/1" \
  -H "Authorization: Bearer $RIST_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "icon": "string",
    "color": "string",
    "instruction": "string",
    "isDefault": false
  }'
Response example · 200
{
  "statusCode": 200,
  "message": "Operation completed successfully",
  "data": {
    "taskTypeId": 1,
    "name": "string",
    "icon": "string",
    "color": "string",
    "instruction": "string",
    "isDefault": false,
    "order": 0,
    "isArchival": false,
    "updatedAt": "2026-11-09T14:30:00",
    "createdAt": "2026-11-09T14:30:00"
  }
}