Updates the retainer settings. Date changes cannot overlap another retainer, and the retainer period cannot be changed.
Authentication
AuthorizationBearerSend your token in the Authorization: Bearer <token> header. See Authentication for API keys and OAuth.
Path parameters
projectIdstringRequiredThe id of the project to update the retainer for.
retainerIdstringRequiredThe id of the retainer.
Request body Required
The model to update the retainer.
application/json
timeBudgetintegerOptionalThe time budget per retainer period in seconds. The default budget amount for new budgets in this retainer.
timezonestring or nullOptionalThe timezone for when new budgets are created.
rollOverUnderspentBudgetbooleanOptionalWhether underspent budgets should be rolled over to the next period.
rollOverOverspentBudgetbooleanOptionalWhether overspent budgets should be rolled over to the next period.
startDatestringOptionalThe start of the retainer contract.
endDatestring or nullOptionalThe end of the retainer contract until new budgets will be created. Optional.
syncProjectDatesbooleanOptionalWhether the project start and due dates should be synced to the retainer start and end dates.
Responses
200 OK
application/json
timeBudgetintegerOptionalThe time budget per retainer period in seconds. The default budget amount for new budgets in this retainer.
timezonestring or nullOptionalThe timezone for when new budgets are created.
rollOverUnderspentBudgetbooleanOptionalWhether underspent budgets should be rolled over to the next period.
rollOverOverspentBudgetbooleanOptionalWhether overspent budgets should be rolled over to the next period.
startDatestringOptionalThe start of the retainer contract.
endDatestring or nullOptionalThe end of the retainer contract until new budgets will be created. Optional.
syncProjectDatesbooleanOptionalWhether the project start and due dates should be synced to the retainer start and end dates.
idstringOptionalThe id of the retainer.
retainerPeriodstring or nullOptionalThe period for new budgets in this retainer. Currently only 'monthly' is supported.
projectIdstringOptionalThe project this retainer is associated with.
isExternalbooleanOptionalWhether the retainer belongs to an external project.
retainerBudgetsarray of object or nullOptionalThe budgets for this retainer. Each budget period (month) gets its own budget.
Show 5 properties
idstringOptionalThe id of the retainer budget.
timeBudgetintegerOptionalThe budget for this retainer period in seconds. Based on the carry over option selected in the retainer settings, the timebudget is adjusted by the carry over from the previous period.
trackedDurationintegerOptionalThe sum of tracked time in this retainer period. Contains billable and non-billable hours if the DeductNonBillableHours flag is set to true. Contains only billable hours if the DeductNonBillableHours flag is set to false. Time entries belong to the retainer period if their StartDate is between the StartDate and EndDate of the retainer period.
startDatestringOptionalThe start of the retainer period in UTC.
endDatestringOptionalThe end of the retainer period in UTC.
createdOnstringOptionalThe date this retainer was created.
createdBystringOptionalThe id of the user who created this retainer.
updatedOnstringOptionalThe date this retainer was last modified.
updatedBystringOptionalThe id of the user who last modified this retainer.
400 Bad Request
application/json
codestringRequired1 The error code.
descriptionstringRequired1 The description of the error.
linkstringRequired1 The link to the API documentation page.
detailsarray of string or nullOptionalA list of details describing the error.
validationErrorsarray of object or nullOptionalIf a validation error occurred, this contains the validation errors for each property.
Show 2 properties
propertystring or nullOptionalThe name of the property that failed validation.
messagestring or nullOptionalThe reason why this property failed validation.
traceIdstring or nullOptionalThe request trace id for tracking the request.
404 Not Found
application/json
codestringRequired1 The error code.
descriptionstringRequired1 The description of the error.
linkstringRequired1 The link to the API documentation page.
detailsarray of string or nullOptionalA list of details describing the error.
validationErrorsarray of object or nullOptionalIf a validation error occurred, this contains the validation errors for each property.
Show 2 properties
propertystring or nullOptionalThe name of the property that failed validation.
messagestring or nullOptionalThe reason why this property failed validation.
traceIdstring or nullOptionalThe request trace id for tracking the request.