# Update Membership Restrictions An internal endpoint to update clinic membership restrictions Endpoint: PUT /v1/clinics/{clinicId}/membership_restrictions Version: 1.0 Security: sessionToken ## Path parameters: - `clinicId` (string, required) ## Request fields (application/json): - `restrictions` (array) - `restrictions.emailDomain` (string, required) The restriction applies only if the user has an email address with a matching domain - `restrictions.requiredIdp` (string) If this attribute is set, at the time of joining the clinic the user must be authenticated against this identity provider ## Response 200 fields (application/json): - `restrictions` (array) - `restrictions.emailDomain` (string, required) The restriction applies only if the user has an email address with a matching domain - `restrictions.requiredIdp` (string) If this attribute is set, at the time of joining the clinic the user must be authenticated against this identity provider