> 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

# UpdateStaffMemberSettings

# Package: staffMembers

# Namespace: StaffMemberSettingsService

# Method link: https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-member-settings/update-staff-member-settings.md

## Permission Scopes:
Manage Bookings: SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS

## Introduction

Updates privacy settings for staff member contact information.

Each time the settings are updated, `revision` increments by 1.
The current `revision` must be passed when updating the settings.
This ensures you're working with the latest settings and prevents unintended overwrites.

Changes to these settings take effect immediately and affect both API responses and live site display.
When you enable `contactInformation.publiclyAccessible`, the `email` and `phone` fields in [staff member objects](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/staff-member-object.md) include actual contact information, and this information is displayed on the live site.
When you disable it, these fields are empty in API responses if the calling [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities.md) doesn't have sufficient permissions, and contact information isn't displayed on the live site.

Identities with appropriate permissions can access staff contact information in API responses regardless of this setting.

---

## REST API

### Schema

```
 Method: updateStaffMemberSettings
 Description: Updates privacy settings for staff member contact information.  Each time the settings are updated, `revision` increments by 1. The current `revision` must be passed when updating the settings. This ensures you're working with the latest settings and prevents unintended overwrites.  Changes to these settings take effect immediately and affect both API responses and live site display. When you enable `contactInformation.publiclyAccessible`, the `email` and `phone` fields in [staff member objects](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/staff-member-object.md) include actual contact information, and this information is displayed on the live site. When you disable it, these fields are empty in API responses if the calling [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities.md) doesn't have sufficient permissions, and contact information isn't displayed on the live site.  Identities with appropriate permissions can access staff contact information in API responses regardless of this setting.
 URL: https://www.wixapis.com/bookings/v1/staff-member-settings
 Method: PATCH
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  staffMemberSettings, staffMemberSettings.revision
 Method parameters: 
   param name: staffMemberSettings | type: StaffMemberSettings | description: Settings that control the visibility of staff members' contact information.  These settings determine whether the `email` and `phone` fields are populated in [staff member objects](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/staff-member-object.md). When enabled, these fields contain staff contact information. When disabled, these fields are empty if the calling [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities.md) doesn't have sufficient permissions. Identities with appropriate permissions may still access the information.  This is a singleton resource. Each site has exactly one settings object, automatically created when Wix Bookings is installed. | required: true 
        - name: revision | type: string | description: Revision number, which increments by 1 each time the `staffMemberSettings` object is updated. To prevent conflicting changes, the current revision must be specified when updating the `staffMemberSettings` object. | required: true | read-only: true | validation: format int64
        - name: contactInformation | type: ContactInformation | description: Privacy settings for controlling staff member contact information visibility in API responses and on the live site.  
           - name: publiclyAccessible | type: boolean | description: Whether staff members' email addresses and phone numbers are accessible in API responses and on the live site.  - `true`: The `email` and `phone` fields in [staff member objects](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/staff-member-object.md) contain actual contact information, and this information is displayed on the live site. - `false`: These fields are empty in API responses if the calling [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities.md) doesn't have sufficient permissions, and contact information isn't displayed on the live site.  Identities with appropriate permissions can still access this information in API responses regardless of this setting.  Default: `false`  
        - name: extendedFields | type: ExtendedFields | description: Custom field data for the staff member settings. Extended fields must be configured in the app dashboard before they can be accessed with API calls.  Learn more about extended fields at https://dev.wix.com/docs/rest/articles/getting-started/extended-fields..md  
           - name: namespaces | type: object | description: Extended field data. Each key corresponds to the namespace of the app that created the extended fields. The value of each key is structured according to the schema defined when the extended fields were configured.  You can only access fields for which you have the appropriate permissions.  Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields.md).  | validation: format map
 Return type: UpdateStaffMemberSettingsResponse
  - name: staffMemberSettings | type: StaffMemberSettings | description: Updated staff member settings.  
     - name: id | type: string | description: GUID of the staff member settings object. There is one settings object per site.  | read-only: true | validation: format GUID
     - name: revision | type: string | description: Revision number, which increments by 1 each time the `staffMemberSettings` object is updated. To prevent conflicting changes, the current revision must be specified when updating the `staffMemberSettings` object.  | read-only: true | validation: format int64
     - name: createdDate | type: string | description: Date and time the `staffMemberSettings` object was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.  | read-only: true | validation: format date-time
     - name: updatedDate | type: string | description: Date and time the `staffMemberSettings` object was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.  | read-only: true | validation: format date-time
     - name: contactInformation | type: ContactInformation | description: Privacy settings for controlling staff member contact information visibility in API responses and on the live site.  
        - name: publiclyAccessible | type: boolean | description: Whether staff members' email addresses and phone numbers are accessible in API responses and on the live site.  - `true`: The `email` and `phone` fields in [staff member objects](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/staff-member-object.md) contain actual contact information, and this information is displayed on the live site. - `false`: These fields are empty in API responses if the calling [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities.md) doesn't have sufficient permissions, and contact information isn't displayed on the live site.  Identities with appropriate permissions can still access this information in API responses regardless of this setting.  Default: `false`  
     - name: extendedFields | type: ExtendedFields | description: Custom field data for the staff member settings. Extended fields must be configured in the app dashboard before they can be accessed with API calls.  Learn more about extended fields at https://dev.wix.com/docs/rest/articles/getting-started/extended-fields..md  
        - name: namespaces | type: object | description: Extended field data. Each key corresponds to the namespace of the app that created the extended fields. The value of each key is structured according to the schema defined when the extended fields were configured.  You can only access fields for which you have the appropriate permissions.  Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields.md).  | validation: format map


```

