Remove one of a worker's activities
DELETE
/v1/workers/{workerId}/activities/{id}
const url = 'https://api2.recruso.co.uk/v1/workers/1/activities/1';const options = {method: 'DELETE', 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 DELETE \ --url https://api2.recruso.co.uk/v1/workers/1/activities/1 \ --header 'Authorization: <Authorization>'Removes an entry from a worker’s activity feed in your own agency.
This is permanent. The record carries no soft-delete column, so the entry is gone from the feed. A feed is a record of what happened, so this is for an entry logged against the wrong worker or entered twice — not for tidying old activity.
An entry 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”workerId
required
integer format: int32
The workerId path parameter
id
required
integer format: int32
The id path parameter
Responses
Section titled “Responses”No Content
Unauthorized
Media typeapplication/problem+json
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Forbidden
Media typeapplication/problem+json
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Not Found
Media typeapplication/problem+json
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}
