pub async fn act_on_note( id: i32, expected_version: i32, action: NoteAction, ) -> Result<Note, ApiError>