queue
Delete schedule
Delete a queue from a profile. Requires queueId to specify which queue to delete. If deleting the default queue, another queue will be promoted to default.
AuthorizationBearer <token>
API key authentication - use your Zernio API key as a Bearer token
In: header
Query Parameters
profileIdstring
queueIdstring
Queue ID to delete
Response Body
application/json
application/json
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.queue.deleteQueueSlot({ query: { profileId: 'profile_abc123', queueId: 'queue_abc123', },});console.log(data);{
"success": true,
"deleted": true
}Empty
{
"error": "Unauthorized"
}Update schedule PUT
Create a new queue or update an existing one. Without queueId, creates/updates the default queue. With queueId, updates a specific queue. With setAsDefault=true, makes this queue the default for the profile.
Preview upcoming slots GET
Returns the next N upcoming queue slot times for a profile as ISO datetime strings.