Skip to content

Delete a Staff Member

DELETE
/businesses/{businessId}/staff/{staffId}
curl --request DELETE \
--url https://api.upvio.com/v1/businesses/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/staff/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>'

Delete a Staff Member

businessId
required
string format: uuid

Business ID

staffId
required
string format: uuid

Staff ID

Confirmation that the staff member has been deleted

The staff ID is malformed, or the staff member is still assigned to services.

Media typeapplication/json
object
error
object
code
number
type

The specific error that occurred.

string
Allowed values: BadRequestError
title

Human-readable description of the error.

string

Example

{
"error": {
"code": 400,
"type": "BadRequestError",
"title": "This staff member is in use by some of your services: Initial Consultation. Please remove this staff from these services and try again."
}
}

The API key is missing or invalid, the Business cannot be accessed with it, or the staff member is the Business owner.

Media typeapplication/json
object
error
object
code
number
type

The specific error that occurred.

string
Allowed values: UnauthorizedError BusinessArchivedError BusinessDisabledError
title

Human-readable description of the error.

string

Example

{
"error": {
"code": 403,
"type": "UnauthorizedError",
"title": "This is the business owner and it cannot be archived."
}
}

The staff member does not exist.

Media typeapplication/json
object
error
object
code
number
type

The specific error that occurred.

string
Allowed values: NotFoundError BusinessNotFoundError
title

Human-readable description of the error.

string

Example

{
"error": {
"code": 404,
"type": "NotFoundError",
"title": "Staff not found"
}
}