Update a note draft

Saves the draft fields and synchronizes supplied students, categories, attachments, and folders.

Authentication

AuthorizationBearer

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

Path parameters

idlongRequired

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

Response

Draft saved.
statusstringOptional
messagestringOptional
datamap from strings to anyOptional

Errors

401
Unauthorized Error
404
Not Found Error
422
Unprocessable Entity Error