### Examples

### Enable Contact Information Access
Updates privacy settings to make staff member email and phone numbers accessible via API.

```curl
curl -X PATCH \
  'https://www.wixapis.com/bookings/v1/staff-member-settings' \
  -H 'Authorization: <AUTH>' \
  -H 'Content-Type: application/json' \
  -d '{
    "staffMemberSettings": {
      "revision": "3",
      "contactInformation": {
        "publiclyAccessible": true
      }
    }
  }'
```

### Disable Contact Information Access
Updates privacy settings to make staff member email and phone numbers private.

```curl
curl -X PATCH \
  'https://www.wixapis.com/bookings/v1/staff-member-settings' \
  -H 'Authorization: <AUTH>' \
  -H 'Content-Type: application/json' \
  -d '{
    "staffMemberSettings": {
      "revision": "4",
      "contactInformation": {
        "publiclyAccessible": false
      }
    }
  }'
```

---

## JavaScript SDK

### Schema

```
 Method: wixClientAdmin.bookings.staffMemberSettings.updateStaffMemberSettings(staffMemberSettings)
 Description: Updates privacy settings for staff member contact information.  Each time the settings are updated, `revision` increments by 1. The current `revision` must be passed when updating the settings. This ensures you're working with the latest settings and prevents unintended overwrites.  Changes to these settings take effect immediately and affect both API responses and live site display. When you enable `contactInformation.publiclyAccessible`, the `email` and `phone` fields in [staff member objects](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/staff-member-object.md) include actual contact information, and this information is displayed on the live site. When you disable it, these fields are empty in API responses if the calling [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities.md) doesn't have sufficient permissions, and contact information isn't displayed on the live site.  Identities with appropriate permissions can access staff contact information in API responses regardless of this setting.
 # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present.
 Required parameters:  staffMemberSettings, staffMemberSettings.revision
 Method parameters: 
   param name: staffMemberSettings | type: StaffMemberSettings | description: Settings that control the visibility of staff members' contact information.  These settings determine whether the `email` and `phone` fields are populated in [staff member objects](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/staff-member-object.md). When enabled, these fields contain staff contact information. When disabled, these fields are empty if the calling [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities.md) doesn't have sufficient permissions. Identities with appropriate permissions may still access the information.  This is a singleton resource. Each site has exactly one settings object, automatically created when Wix Bookings is installed. | required: true 
        - name: revision | type: string | description: Revision number, which increments by 1 each time the `staffMemberSettings` object is updated. To prevent conflicting changes, the current revision must be specified when updating the `staffMemberSettings` object. | required: true | read-only: true | validation: format int64
        - name: contactInformation | type: ContactInformation | description: Privacy settings for controlling staff member contact information visibility in API responses and on the live site.  
           - name: publiclyAccessible | type: boolean | description: Whether staff members' email addresses and phone numbers are accessible in API responses and on the live site.  - `true`: The `email` and `phone` fields in [staff member objects](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/staff-member-object.md) contain actual contact information, and this information is displayed on the live site. - `false`: These fields are empty in API responses if the calling [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities.md) doesn't have sufficient permissions, and contact information isn't displayed on the live site.  Identities with appropriate permissions can still access this information in API responses regardless of this setting.  Default: `false`  
        - name: extendedFields | type: ExtendedFields | description: Custom field data for the staff member settings. Extended fields must be configured in the app dashboard before they can be accessed with API calls.  Learn more about extended fields at https://dev.wix.com/docs/rest/articles/getting-started/extended-fields..md  
           - name: namespaces | type: object | description: Extended field data. Each key corresponds to the namespace of the app that created the extended fields. The value of each key is structured according to the schema defined when the extended fields were configured.  You can only access fields for which you have the appropriate permissions.  Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields.md).  | validation: format map
 Return type: PROMISE<StaffMemberSettings>
  - name: _id | type: string | description: GUID of the staff member settings object. There is one settings object per site.  | read-only: true | validation: format GUID
  - name: revision | type: string | description: Revision number, which increments by 1 each time the `staffMemberSettings` object is updated. To prevent conflicting changes, the current revision must be specified when updating the `staffMemberSettings` object.  | read-only: true | validation: format int64
  - name: _createdDate | type: Date | description: Date and time the `staffMemberSettings` object was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.  | read-only: true 
  - name: _updatedDate | type: Date | description: Date and time the `staffMemberSettings` object was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.  | read-only: true 
  - name: contactInformation | type: ContactInformation | description: Privacy settings for controlling staff member contact information visibility in API responses and on the live site.  
     - name: publiclyAccessible | type: boolean | description: Whether staff members' email addresses and phone numbers are accessible in API responses and on the live site.  - `true`: The `email` and `phone` fields in [staff member objects](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-members/staff-member-object.md) contain actual contact information, and this information is displayed on the live site. - `false`: These fields are empty in API responses if the calling [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities.md) doesn't have sufficient permissions, and contact information isn't displayed on the live site.  Identities with appropriate permissions can still access this information in API responses regardless of this setting.  Default: `false`  
  - name: extendedFields | type: ExtendedFields | description: Custom field data for the staff member settings. Extended fields must be configured in the app dashboard before they can be accessed with API calls.  Learn more about extended fields at https://dev.wix.com/docs/rest/articles/getting-started/extended-fields..md  
     - name: namespaces | type: object | description: Extended field data. Each key corresponds to the namespace of the app that created the extended fields. The value of each key is structured according to the schema defined when the extended fields were configured.  You can only access fields for which you have the appropriate permissions.  Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields.md).  | validation: format map


```

