Hello Maksym Hryshakov,
Thank you for reaching out to Microsoft!
Apologies for the inconvenience caused. Regarding the error "ErrorInternalServerError Message: An internal server error occurred. The operation failed., The value is set to empty Parameter name: tenantId", we tried replicating the issue and below are the results for the same. Make sure you are updating only the mentioned properties (hideFromOutlookClients and hideFromAddressLists) while working with PATCH requests by excluding other properties as mentioned in the official documentation.
Screenshot of Replication:
Make sure the content-type
header is set to application/json
in your API request.
Test the API in Graph Explorer once and let us know if the issue still persists.
Hope this helps.
If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.