API

System APIs

GET system/users/{userId}/notifications/{notificationId}

Notification details for provided identifier

HTTP method GET
URI https://api.rambase.net/system/users/{userId}/notifications/{notificationId}
Supported formats Xml, Html, Json (ex. $format=json)
- URI parameter {userId} User identifier
Integer, minimum 100
- URI parameter {notificationId} Notification identifier
Integer, minimum 100000
Successful HTTP status code 200
API resource identifier 6287, version 13

The following body must be added to the request. Mouse over fieldnames for description and other useful information about the fields. Note that fields in bold are required/mandatory.

Format:
1
1

The query string is placed after the resource URL, seperated with a questionmark (?). The query string is composed of a series of query parameters with values. See the page about query parameters on how to use these parameters.

$showDomainDescriptions Boolean, optional Set to "true" to include domain descriptions for fields using domain values. See the Domain values page for more information. Default value is false.
$lang String, optional Specifies the language used in the response, following the 3-letter ISO-639-1 [lll]
$access_token String, optional After successful login you get an access token which needs to be provided in all API requests. Even though it is possible to pass this token as query parameter, we recommended passing it using the HTTP request header as described in Authorization. Note that all access tokens have an expiration time.
$db String, optional Set the database/company for the request
$format String, optional Set the format of the response to use for the request. Accepted values are "xml", "html", "jsonstream", "json"
$useMinimumVersion Integer, optional Used to run a new version of an API resource when your API client is running a deprecated API resource. See the Breaking changes page for more information.
$select String, optional Use to define the fields to return in the response. Accepts a comma-separated list of field names. See the Expand and select page for more information.

Read more about filters and sorting on how to use filter parameters and named filters.

Read more about filters and sorting on how to use sortable parameters

Requesting this resource will yield the following response. Mouse over fieldnames (or fieldgroups) for descriptions and other useful information about the fields. Fields colored in grey is expandable fields.

Please note that some fields may be removed from the response, based on user roles/duties/permissions.

Format:
1
<UserNotification>
2
     <UserNotificationId
UserNotificationId

Notification identifier

>
{Integer}</UserNotificationId>
3
     <CreatedAt
CreatedAt

Date and time of creation

>
{Datetime}</CreatedAt>
4
     <Status
Status

Status of notification

Possible domain values can be found here

>
{Integer}</Status>
5
     <Subject
Subject

Subject of the notification

>
{String}</Subject>
6
     <TriggeredBy
TriggeredBy

The user id the notification is sent from

>
7
          <UserId
UserId

User identifier

>
{Integer}</UserId>
8
          <Name
Name

Name of the user

>
{String}</Name>
9
          <FirstName
FirstName

First name of the user

>
{String}</FirstName>
10
          <UserLink
UserLink

User reference

>
{String}</UserLink>
11
     </TriggeredBy>
12
     <Category
Category

The type of category the notification belongs to

Possible domain values can be found here

>
{Integer}</Category>
13
     <ObjectReference
ObjectReference

The document the notification is linked to

>
14
          <Database
Database

Company code/database the object belongs to

>
{String}</Database>
15
          <ObjectId
ObjectId

Identifier of the object

>
{Integer}</ObjectId>
16
          <ObjectType
ObjectType

Type of object

>
{String}</ObjectType>
17
          <RamBaseKey
RamBaseKey

Internal RamBase identifier of the object/item

>
{String}</RamBaseKey>
18
          <ObjectLink
ObjectLink

API reference to the object

>
{String}</ObjectLink>
19
          <ItemId
ItemId

Item-number of the object

>
{Integer}</ItemId>
20
          <ItemLink
ItemLink

API reference to the item

>
{String}</ItemLink>
21
          <ItemType
ItemType

Type of item

>
{String}</ItemType>
22
     </ObjectReference>
23
     <Recipient
Recipient

The user id the notification is sent to

>
24
          <UserId
UserId

User identifier

>
{Integer}</UserId>
25
          <Name
Name

Name of the user

>
{String}</Name>
26
          <FirstName
FirstName

First name of the user

>
{String}</FirstName>
27
          <UserLink
UserLink

User reference

>
{String}</UserLink>
28
     </Recipient>
29
     <IsPinned
IsPinned

Marked the notification as pinned/important

>
{Boolean}</IsPinned>
30
     <UserNotificationLink
UserNotificationLink

Notification reference

>
{String}</UserNotificationLink>
31
</UserNotification>
1
{
2
     "userNotification": {
3
          "userNotificationId
UserNotificationId

Notification identifier

":
"{Integer}",
4
          "createdAt
CreatedAt

Date and time of creation

":
"{Datetime}",
5
          "status
Status

Status of notification

Possible domain values can be found here

":
"{Integer}",
6
          "subject
Subject

Subject of the notification

":
"{String}",
7
          "triggeredBy
TriggeredBy

The user id the notification is sent from

":
{
8
               "userId
UserId

User identifier

":
"{Integer}",
9
               "name
Name

Name of the user

":
"{String}",
10
               "firstName
FirstName

First name of the user

":
"{String}",
11
               "userLink
UserLink

User reference

":
"{String}"
12
          },
13
          "category
Category

The type of category the notification belongs to

Possible domain values can be found here

":
"{Integer}",
14
          "objectReference
ObjectReference

The document the notification is linked to

":
{
15
               "database
Database

Company code/database the object belongs to

":
"{String}",
16
               "objectId
ObjectId

Identifier of the object

":
"{Integer}",
17
               "objectType
ObjectType

Type of object

":
"{String}",
18
               "ramBaseKey
RamBaseKey

Internal RamBase identifier of the object/item

":
"{String}",
19
               "objectLink
ObjectLink

API reference to the object

":
"{String}",
20
               "itemId
ItemId

Item-number of the object

":
"{Integer}",
21
               "itemLink
ItemLink

API reference to the item

":
"{String}",
22
               "itemType
ItemType

Type of item

":
"{String}"
23
          },
24
          "recipient
Recipient

The user id the notification is sent to

":
{
25
               "userId
UserId

User identifier

":
"{Integer}",
26
               "name
Name

Name of the user

":
"{String}",
27
               "firstName
FirstName

First name of the user

":
"{String}",
28
               "userLink
UserLink

User reference

":
"{String}"
29
          },
30
          "isPinned
IsPinned

Marked the notification as pinned/important

":
"{Boolean}",
31
          "userNotificationLink
UserNotificationLink

Notification reference

":
"{String}"
32
     }
33
}

List of available operations/actions for this resource.
See the operations documentation for more information about API operations.

Possible error codes the response might return:

Error 108805 HTTP 400 You can only view your own notifications