Skip to content

Remove one of a worker's driving licences

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

Removes a driving licence from a worker in your own agency.

This is permanent, and it takes the convictions with it. A conviction is recorded against the licence rather than against the person, so it has no meaning once the licence is gone. Neither table carries a soft-delete column, so nothing is retained and nothing can be restored — use this for a licence recorded in error, not for one that has expired.

A licence 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.

workerId
required
integer format: int32

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