Skip to main content
Version: v5.0

Device

The Device API allows you to list, create, update, search by ID, and delete devices.

List devices#

Endpoints#

GET notificationsvc/api/v1/device

Request#

Request body#

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

None

Response#

Codes#

CodeDescription
200Success
400Bad Request
404Not Found

Response#

{  _offset?: integer  _pageSize?: integer  _total?: integer  _list: {    requestedAt?: string    acceptedAt?: string    cancelledAt?: string    _id?: string    _owner: {      _irn: string    }    _status?: enum[OK, FAILING, BLOCKED]    _transport: enum[EMAIL, PUSH, WEBSOCKET, WEBHOOK]    _email: {      _address: string    }    _webhook: {      _url: string    }    _createdAt?: string    _updatedAt?: string    _version?: integer  }[]}

Create device#

Endpoints#

POST notificationsvc/api/v1/device

Request#

Request body#

ParameterTypeDescriptionRequired
_nsFilterStringEvent filter to applyOptional
Request body example#
{  _owner: {    _irn: string  }  _transport: enum[EMAIL, PUSH, WEBSOCKET, WEBHOOK]  _email: {    _address: string  }  _webhook: {    _url: string  }}

Response#

Codes#

CodeDescription
200Success
400Bad Request
404Not Found

Response#

{  requestedAt?: string  acceptedAt?: string  cancelledAt?: string  _id?: string  _owner: {    _irn: string  }  _status?: enum[OK, FAILING, BLOCKED]  _transport: enum[EMAIL, PUSH, WEBSOCKET, WEBHOOK]  _email: {    _address: string  }  _webhook: {    _url: string  }  _createdAt?: string  _updatedAt?: string  _version?: integer}

Get device by ID#

Endpoints#

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

Request#

Request body#

ParameterTypeDescriptionRequired
_nsFilterStringEvent filter to applyOptional
Request body example#

None

Response#

Codes#

CodeDescription
200Success
400Bad Request
404Not Found

Response#

{  requestedAt?: string  acceptedAt?: string  cancelledAt?: string  _id?: string  _owner: {    _irn: string  }  _status?: enum[OK, FAILING, BLOCKED]  _transport: enum[EMAIL, PUSH, WEBSOCKET, WEBHOOK]  _email: {    _address: string  }  _webhook: {    _url: string  }  _createdAt?: string  _updatedAt?: string  _version?: integer}

Update device by ID#

Endpoints#

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

Request#

Request body#

ParameterTypeDescriptionRequired
_nsFilterStringEvent filter to applyOptional
_versionIntegerVersion of deviceOptional
Request body example#



Response#

Codes#

CodeDescription
200Success
400Bad Request
404Not Found

Response#

{  requestedAt?: string  acceptedAt?: string  cancelledAt?: string  _id?: string  _owner: {    _irn: string  }  _status?: enum[OK, FAILING, BLOCKED]  _transport: enum[EMAIL, PUSH, WEBSOCKET, WEBHOOK]  _email: {    _address: string  }  _webhook: {    _url: string  }  _createdAt?: string  _updatedAt?: string  _version?: integer}

Delete device by ID#

Endpoints#

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

Request#

Request body#

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


Response#

Codes#

CodeDescription
200Success
400Bad Request
404Not Found

Response#