Get one of a worker's Driver CPC training periods
const url = 'https://api2.recruso.co.uk/v1/workers/1/cpc-training/1';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api2.recruso.co.uk/v1/workers/1/cpc-training/1 \ --header 'Authorization: <Authorization>'Returns a single Driver CPC training period for a worker in your own agency, with the number of modules recorded in it and the hours they add up to. The modules themselves are listed by their own operation.
A period that belongs to a different worker, or to another agency, returns 404 rather than 403, so its existence is never disclosed.
Access. Requires a client-credentials access token. Tokens issued through the interactive user login are rejected.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The workerId path parameter
The id path parameter
Responses
Section titled “Responses”OK
object
The training period identifier.
The date the period starts.
The date the period runs to.
Whether the required hours were completed within the period.
How many modules have been recorded in the period.
The hours recorded across those modules.
Example
{ "trainingId": 4410, "trainingFrom": "2021-09-10", "trainingUntil": "2026-09-09", "completedByRequiredDate": false, "moduleCount": 3, "totalHoursCompleted": 21}Unauthorized
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Forbidden
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Not Found
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}
