Update agency details
PUT
/v1/agency
const url = 'https://api2.recruso.co.uk/v1/agency';const options = { method: 'PUT', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"ownerName":"example","businessType":"example","address1":"example","address2":"example","postcode":"example","telephone1":"example","telephone2":"example","mobile":"example","fax":"example","email":"example","website":"example","vatNumber":"example","companyRegNumber":"example","endOfTaxYear":"2026-04-15T12:00:00Z","yearStartDate":"2026-04-15T12:00:00Z","weekEndingDateOfFirstWeek":"2026-04-15T12:00:00Z","smsPurchased":1,"customAccountNumber":true,"blockTimesheetAgreement":"example","firstDayOfWeek":"example","postCodeSearch":true,"subbyNameInPlan":true,"modifiedBy":"example","modifiedOn":"2026-04-15T12:00:00Z","holidayAccrualMethodId":1,"holidayYearStartDate":"2026-04-15T12:00:00Z","holidayYearByWorkStartDate":true,"weeklyCappedHours":1,"weeksToCalculateAveragePay":1,"authorizedPassword":"example","town":"example","county":"example","country":"example","pageSize":1,"sendSmsAs":"example","workerDefaultStatus":1,"textMarketerUserName":"example","textMarketerPassword":"example","customSubContractorAccountNumber":true,"bankDetails":"example","healthAndSafety":"example","ppe":"example","assessmentDetails":"example","trainingDetails":"example","inductionDetails":"example","smsPerBranch":true,"pension":1,"ssp":1,"isRolledUpHoliday":true,"calculateVatOnRateType":true,"calculateVatOnClient":true}'};
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/agency \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "ownerName": "example", "businessType": "example", "address1": "example", "address2": "example", "postcode": "example", "telephone1": "example", "telephone2": "example", "mobile": "example", "fax": "example", "email": "example", "website": "example", "vatNumber": "example", "companyRegNumber": "example", "endOfTaxYear": "2026-04-15T12:00:00Z", "yearStartDate": "2026-04-15T12:00:00Z", "weekEndingDateOfFirstWeek": "2026-04-15T12:00:00Z", "smsPurchased": 1, "customAccountNumber": true, "blockTimesheetAgreement": "example", "firstDayOfWeek": "example", "postCodeSearch": true, "subbyNameInPlan": true, "modifiedBy": "example", "modifiedOn": "2026-04-15T12:00:00Z", "holidayAccrualMethodId": 1, "holidayYearStartDate": "2026-04-15T12:00:00Z", "holidayYearByWorkStartDate": true, "weeklyCappedHours": 1, "weeksToCalculateAveragePay": 1, "authorizedPassword": "example", "town": "example", "county": "example", "country": "example", "pageSize": 1, "sendSmsAs": "example", "workerDefaultStatus": 1, "textMarketerUserName": "example", "textMarketerPassword": "example", "customSubContractorAccountNumber": true, "bankDetails": "example", "healthAndSafety": "example", "ppe": "example", "assessmentDetails": "example", "trainingDetails": "example", "inductionDetails": "example", "smsPerBranch": true, "pension": 1, "ssp": 1, "isRolledUpHoliday": true, "calculateVatOnRateType": true, "calculateVatOnClient": true }'Updates the mutable settings of your own agency: trading name, contact details, the financial and holiday year start dates, the first day of the working week, and the weekly capped hours. Fields not listed on the request are left unchanged. There is no agency identifier to pass — the agency is always your own. Changing the year start dates or the first day of the week affects how future weeks are aligned; it does not restate weeks already worked.
Access. Requires a client-credentials access token. Tokens issued through the interactive user login are rejected.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
ownerName
required
string
businessType
required
string
address1
required
string
address2
required
string
postcode
required
string
telephone1
required
string
telephone2
required
string
mobile
required
string
fax
required
string
email
required
string
website
required
string
vatNumber
required
string
companyRegNumber
required
string
endOfTaxYear
required
string format: date-time
yearStartDate
required
string format: date-time
weekEndingDateOfFirstWeek
required
string format: date-time
smsPurchased
required
integer format: int32
customAccountNumber
required
boolean
blockTimesheetAgreement
required
string
firstDayOfWeek
required
string
postCodeSearch
required
boolean
subbyNameInPlan
required
boolean
modifiedBy
required
string
modifiedOn
required
string format: date-time
holidayAccrualMethodId
required
integer format: uint8
holidayYearStartDate
required
string format: date-time
holidayYearByWorkStartDate
required
boolean
weeklyCappedHours
required
number format: double
weeksToCalculateAveragePay
required
number format: double
authorizedPassword
required
string
town
required
string
county
required
string
country
required
string
pageSize
required
integer format: int32
sendSmsAs
required
string
workerDefaultStatus
required
integer format: int16
textMarketerUserName
required
string
textMarketerPassword
required
string
customSubContractorAccountNumber
required
boolean
bankDetails
required
string
healthAndSafety
required
string
ppe
required
string
assessmentDetails
required
string
trainingDetails
required
string
inductionDetails
required
string
smsPerBranch
required
boolean
pension
required
number format: float
ssp
required
number format: float
isRolledUpHoliday
required
boolean
calculateVatOnRateType
required
boolean
calculateVatOnClient
required
boolean
Examplegenerated
{ "ownerName": "example", "businessType": "example", "address1": "example", "address2": "example", "postcode": "example", "telephone1": "example", "telephone2": "example", "mobile": "example", "fax": "example", "email": "example", "website": "example", "vatNumber": "example", "companyRegNumber": "example", "endOfTaxYear": "2026-04-15T12:00:00Z", "yearStartDate": "2026-04-15T12:00:00Z", "weekEndingDateOfFirstWeek": "2026-04-15T12:00:00Z", "smsPurchased": 1, "customAccountNumber": true, "blockTimesheetAgreement": "example", "firstDayOfWeek": "example", "postCodeSearch": true, "subbyNameInPlan": true, "modifiedBy": "example", "modifiedOn": "2026-04-15T12:00:00Z", "holidayAccrualMethodId": 1, "holidayYearStartDate": "2026-04-15T12:00:00Z", "holidayYearByWorkStartDate": true, "weeklyCappedHours": 1, "weeksToCalculateAveragePay": 1, "authorizedPassword": "example", "town": "example", "county": "example", "country": "example", "pageSize": 1, "sendSmsAs": "example", "workerDefaultStatus": 1, "textMarketerUserName": "example", "textMarketerPassword": "example", "customSubContractorAccountNumber": true, "bankDetails": "example", "healthAndSafety": "example", "ppe": "example", "assessmentDetails": "example", "trainingDetails": "example", "inductionDetails": "example", "smsPerBranch": true, "pension": 1, "ssp": 1, "isRolledUpHoliday": true, "calculateVatOnRateType": true, "calculateVatOnClient": true}Responses
Section titled “Responses”OK
Media typeapplication/json
object
ownerName
required
string
businessType
required
string
address1
required
string
address2
required
string
postcode
required
string
telephone1
required
string
telephone2
required
string
mobile
required
string
fax
required
string
email
required
string
website
required
string
vatNumber
required
string
companyRegNumber
required
string
endOfTaxYear
required
string format: date-time
yearStartDate
required
string format: date-time
weekEndingDateOfFirstWeek
required
string format: date-time
currentNi
required
number format: float
freepay
required
number format: float
vatRate
required
number format: double
smsPurchased
required
integer format: int32
employeeDefaultTaxCode
required
string
customAccountNumber
required
boolean
blockTimesheetAgreement
required
string
firstDayOfWeek
required
string
postCodeSearch
required
boolean
subbyNameInPlan
required
boolean
modifiedBy
required
string
modifiedOn
required
string format: date-time
holidayAccrualMethodId
required
integer format: uint8
awRBreakWeeks
required
integer format: int16
awRSicknessBreakWeeks
required
integer format: int16
awRJuryServiceBreakWeeks
required
integer format: int16
awRMaternityBreakWeeks
required
integer format: int16
awRPaternityBreakWeeks
required
integer format: int16
awRAdoptionBreakWeeks
required
integer format: int16
awRUnpaidLeaveBreakWeeks
required
integer format: int16
holidayYearStartDate
required
string format: date-time
holidayYearByWorkStartDate
required
boolean
weeklyCappedHours
required
number format: double
weeksToCalculateAveragePay
required
number format: double
town
required
string
county
required
string
country
required
string
pageSize
required
integer format: int32
sendSmsAs
required
string
workerDefaultStatus
required
integer format: int16
customSubContractorAccountNumber
required
boolean
bankDetails
required
string
healthAndSafety
required
string
ppe
required
string
assessmentDetails
required
string
trainingDetails
required
string
inductionDetails
required
string
smsPerBranch
required
boolean
pension
required
number format: float
ssp
required
number format: float
isRolledUpHoliday
required
boolean
calculateVatOnRateType
required
boolean
calculateVatOnClient
required
boolean
Examplegenerated
{ "ownerName": "example", "businessType": "example", "address1": "example", "address2": "example", "postcode": "example", "telephone1": "example", "telephone2": "example", "mobile": "example", "fax": "example", "email": "example", "website": "example", "vatNumber": "example", "companyRegNumber": "example", "endOfTaxYear": "2026-04-15T12:00:00Z", "yearStartDate": "2026-04-15T12:00:00Z", "weekEndingDateOfFirstWeek": "2026-04-15T12:00:00Z", "currentNi": 1, "freepay": 1, "vatRate": 1, "smsPurchased": 1, "employeeDefaultTaxCode": "example", "customAccountNumber": true, "blockTimesheetAgreement": "example", "firstDayOfWeek": "example", "postCodeSearch": true, "subbyNameInPlan": true, "modifiedBy": "example", "modifiedOn": "2026-04-15T12:00:00Z", "holidayAccrualMethodId": 1, "awRBreakWeeks": 1, "awRSicknessBreakWeeks": 1, "awRJuryServiceBreakWeeks": 1, "awRMaternityBreakWeeks": 1, "awRPaternityBreakWeeks": 1, "awRAdoptionBreakWeeks": 1, "awRUnpaidLeaveBreakWeeks": 1, "holidayYearStartDate": "2026-04-15T12:00:00Z", "holidayYearByWorkStartDate": true, "weeklyCappedHours": 1, "weeksToCalculateAveragePay": 1, "town": "example", "county": "example", "country": "example", "pageSize": 1, "sendSmsAs": "example", "workerDefaultStatus": 1, "customSubContractorAccountNumber": true, "bankDetails": "example", "healthAndSafety": "example", "ppe": "example", "assessmentDetails": "example", "trainingDetails": "example", "inductionDetails": "example", "smsPerBranch": true, "pension": 1, "ssp": 1, "isRolledUpHoliday": true, "calculateVatOnRateType": true, "calculateVatOnClient": true}Bad Request
Media typeapplication/problem+json
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Unauthorized
Media typeapplication/problem+json
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Forbidden
Media typeapplication/problem+json
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Not Found
Media typeapplication/problem+json
object
type
string
title
string
status
integer format: int32
detail
string
instance
string
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}
