Jasmin Developers - Web API Reference

Platform | Group

Service to manage entities of type 'Group'.

Overview


URL api/{tenantKey}/{orgKey}/identity/groups
Methods Supported GET, POST, PUT, DELETE

All Operations

This service includes the following operations:

All Resources

This service uses the following resources:

GET Operations

GET Groups (odata)

Returns a page of the list of all the entity records available.

The following elements are optional:

opts (ODataQueryOptions) OData query option.

Response:

When successful, the response body contains the list of records available. See GroupResource.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

GET /identity/groups/odata

GET Group by identifier

Returns the entity record that matches the specified identifier.

The following elements are required:

id (string) The record identifier.

Response:

When successful, the response body contains the entity record. See GroupResource.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

GET /identity/groups/{id}

GET Group by key

Returns the entity record that matches the specified key.

The following elements are required:

groupKey (string) Group.

Response:

When successful, the response body contains the entity record. See GroupResource.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

GET /identity/groups/{groupKey}

POST Operations

POST UserGroups

Creates a new entity record.

The following elements are required:

groupResource (ApiUserGroupsResource) The request body should contain the entity record that should be created.
See ApiUserGroupsResource.

Response:

When successful, the response body contains the new entity record identifier. The resource header location property contains the URL for the new entity record. See ApiUserGroupsResource.

Response status codes:

201 Created. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

POST /identity/groups

POST Add Users by keys

Adds the specified 'Users' to the 'Group' (by specifying its keys).

The following elements are required:

groupKey (string) Group.
value (Array of string) A list of record keys to be added.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

POST /identity/groups/{groupKey}/users/add

POST Add Users by identifiers

Adds the specified 'Users' to the 'Group' (by specifying its identifiers).

The following elements are required:

groupKey (string) Group.
value (Array of string) A list of record identifiers to be added.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

POST /identity/groups/{groupKey}/users/addById

POST Remove Users by keys

Removes the specified 'Users' to the 'Group' (by specifying its keys).

The following elements are required:

groupKey (string) Group.
value (Array of string) A list of record keys to be removed.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

POST /identity/groups/{groupKey}/users/remove

POST Remove Users by identifiers

Removes the specified 'Users' to the 'Group' (by specifying its identifiers).

The following elements are required:

groupKey (string) Group.
value (Array of string) A list of record identifiers to be removed.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

POST /identity/groups/{groupKey}/users/removeById

PUT Operations

PUT Set Email Group

Updates the value of attribute 'Email' in the specified entity record.

The following elements are required:

groupKey (string) Group.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /identity/groups/{groupKey}/email

PUT Set GroupKey Group

Updates the value of attribute 'GroupKey' in the specified entity record.

The following elements are required:

groupKey (string) Group.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /identity/groups/{groupKey}/groupKey

PUT Set IsActive Group

Updates the value of attribute 'IsActive' in the specified entity record.

The following elements are required:

groupKey (string) Group.
value (bool) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

PUT /identity/groups/{groupKey}/isActive

PUT Set Name Group

Updates the value of attribute 'Name' in the specified entity record.

The following elements are required:

groupKey (string) Group.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /identity/groups/{groupKey}/name

PUT Set Notes Group

Updates the value of attribute 'Notes' in the specified entity record.

The following elements are required:

groupKey (string) Group.
value (string) The request body should contain the new value for the attribute.

Response:

When successful, the response body is empty.

Response status codes:

200 OK. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.

Resource URL:

PUT /identity/groups/{groupKey}/notes

DELETE Operations

DELETE Group by identifier

Deletes the entity record that matches the specified identifier.

The following elements are required:

id (string) The record identifier.

Response:

When successful, the response body is empty.

Response status codes:

204 Deleted. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

DELETE /identity/groups/{id}

DELETE Group by key

Deletes the entity record that matches the specified key.

The following elements are required:

groupKey (string) Group.

Response:

When successful, the response body is empty.

Response status codes:

204 Deleted. The operation was completed successfully.
400 BadRequest. The request parameters are invalid.
404 NotFound. The specified record does not exist.

Resource URL:

DELETE /identity/groups/{groupKey}

Resources


ApiUserGroupsResource

The following elements are required:

groupKey (string) Group.
name (string) Name.

The following elements are optional:

email (string) Email.
notes (string) Notes.


GroupResource

The following elements are required:

groupKey (string) Group.
name (string) Name.

The following elements are optional:

email (string) Email.
notes (string) Notes.
users (User) Users.