> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: Introduction

## Article: Introduction

## Article Link: https://dev.wix.com/docs/api-reference/crm/members-contacts/members/member-management/privacy/member-privacy-settings/introduction.md

## Article Content:

# About the Member Privacy Settings API

The Member Privacy Settings API allows you to override the [default privacy status](https://dev.wix.com/docs/rest/crm/members-contacts/members/default-privacy/introduction.md) of site member profiles. For example, if the default status is private, you can switch the privacy settings to public, so that users could have an ability to make their profiles public. This API switches the privacy settings for all site members at once.

With the Member Privacy Settings API, you can:

- [Set](https://dev.wix.com/docs/rest/crm/members-contacts/members/member-privacy-settings/set-member-privacy-settings.md) the member privacy settings.
- [Retrieve](https://dev.wix.com/docs/rest/crm/members-contacts/members/member-privacy-settings/get-member-privacy-settings.md) the member privacy settings.

## Override the default privacy status

You can override the default status for current members with the [Member Privacy Settings API](https://dev.wix.com/docs/rest/crm/members-contacts/members/member-privacy-settings/introduction.md). The new settings apply to the current members of the site, overriding the default status. Newly signed-up members continue to have only the default status applied.

### When a site's default privacy status is `PRIVATE`:
Call [Set Member Privacy Settings](https://dev.wix.com/docs/rest/crm/members-contacts/members/member-privacy-settings/set-member-privacy-settings.md) to update the privacy settings to `PUBLIC`. Current members now have the option to make their profiles `PUBLIC`. Newly signed-up members will have private profiles by default but can then change their profiles to `PUBLIC`.

### When a site's default privacy status is `PUBLIC`:
Call [Set Member Privacy Settings](https://dev.wix.com/docs/rest/crm/members-contacts/members/member-privacy-settings/set-member-privacy-settings.md) to update the privacy settings to `PRIVATE`. All current and newly signed-up members can't make their profiles `PUBLIC`.


## Before you begin

It’s important to note the following before starting to code:

- A site must have the [Wix Members Area](https://www.wix.com/app-market/web-solution/members-area) installed from the App Market.

## Use case

- [Temporarily change privacy settings for event participation](https://dev.wix.com/docs/rest/crm/members-contacts/members/member-privacy-settings/sample-use-cases-and-flows.md)

## Terminology

- **Member privacy settings:** Settings that determine who can see site members' profiles and who is allowed to make member profiles public.

## SDK Setup
  `@wix/members`

To use the API, install the `@wix/members` package.

#### Install the package

Follow the installation instructions for your development environment.

| Development environment | Installation method |
|--|--|
| Wix sites (editor or IDE) | Use the [package manager](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/packages/work-with-npm-packages-in-the-editor.md). |
| Wix sites (local IDE) | Run `wix install @wix/members` using the [Wix CLI](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/packages/work-with-npm-packages-with-the-wix-cli.md).|
| Blocks apps | Use the same installation method as Wix sites. |
| CLI and self-hosted apps | Run `npm install @wix/members` or `yarn add @wix/members`. |
| Headless sites and apps | Run `npm install @wix/members` or `yarn add @wix/members`. |

#### Import the package

To import the package in your code:

```js
import { memberPrivacySettings } from '@wix/members'
```

#### Import types

Types for this API are accessed through the `memberPrivacySettings` namespace you already imported above, as `memberPrivacySettings.<TypeName>`, using any type name shown in these docs.
  