{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"You can set an Admin as away for the Inbox.\n\nWhen `away_mode_reassign` is `true`, the request can return a `403` if the teammate does not have Inbox access.\n\nRequires the `update_admins` OAuth scope.\n","properties":{"headers":{"type":"object","properties":{"Intercom-Version":{"$ref":"#/definitions/intercom_version","enum":["2.17"]}},"required":[],"additionalProperties":false},"path":{"type":"object","properties":{"admin_id":{"type":"integer","description":"The unique identifier of a given admin"}},"required":["admin_id"],"additionalProperties":false},"body":{"type":"object","required":["away_mode_enabled","away_mode_reassign"],"properties":{"away_mode_enabled":{"type":"boolean","description":"Set to `true` to change the status of the admin to away, or `false` to set them back to active.","examples":[true]},"away_mode_reassign":{"type":"boolean","description":"Set to \"true\" to assign any new conversation replies to your default inbox.","examples":[false]},"away_status_reason_id":{"type":"integer","description":"The unique identifier of the away status reason. Only allowed when `away_mode_enabled` is `true`, and the reason can't be archived, unless it is already the admin's current reason. Required if your workspace makes away status reasons mandatory.","examples":[12345]}},"examples":[{"away_mode_enabled":true,"away_mode_reassign":true,"away_status_reason_id":12345}]}},"required":["path"],"additionalProperties":false,"definitions":{"intercom_version":{"description":"Intercom API version.</br>If you omit the header, the API uses the version set in your app package, and 1.0 if none is set.","type":"string","enum":["1.0","1.1","1.2","1.3","1.4","2.0","2.1","2.2","2.3","2.4","2.5","2.6","2.7","2.8","2.9","2.10","2.11","2.12","2.13","2.14","2.15","2.16","2.17"],"examples":["2.17"]}}},"name":"Set an admin to away","id":"intercom.setawayadmin","example":{"path":{"admin_id":1}},"maxRequests":1,"summary":false}}