POST

Create 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.

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.

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
POST
https://www.wixapis.com/bookings/v1/staff-members

Body Params
staffMemberStaffMemberRequired

Staff member to create.


fieldsArray <string>maxItems 3

Conditional fields to return.

Response Object
staffMemberStaffMember

Created staff member.

Create a staff member.
Request
cURL
curl -X POST \ 'https://www.wixapis.com/bookings/v1/staff-members' \ -H 'Authorization: <AUTH>' \ -d '{ "staffMember": { "name": "Some name" } }'
Response
JSON
{ "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" } }
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?