Delete a site activity
DELETE
/v1/clients/{clientId}/sites/{siteId}/contact-persons/{contactPersonId}/activities/{id}
const url = 'https://api2.recruso.co.uk/v1/clients/1/sites/1/contact-persons/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/clients/1/sites/1/contact-persons/1/activities/1 \ --header 'Authorization: <Authorization>'Deletes one activity logged against a contact at one of your own agency’s sites.
This is a hard delete — the row is removed. Unlike a site or a site contact, an activity is not retained and there is no restore, so the contact history loses the entry permanently.
The client, site and contact in the route must line up — the site must belong to the client and the contact to the site — and any mismatch returns 404 rather than 403.
The activity must also belong to the contact in the route.
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”clientId
required
integer format: int32
The clientId path parameter
siteId
required
integer format: int32
The siteId path parameter
contactPersonId
required
integer format: int32
The contactPersonId 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"}
