Submit a validation decision for a time-point correction (user)
Records the authenticated validator's decision (accepted or rejected) for a Tempus time-point correction request, then applies the decision to the correction. If the validator already has a pending decision on this correction it is updated in place; a decision that has already been finalised cannot be resubmitted. The authenticated user must have a linked Tempus employee record. A requester notification email is dispatched after the decision is committed.
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
accepted rejectedacceptedApproved after confirming the corrected clock-in time.Approved after confirming the corrected clock-in time.2024-03-01T08:00:00+00:00550e8400-e29b-41d4-a716-446655440010Responses
Correction validation created.This correction is no longer pending.Authorization Token is missingThis action is unauthorized.messagearray<string>
This correction has already been validated.The given data was invalid.errorsobject
filterarray<string>
sortarray<string>
pagearray<string>
per_pagearray<string>
https://cockpit.voxbi.com/api/v1/{pbx_id}/corrections/{correction_id}/validations
curl -X POST 'https://cockpit.voxbi.com/api/v1/{pbx_id}/corrections/{correction_id}/validations' \
-H 'Authorization: Bearer YOUR_TOKEN'
const response = await fetch('https://cockpit.voxbi.com/api/v1/{pbx_id}/corrections/{correction_id}/validations', {
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}/corrections/{correction_id}/validations',
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}/corrections/{correction_id}/validations', false, $context);
$data = json_decode($response, true);
print_r($data);
{ … }
private, must-revalidatekeep-aliveapplication/jsonOrigin6057{ … }
"message": [ … ]
private, must-revalidatekeep-aliveapplication/jsonOrigin6057{ … }
"errors": { … }
"filter": [ … ],
"sort": [ … ],
"page": [ … ],
"per_page": [ … ]
private, must-revalidatekeep-aliveapplication/jsonOrigin6057