Skip to content

Unlink a cost centre from a site

DELETE
/v1/clients/{clientId}/sites/{siteId}/cost-centres/{id}
curl --request DELETE \
--url https://api2.recruso.co.uk/v1/clients/1/sites/1/cost-centres/1 \
--header 'Authorization: <Authorization>'

Removes the link between a cost centre and one of your own agency’s sites. The cost centre itself is untouched; only the link is deleted.

The id in the route is the link’s id — the siteCostCentreId from ListSiteCostCentres — not the cost centre id.

This is a hard delete and there is no restore; re-link with AddSiteCostCentre if it was removed in error.

The site must belong to the client named in the route and the link to that site; otherwise 404.

Access. Requires a client-credentials access token. Tokens issued through the interactive user login are rejected.

clientId
required
integer format: int32

The clientId path parameter

siteId
required
integer format: int32

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