Edit groups in shared projects through API

Can we update or edit a group's access level or expiry date in shared projects through API ?

I can list a groups shared projects through this api: GET /groups/:id/projects/shared

Is there any way i can update the details like access_level or expiry_date through API?

Edited by 🤖 GitLab Bot 🤖