Update one of a worker's previous employments
const url = 'https://api2.recruso.co.uk/v1/workers/1/previous-employments/1';const options = { method: 'PUT', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"workerId":4821,"id":6602,"clientName":"Northgate Logistics Ltd","companyRegNumber":"04512339","telephone":"0161 496 0142","fax":"0161 496 0143","email":"hr@northgate-logistics.example.co.uk","workerPosition":"Warehouse operative","contactPersonName":"Priya Raval","contactPersonPosition":"Shift manager","reasonForLeft":"Site closed","experience":"Picking and packing, plus counterbalance FLT from 2023.","workFrom":"2022-04-04","workTo":"2025-11-28","honest":true,"reEmploy":true,"abilityRank":4,"timeKeepingRank":5,"referenceSentDate":"2026-01-06","referenceOutcome":"Received 14 January 2026, satisfactory"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api2.recruso.co.uk/v1/workers/1/previous-employments/1 \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "workerId": 4821, "id": 6602, "clientName": "Northgate Logistics Ltd", "companyRegNumber": "04512339", "telephone": "0161 496 0142", "fax": "0161 496 0143", "email": "hr@northgate-logistics.example.co.uk", "workerPosition": "Warehouse operative", "contactPersonName": "Priya Raval", "contactPersonPosition": "Shift manager", "reasonForLeft": "Site closed", "experience": "Picking and packing, plus counterbalance FLT from 2023.", "workFrom": "2022-04-04", "workTo": "2025-11-28", "honest": true, "reEmploy": true, "abilityRank": 4, "timeKeepingRank": 5, "referenceSentDate": "2026-01-06", "referenceOutcome": "Received 14 January 2026, satisfactory" }'Replaces a previous employment recorded for a worker in your own agency.
This is a full replacement of that one record, not a partial merge: a field you omit is set to null. Recording a reference that has come back therefore means sending the employment’s other fields with it, not just the outcome.
A record that belongs to a different worker, or to another agency, returns 404 rather than 403. modifiedBy and modifiedOn are set from your credentials and the current UK local time; they are not taken from the request.
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 workerId path parameter
The id path parameter
Request Bodyrequired
Section titled “Request Bodyrequired”The replacement values for a previous employment already recorded. Every field is written from the request, so a field you omit is set to null.
object
The worker the employment belongs to. Taken from the route; a value in the request body is ignored.
Example
4821The employment record to update. Taken from the route; a value in the request body is ignored.
Example
6602The employer’s name, up to 100 characters. Required.
Example
Northgate Logistics LtdThe employer’s company registration number, up to 20 characters. Required.
Example
04512339A telephone number for the employer, up to 20 characters.
Example
0161 496 0142A fax number for the employer, up to 20 characters.
Example
0161 496 0143An email address for the employer, up to 250 characters.
Example
hr@northgate-logistics.example.co.ukThe job the worker did there, up to 50 characters.
Example
Warehouse operativeWho to ask for a reference, up to 50 characters.
Example
Priya RavalThat person’s job, up to 50 characters.
Example
Shift managerWhy the worker left, up to 255 characters.
Example
Site closedWhat the worker did there, up to 350 characters.
Example
Picking and packing, plus counterbalance FLT from 2023.The date the worker started there.
Example
2022-04-04The date the worker left. Must not be before the start date.
Example
2025-11-28Whether the reference described the worker as honest.
Example
trueWhether the employer said they would re-employ the worker.
Example
trueHow the reference graded the worker’s ability, from 0 to 5 inclusive. Leave it out when the reference did not grade them.
Example
4How the reference graded the worker’s time keeping, from 0 to 5 inclusive. Leave it out when the reference did not grade them.
Example
5The date the reference request was sent.
Example
2026-01-06What came back, up to 150 characters.
Example
Received 14 January 2026, satisfactoryResponses
Section titled “Responses”OK
object
The record’s identifier.
The employer’s name.
The employer’s company registration number.
A telephone number for the employer.
A fax number for the employer.
An email address for the employer.
The job the worker did there.
Who to ask for a reference.
That person’s job.
Why the worker left.
What the worker did there.
The date the worker started there.
The date the worker left.
Whether the reference described the worker as honest.
Whether the employer said they would re-employ the worker.
How the reference graded the worker’s ability, from 0 to 5 inclusive. Null when the reference did not grade them.
How the reference graded the worker’s time keeping, from 0 to 5 inclusive. Null when the reference did not grade them.
The date the reference request was sent.
What came back.
Example
{ "previousEmploymentId": 6602, "clientName": "Northgate Logistics Ltd", "companyRegNumber": "04512339", "telephone": "0161 496 0142", "fax": "0161 496 0143", "email": "hr@northgate-logistics.example.co.uk", "workerPosition": "Warehouse operative", "contactPersonName": "Priya Raval", "contactPersonPosition": "Shift manager", "reasonForLeft": "Site closed", "experience": "Picking and packing, plus counterbalance FLT from 2023.", "workFrom": "2022-04-04", "workTo": "2025-11-28", "honest": true, "reEmploy": true, "abilityRank": 4, "timeKeepingRank": 5, "referenceSentDate": "2026-01-06", "referenceOutcome": "Received 14 January 2026, satisfactory"}Bad Request
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}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"}
