Warning
For security reasons, the document is displayed in restricted mode as it is not the current version. There may be differences and errors due to this.
communication_manager/rest/live/coreServers/[{core_server_id} | getByName/{core_server_slug}]/users/[{user_id} | getByName/{username}]/status
{
"id": "99c6c017-7c86-4d78-89ca-dbc1267ffe76",
"configurationId": "215734e0-383d-11e2-81c1-0800200c9a66",
"name": "Available",
"type": "available",
"note": "",
"returnTime": -1,
"userCreated": false
}
| | |
---|
| | The id of the user status. |
| | The id of the configuration object that represents the user status. |
| | |
| | The status type. Determines the icon used for the status. See Status Types below. |
| | The note set for the status. |
| | The time the user has set to return, or -1 if no return time has been set. Represented as a unix timestamp, in milliseconds. |
| | True, if the status is a custom status set by the user; false, if the status is a pre-configured status. |
The following is a list of accepted status types. These types will be used in the JSON representation of the status, and in the set action when changing the status.
InformationThe current status type set on a user does not effect call flow or any other actions in the panel. The status is simply used for informational purposes.
- available
- unavailable
- away
- xa
- dnd
- chat
- altblue
- altgreen
- altpink
- altpurple
- altred
communication_manager/rest/live/coreServers/[{core_server_id} | getByName/{core_server_slug}]/users/[{user_id} | getByName/{username}]/status |
---|
| Accesses the status state of a specified user, in a core server. InformationThis resource will not be available if the user is not licensed/full, or no license is installed on the core server. Parameters: - core_server_id: the id of the parent core server
- core_server_slug: the slug of the parent core server
- user_id: the id of the parent user
- user_name: the username of the parent user
Errors: - 404 Not Found: Returned if no core server with the given id or slug exists
- 404 Not Found: Returned if no user with the given id or username exists in the specified core server
- 403 Forbidden: Returned if the user is not licensed/full, or no license is installed on the core server.
|
| Gets the status state of a specified user, in a core server. |
communication_manager/rest/live/coreServers/[{core_server_id} | getByName/{core_server_slug}]/users/[{user_id} | getByName/{username}]/status/set |
---|
| Updates the status of a user. InformationThis action will not be available if the user is not licensed/full, or no license is installed on the core server. Parameters: - core_server_id: the id of the parent core server
- core_server_slug: the slug of the parent core server
- user_id: the id of the user to update status on
- user_name: the username of the user to update status on
Errors: - 404 Not Found: Returned if no core server with the given id or slug exists
- 404 Not Found: Returned if no user with the given id or username exists in the specified core server
- 422 Unprocessable Entity: Returned if no JSON name property is given
- 422 Unprocessable Entity: Returned if no JSON type property is given
- 422 Unprocessable Entity: Returned if the JSON type property value is not valid
- 422 Unprocessable Entity: Returned if the JSON returnTime property value is to large, or non numerical value.
- 403 Forbidden: Returned if the user is not licensed/full, or no license is installed on the core server.
|
| Updates the status of the user. |
| { "name" : "Went back to the future", "type" : "away", "note" : "Let Doc Brown know", "returnTime" : 499132800 } Properties: | | |
---|
| | | | | The status type. Determines the icon used for the status. See Status Types above. | | | | | | The time the user has set to return, or -1 for not return time. Represented as a unix timestamp, in milliseconds. |
|
curl --user manager:manag3rpa55word -i -H "Accept: application/json" http://localhost:58080/communication_manager/rest/live/coreServers/ca5de6c4-17bd-46ce-95a2-8b29c7812ca4/users/status
curl --user manager:manag3rpa55word -i -H "Content-Type: application/json" -X POST -d '{"name" : "Went back in time","type" : "away","note" : "Let Doc Brown know","returnTime" : 499132800}' curl --user manager:manag3rpa55word -i -H "Accept: application/json" http://localhost:58080/communication_manager/rest/live/coreServers/ca5de6c4-17bd-46ce-95a2-8b29c7812ca4/users/status/set