PATCH

Update Staff Member


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Updates a staff member.

Each time the staff member is updated, revision increments by 1. You must include current revision of the staff member when updating it. This ensures you're working with the latest service information and prevents unintended overwrites.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Bookings - all permissions
Manage Bookings
Learn more about app permissions.
Endpoint
PATCH
https://www.wixapis.com/bookings/v1/staff-members/{staffMember.id}

Path Params
staffMember.idstringRequired

Staff member's ID.

Body Params
staffMemberStaffMemberRequired

Staff member to update.


fieldsArray <string>maxItems 3

Conditional fields to return.

Response Object
staffMemberStaffMember

The updated staff member.

Update a staff member.

Update a staff member, id and revision are required. partial updates are supported.

Request
cURL
curl -X PATCH \ 'https://www.wixapis.com/bookings/v1/staff-members/0954bbb2-88cd-445c-9827-44253eb8b039' \ -H 'Authorization: <AUTH>' \ -d '{ "staffMember": { "name": "Some other name", "id": "0954bbb2-88cd-445c-9827-44253eb8b039", "revision": "2" } }'
Response
JSON
{ "staffMember": { "id": "0954bbb2-88cd-445c-9827-44253eb8b039", "name": "Some other name", "resourceId": "136d9d9a-97ab-49fa-a0cf-ec24f500bd98", "default": false, "revision": "3", "createdDate": "2024-08-28T13:22:32.784Z", "updatedDate": "2024-08-28T14:16:11.948Z" } }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Event TriggersThis method triggers the following events:
Did this help?