Delete a site rate contract
const url = 'https://api2.recruso.co.uk/v1/clients/1/sites/1/rate-contracts/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/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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The clientId path parameter
The siteId 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"}