### Examples

### updateStaffMemberSettings
```javascript
import { staffMemberSettings } from '@wix/bookings';

async function updateStaffMemberSettings(staffMemberSettings) {
  const response = await staffMemberSettings.updateStaffMemberSettings(staffMemberSettings);
};
```

### updateStaffMemberSettings (with elevated permissions)
```javascript
import { staffMemberSettings } from '@wix/bookings';
import { auth } from '@wix/essentials';

async function myUpdateStaffMemberSettingsMethod(staffMemberSettings) {
  const elevatedUpdateStaffMemberSettings = auth.elevate(staffMemberSettings.updateStaffMemberSettings);
  const response = await elevatedUpdateStaffMemberSettings(staffMemberSettings);
}
```

### updateStaffMemberSettings (self-managed)
Self-managed SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md).

```javascript
import { createClient } from '@wix/sdk';
import { staffMemberSettings } from '@wix/bookings';
// Import the auth strategy for the relevant access type
// Import the relevant host module if needed

const myWixClient = createClient ({
  modules: { staffMemberSettings },
  // Include the auth strategy and host as relevant
});


async function updateStaffMemberSettings(staffMemberSettings) {
  const response = await myWixClient.staffMemberSettings.updateStaffMemberSettings(staffMemberSettings);
};
```

---