Group API

The Group entity is used to manage user groups in Deepser.
Groups can be only created by Administrators that can access the Group Module.
Agents and Key Users can only retrieve the Groups.
End Users cannot access this resource via API.

Endpoints

http://deepserhost/api/rest/group/[id]
http://deepserhost/api/rest/groups
http://deepserhost/api/rest/group/[id]/relation/users

Roles

Here we list all the permissions by user role regarding the API:

 AdmininistratorAgentKey UserUser
Actions AllowedRETRIEVE
CREATE
UPDATE *
DELETE
RETRIEVERETRIEVE 

* UPDATE not allowed for endpoint:

http://deepdeskhost/api/rest/group/[id]/relation/users

Fields

Here we list all the fields of the entity to describe their meainings in Deepser:

FieldMeaning
entity_idThe unique ID to identify the record.
nameThe name of the group displayed in the system.
descriptionDescription of the group.
emailEmail address of the group.
levelSupport level of the group
statusThe status of the group. Typically 1 is Enabled, 0 is Disabled.
company_visibilityThis is similar to company_visibility of the Users. This is a general setting used to set the visibility for all members of the group.
user_idsAn Array containing all the users of the group.
formtemplate_idThe form template ID used by the record. Please refer to the Formtemplate ID guide of Deepser Docs.
updated_atLast update date of the record.
created_atThe creation date of the record.

To get only the users in a group (without all the group information) you must use the GET method with the endpoint:

http://deepserhost/api/rest/group/[id]/relation/users

It returns an array with the IDs of the users.

To add users in a group you must use the POST method with the endpoint:

http://deepserhost/api/rest/group/[id]/relation/users

JSON Payload Syntax: a JSON array with an array of the data to insert

[
	[
		21,
		22
	]
]

To delete users from a group you must use the DELETE method with the endpoint:

http://deepserhost/api/rest/group/[id]/relation/users

JSON Payload Syntax: a JSON array with an array of the data to delete

[
	[
		21,
		22
	]
]