Create Worker
POST/v1/api/productivity/workers
Creates a new worker.
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
- 500
Worker created 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.
Internal Server Error