Update a Staff Member
const url = 'https://api.upvio.com/v1/businesses/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/staff/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","email":"example","timezone":"UTC"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.upvio.com/v1/businesses/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/staff/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "email": "example", "timezone": "UTC" }'Update a Staff Member
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Business ID
Staff ID
Request Body
Section titled “Request Body”object
Timezone string.
Example
UTCResponses
Section titled “Responses”The updated Staff member
A user within a Business that can use and/or manage resources.
object
Unique identifier across the platform.
Time when the resource was created (ISO 8601 format).
Time when the resource was created (ISO 8601 format).
The ID of the Business this resource belongs to.
Unique Email Address that the Staff uses to login.
An optional unique alias for the Staff member.
The full legal name of the staff member.
The status of the staff member. Only ACTIVE staff can be booked.
Deprecated - Use status instead. Returns true when status is ACTIVE.
The URL where patients can book this staff member directly.
A list of roles assigned to the Staff.
A list of Staff IDs that are managed by this Staff.
Timezone string.
Example
{ "alias": "john", "name": "John Doe", "status": "ACTIVE", "bookingURL": "https://forms.upvio.com/book/acme/staff/123", "roles": [ "ADMIN" ], "timezone": "UTC"}The staff ID is malformed, the staff data is invalid, or the staff member has been archived.
object
object
The specific error that occurred.
Human-readable description of the error.
Example
{ "error": { "code": 400, "type": "StaffArchivedError", "title": "Operation unavailable on archived staff." }}The API key is missing or invalid, or the Business cannot be accessed with it.
object
object
The specific error that occurred.
Human-readable description of the error.
Example
{ "error": { "code": 403, "type": "UnauthorizedError", "title": "Invalid API token" }}The staff member does not exist.
object
object
The specific error that occurred.
Human-readable description of the error.
Example
{ "error": { "code": 404, "type": "NotFoundError", "title": "Staff with ID {staffId} not found" }}