# Set IdleTime (AutoAway) via REST API?

**URL:** <https://forums.rocket.chat/t/set-idletime-autoaway-via-rest-api/12302>\
**Category:** Community Support\
**Created:** [October 1, 2021, 11:14am UTC](https://forums.rocket.chat/t/set-idletime-autoaway-via-rest-api/12302 "2021-10-01T11:14:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Snek](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@Snek](https://forums.rocket.chat/u/Snek)\
**Post date:** [October 1, 2021, 11:14am UTC](https://forums.rocket.chat/t/set-idletime-autoaway-via-rest-api/12302/1 "2021-10-01T11:14:31Z")

</div>

### Description

I would like to set a default IdleTime via the Rest API for the AutoAway setting. AutoAway can be set via the API:  
[https://developer.rocket.chat/reference/api/rest-api/endpoints/team-collaboration-endpoints/users-endpoints/set-preferences](https://developer.rocket.chat/reference/api/rest-api/endpoints/team-collaboration-endpoints/users-endpoints/set-preferences)

enableAutoAway: true/false

but there seems to be no endpoint for the time? am i missing something?  
worst case, can i set this via mongodb?

### Server Setup Information

- Version of Rocket.Chat Server: 3.18.1
- Operating System: Linux

---

<div class="post-metadata">

**Author:** ![Snek](https://avatars.discourse-cdn.com/v4/letter/s/e480ec/32.png) [@Snek](https://forums.rocket.chat/u/Snek)\
**Post date:** [October 1, 2021, 11:20am UTC](https://forums.rocket.chat/t/set-idletime-autoaway-via-rest-api/12302/2 "2021-10-01T11:20:10Z")

</div>

never mind, its:

“idleTimeLimit”
