Skip to content

List a worker's Driver CPC training periods

GET
/v1/workers/{workerId}/cpc-training
curl --request GET \
--url https://api2.recruso.co.uk/v1/workers/1/cpc-training \
--header 'Authorization: <Authorization>'

Returns every Driver CPC training period recorded for a worker in your own agency, earliest start date first, each with the number of modules recorded in it and the hours they add up to.

Use the hours to see how far through the periodic training a worker is; the modules themselves are listed by their own operation. The list is not paged.

A worker id belonging to another agency returns 404 rather than 403, so their existence is never disclosed.

Access. Requires a client-credentials access token. Tokens issued through the interactive user login are rejected.

workerId
required
integer format: int32

The workerId path parameter

OK

Media typeapplication/json

Every Driver CPC training period recorded for a worker.

object
workerId

The worker the periods belong to.

integer format: int32
cpcTraining

The periods, earliest start date first.

Array<object>

A Driver CPC training period, and what has been completed in it.

object
trainingId

The training period identifier.

integer format: int64
trainingFrom

The date the period starts.

string format: date
trainingUntil

The date the period runs to.

string format: date
completedByRequiredDate

Whether the required hours were completed within the period.

boolean
nullable
moduleCount

How many modules have been recorded in the period.

integer format: int32
totalHoursCompleted

The hours recorded across those modules.

number format: double
Example
{
"workerId": 4821,
"cpcTraining": [
{
"trainingId": 4410,
"trainingFrom": "2021-09-10",
"trainingUntil": "2026-09-09",
"completedByRequiredDate": false,
"moduleCount": 3,
"totalHoursCompleted": 21
}
]
}

Unauthorized

Media typeapplication/problem+json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Forbidden

Media typeapplication/problem+json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}

Not Found

Media typeapplication/problem+json
object
type
string
nullable
title
string
nullable
status
integer format: int32
nullable
detail
string
nullable
instance
string
nullable
Examplegenerated
{
"type": "example",
"title": "example",
"status": 1,
"detail": "example",
"instance": "example"
}