Hi Santiago,
Just adding to Kaio's response, while I am not aware of a native way to prevent agents from selecting a status once a time allowance has been exhausted, you may be able to monitor and report on it.
For example, you could use presence-related events such as v2.users.{id}.integrationpresence to track when users enter and leave specific statuses. The presenceDefinition.id can then be mapped back to the configured presence using GET /api/v2/presence/definitions.
This would allow you to track time spent in statuses such as "Bathroom" and potentially trigger notifications or workflows when thresholds are exceeded, although it would not natively prevent the status change itself.
------------------------------
Phaneendra
Technical Solutions Consultant
------------------------------