Updates the capacity of the specified user.

PUT
Updates the capacity of the user with the specified id. User planning data or admin permissions are required if the capacity of the specified user does not belong to the calling user.

Path parameters

userIdstringRequired
The id of the user.

Request

This endpoint expects an object.
capacityPerWeekintegerOptional
Backward 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.
monintegerOptional
The user's capacity on Monday, in seconds.
tueintegerOptional
The user's capacity on Tuesday, in seconds.
wedintegerOptional
The user's capacity on Wednesday, in seconds.
thuintegerOptional
The user's capacity on Thursday, in seconds.
friintegerOptional
The user's capacity on Friday, in seconds.
satintegerOptional
The user's capacity on Saturday, in seconds.
sunintegerOptional
The user's capacity on Sunday, in seconds.

Response

This endpoint returns an object
userIdstringOptional
The id of the user this capacity belongs to.
weeklyCapacityobjectOptional
createdOndatetimeOptional
The date this user capacity was created.
createdBystringOptional
The id of the user who created this user capacity.
updatedOndatetimeOptional
The date when this user capacity was last updated.
updatedBystringOptional
The id of the user who updated the user capacity.
capacityPerWeekintegerOptionalDeprecated
The capacity of the user per week, in seconds.