This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Creates a staff member.
By default, the staff member works during the business working hours. You could follow this sample flow (SDK | REST) to set custom working hours.
You can only call this method when authenticated as a Wix app or Wix user identity.
Staff member to create.
Conditional fields to return.
Created staff member.
curl -X POST \
'https://www.wixapis.com/bookings/v1/staff-members' \
-H 'Authorization: <AUTH>' \
-d '{
"staffMember": {
"name": "Some name"
}
}'
{
"staffMember": {
"id": "0954bbb2-88cd-445c-9827-44253eb8b039",
"name": "Some name",
"resourceId": "136d9d9a-97ab-49fa-a0cf-ec24f500bd98",
"default": false,
"revision": "2",
"createdDate": "2024-08-28T13:22:32.784Z",
"updatedDate": "2024-08-28T13:22:34.236Z"
}
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.