API error solved, added role when creating a note