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.
You can only call this method when authenticated as a Wix app or Wix user identity.
Staff member's ID.
Staff member to update.
Conditional fields to return.
The updated staff member.
Update a staff member, id
and revision
are required. partial updates are supported.
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"
}
}'
{
"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"
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.