Create a user note draft

Creates a draft in the requested academic year when batch_id is supplied, otherwise the active academic year.

Authentication

AuthorizationBearer

The signed-in SchoolSet user token sent by the frontend.

Request

This endpoint expects an object.
titlestringRequired
draftstringRequired

JSON-encoded EditorJS document

favoritebooleanRequired
students_idlist of integersOptional
categories_idlist of integersOptional
attachments_idlist of integersOptional
folders_idlist of integersOptional
batch_idlongOptional

Selects the academic year; consumed by the controller

Response

Draft created.
statusstring
messagestring
datamap from strings to any

Errors

401
Unauthorized Error
404
Not Found Error
422
Unprocessable Entity Error