Skip to main content
Version: v5.0

Group

The Group API allows you to list, create, update, search by ID, and delete groups.

List groups#

Endpoints#

GET notificationsvc/api/v1/group

Request#

Request body#

ParameterTypeDescriptionRequired
_nsFilterStringEvent filter to applyOptional
_countIntegerNumber of groups to be listed. Default is 10.Required
_offsetIntegerPosition in list of groups to begin listingRequired
_externalIdStringID of groupRequired
_nameStringName of groupRequired
_namespaceStringProject namespaceOptional
Request body example#

None

Response#

Codes#

CodeDescription
200Success
400Bad Request
404Not Found

Response#

{  _offset?: integer  _pageSize?: integer  _total?: integer  _list: {    _id?: string    _namespaces?: string[]    _createdAt?: string    _updatedAt?: string    _version?: integer    _name: string    _description?: string  }[]}

Create group#

Endpoints#

POST notificationsvc/api/v1/group

Request#

Request body#

ParameterTypeDescriptionRequired
_nsFilterStringEvent filter to applyOptional
Request body example#
{  _description?: string  _namespaces?: string[]  _name: string}

Response#

Codes#

CodeDescription
200Success
400Bad Request
404Not Found

Response#

{  _id?: string  _namespaces?: string[]  _createdAt?: string  _updatedAt?: string  _version?: integer  _name: string  _description?: string}

Get group by ID#

Endpoints#

GET notificationsvc/api/v1/group/{id}

Request#

Request body#

ParameterTypeDescriptionRequired
_nsFilterStringEvent filter to applyOptional
Request body example#

None

Response#

Codes#

CodeDescription
200Success
400Bad Request
404Not Found

Response#

{  _id?: string  _namespaces?: string[]  _createdAt?: string  _updatedAt?: string  _version?: integer  _name: string  _description?: string}

Update group by ID#

Endpoints#

PUT notificationsvc/api/v1/group/{id}

Request#

Request body#

ParameterTypeDescriptionRequired
_nsFilterStringEvent filter to applyOptional
_versionIntegerVersion of groupOptional
Request body example#
{  _description?: string}

Response#

Codes#

CodeDescription
200Success
400Bad Request
404Not Found

Response#

{  _id?: string  _namespaces?: string[]  _createdAt?: string  _updatedAt?: string  _version?: integer  _name: string  _description?: string}

Delete group by ID#

Endpoints#

DELETE notificationsvc/api/v1/group/{id}

Request#

Request body#

ParameterTypeDescriptionRequired
_nsFilterStringEvent filter to applyOptional
_versionStringVersion to apply
Request body example#


Response#

Codes#

CodeDescription
200Success
400Bad Request
404Not Found

Response#