NOTE You first need to create the note and then add an attachment to it.
idAuthorization: Bearer ********************curl --location --request POST '/api/ticket/<ticketId>/note/<noteId>/document' \
--header 'Authorization: Bearer <token>'{
"attachment": {
"id": 1919
}
}