Unlink a cost centre from a site contact
const url = 'https://api2.recruso.co.uk/v1/clients/1/sites/1/contact-persons/1/cost-centres/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/cost-centres/1 \ --header 'Authorization: <Authorization>'Removes the link between a cost centre and a contact at one of your own agency’s sites. Neither the cost centre nor the contact is touched; only the link is deleted.
The id in the route is the link’s id — the contactPersonCostCentreId from ListSiteContactCostCentres — not the cost centre id.
This is a hard delete and there is no restore; re-link with AddSiteContactCostCentre if it was removed in error.
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 link 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”The clientId path parameter
The siteId path parameter
The contactPersonId path parameter
The id path parameter
Responses
Section titled “Responses”No Content
Unauthorized
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Forbidden
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Not Found
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}
