Skip to content

Delete a site rate contract

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

Deletes one rate contract from one of your own agency’s sites. This is a soft delete: the row and its rate pairs are retained, so historical work priced against this contract keeps its rates.

There is no restore endpoint for a rate contract, unlike a site or a site contact. A deleted contract drops out of ListSiteRateContracts but is still readable through GetSiteRateContractById with isDeleted true, and UpdateSiteRateContract still accepts it — but nothing sets isDeleted back to false, so treat the delete as final and create a replacement contract instead.

The site must belong to the client named in the route and the contract to that site; otherwise 404. Deleting an already-deleted contract succeeds again and re-stamps the audit fields.

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