Skip to main content

updateRestrictions()

Updates the restriction settings for the current instance.

Returns the updated InstanceRestrictions object.

function updateRestrictions(params: UpdateRestrictionsParams): Promise<InstanceRestrictions>

Note

Using clerkClient varies based on the SDK you're using. Refer to the overview for usage details, including guidance on how to access the userId and other properties.

const response = await clerkClient.instances.updateRestrictions({
  allowlist: true,
  blockEmailSubaddresses: true,
})

Backend API (BAPI) endpoint

This method in the SDK is a wrapper around the BAPI endpoint PATCH/instance/restrictions. See the BAPI reference for more information.

Feedback

What did you think of this content?

Last updated on