Updates the capacity of the specified user. The capacity is stored for the user's planning.
Authentication
AuthorizationBearerSend your token in the Authorization: Bearer <token> header. See Authentication for API keys and OAuth.
Path parameters
userIdstringRequiredThe user whose capacity should be updated.
Request body Required
Updated capacity values for each day of the week.
application/json
capacityPerWeekinteger or nullOptionalDeprecatedBackward compatibility property. The capacity of the user per week, in seconds. If this value is null, and all the daily values are null as well, then the default value will be set to the default value.
moninteger or nullOptionalThe user's capacity on Monday, in seconds.
tueinteger or nullOptionalThe user's capacity on Tuesday, in seconds.
wedinteger or nullOptionalThe user's capacity on Wednesday, in seconds.
thuinteger or nullOptionalThe user's capacity on Thursday, in seconds.
friinteger or nullOptionalThe user's capacity on Friday, in seconds.
satinteger or nullOptionalThe user's capacity on Saturday, in seconds.
suninteger or nullOptionalThe user's capacity on Sunday, in seconds.
Responses
200 OK
application/json
userIdstringOptionalThe id of the user this capacity belongs to.
weeklyCapacityobjectOptionalShow 7 properties
monintegerOptionalThe user's capacity on Monday, in seconds.
tueintegerOptionalThe user's capacity on Tuesday, in seconds.
wedintegerOptionalThe user's capacity on Wednesday, in seconds.
thuintegerOptionalThe user's capacity on Thursday, in seconds.
friintegerOptionalThe user's capacity on Friday, in seconds.
satintegerOptionalThe user's capacity on Saturday, in seconds.
sunintegerOptionalThe user's capacity on Sunday, in seconds.
createdOnstringOptionalThe date this user capacity was created.
createdBystringOptionalThe id of the user who created this user capacity.
updatedOnstringOptionalThe date when this user capacity was last updated.
updatedBystringOptionalThe id of the user who updated the user capacity.
capacityPerWeekintegerOptionalDeprecatedThe capacity of the user per week, in seconds.
401 Unauthorized
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.