Update Worker
PUT/v1/api/productivity/workers/:id
Updates a worker's information.
Auth Required
Required Permissions:
productivity.settings:write("Productivity Settings Write") ORproductivity.workers:write("Productivity Workers Write")
Note: This endpoint enforces
requireLocalSite. Ifsite_idis provided in the request body, it must match the device'sDEVICE_SITE_ID— requests targeting a remote site will be rejected.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
Worker updated successfully
Bad Request. The request was invalid or cannot be otherwise served.
Unauthorized. User is not authenticated or session is invalid.
Forbidden. User does not have the required permissions.
Resource not found
Internal Server Error