Create an entry in a slot (user)
Books an employee into a slot for a given time window. When apply_to_all is true the booking is applied across all occurrences of the recurring slot and a collection of entries is returned, optionally with a warning describing skipped occurrences; otherwise a single entry is returned. The employee must be within the caller's schedules-management scope, and the slot must belong to a schedule in a department the caller manages.
User bearer token. Default authentication for customer-facing endpoints.
Obtain a token by calling POST /login with your credentials, then send it
on every subsequent request as Authorization: Bearer <token>. The token
inherits the permissions and PBX scope of the authenticated user.
- HTTP Authorization Scheme
bearer- Bearer format
Bearer <token>
application/jsonRequest body · required
550e8400-e29b-41d4-a716-4466554400022026-03-02T09:00:002026-03-02T17:00:00Covering the morning deskResponses
dataobject
550e8400-e29b-41d4-a716-446655440000550e8400-e29b-41d4-a716-446655440001550e8400-e29b-41d4-a716-446655440002employeeobject | null
550e8400-e29b-41d4-a716-446655440003Jane Smith#3B82F62024-03-01T08:00:00+00:002024-03-01T16:30:00+00:00Covering the morning reception shiftassignedByobject | null
550e8400-e29b-41d4-a716-446655440004Customer Support2024-03-01T07:45:12+00:00dataarray<object>
550e8400-e29b-41d4-a716-446655440000550e8400-e29b-41d4-a716-446655440001550e8400-e29b-41d4-a716-446655440002employeeobject | null
550e8400-e29b-41d4-a716-446655440003Jane Smith#3B82F62024-03-01T08:00:00+00:002024-03-01T16:30:00+00:00Covering the morning reception shiftassignedByobject | null
550e8400-e29b-41d4-a716-446655440004Customer Support2024-03-01T07:45:12+00:002 occurrences were skipped due to conflicts.Authorization Token is missingmessagearray<string>
https://cockpit.voxbi.com/api/v1/{pbx_id}/schedule-management/slots/{slot}/entries
curl -X POST 'https://cockpit.voxbi.com/api/v1/{pbx_id}/schedule-management/slots/{slot}/entries' \
-H 'Authorization: Bearer YOUR_TOKEN'
const response = await fetch('https://cockpit.voxbi.com/api/v1/{pbx_id}/schedule-management/slots/{slot}/entries', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${YOUR_TOKEN}`,
},
});
const data = await response.json();
console.log(data);
import requests
response = requests.post('https://cockpit.voxbi.com/api/v1/{pbx_id}/schedule-management/slots/{slot}/entries',
headers={'Authorization': f'Bearer {YOUR_TOKEN}'}
)
response.raise_for_status()
data = response.json()
print(data)
<?php
$context = stream_context_create([
'http' => [
'method' => 'POST',
'header' => "Content-Type: application/json\r\nAuthorization: Bearer YOUR_TOKEN",
],
]);
$response = file_get_contents('https://cockpit.voxbi.com/api/v1/{pbx_id}/schedule-management/slots/{slot}/entries', false, $context);
$data = json_decode($response, true);
print_r($data);
{ … }
private, must-revalidatekeep-aliveapplication/jsonOrigin6057{ … }
"message": [ … ]
private, must-revalidatekeep-aliveapplication/jsonOrigin6057