This articles outlines error messages that might be issued when calling endpoints of the Staff Members API.
The Create Staff Member endpoints might issue the following error messages:
HTTP status | Error code | Error message | Troubleshooting |
---|---|---|---|
INVALID_ARGUMENT (400) | NO_IMAGE_FOUND | Image: imageId does not exist | The provided image id cannot be resolved by the Wix media API, make sure you first upload an image and use it's ID. |
The Update Staff Member endpoint might issue the following error messages:
HTTP status | Error code | Error message | Troubleshooting |
---|---|---|---|
INVALID_ARGUMENT (400) | NO_IMAGE_FOUND | Image: imageId does not exist | The provided image id cannot be resolved by the Wix media API, make sure you first upload an image and use it's ID. |
The Connect Staff Member to User endpoint might issue the following error messages:
HTTP status | Error code | Error message | Troubleshooting |
---|---|---|---|
INVALID_ARGUMENT (400) | NO_EMAIL | Staff: staffId has no email and no additional email was provided | To connect a staff member to a user, either the staff should have an email associated with it, or an email should be explicitly stated in the request |
INVALID_ARGUMENT (400) | STAFF_ALREADY_CONNECTED | Staff: staffId is already connected | The staff member is already connected to a user. |
UNAUTHENTICATED (400) | USER_ALREADY_CONNECTED | User userId already connected | The user connected to the specified email already has a different staf member associated with it. |
ALREADY_EXISTS (400) | INVITE_ALREADY_SENT | Staff invite for staff: staffId already sent | The email stated (or connected to the staff) in the request already has a pending invite. |
The Disconnect Staff Member to User endpoint might issue the following error messages:
HTTP status | Error code | Error message | Troubleshooting |
---|---|---|---|
INVALID_ARGUMENT (400) | STAFF_NOT_CONNECTED | Staff: staffId is not connected | The specified staff member doesn't have a user associated with it. |