Skip to content

Remove a module from a Driver CPC training period

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

Removes a module recorded within one of a worker’s Driver CPC training periods in your own agency, and with it the hours it contributed.

This is permanent. The record carries no soft-delete column. Use it for a module recorded in error or against the wrong period.

A module that belongs to a different period, a different worker, or 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.

workerId
required
integer format: int32

The workerId path parameter

trainingId
required
integer format: int32

The trainingId path parameter

id
required
integer format: int32

The id path parameter

No Content

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"
}