API

System APIs

POST system/users/{userId}/notifications

Creates a new notification

HTTP method POST
URI https://api.rambase.net/system/users/{userId}/notifications
Supported formats Xml, Html, Json (ex. $format=json)
- URI parameter {userId} User identifier
Integer, minimum 100
Successful HTTP status code 201
API resource identifier 6285, version 7

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
<UserNotification>
2
     <Subject
Subject

Required/mandatory field

Subject of the notification

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

Required/mandatory field

The user id the notification is sent from

Minimum value: 100

>
{Integer}</TriggeredBy>
4
     <Category
Category

The type of category the notification belongs to

Applicable domain values can be found here

This field is optional.

>
{Integer}</Category>
5
     <Url
Url

Url used to store link with all app information like id, filter, sorting, +++

This field is optional.

>
{String}</Url>
6
     <Recipient
Recipient

Required/mandatory field

The user id the notification is sent to

Minimum value: 100

>
{Integer}</Recipient>
7
     <IsPinned
IsPinned

Marked the notification as pinned/important

Default value: False

This field is optional.

>
{Boolean}</IsPinned>
8
</UserNotification>
1
{
2
     "userNotification": {
3
          "subject
Subject

Required/mandatory field

Subject of the notification

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

Required/mandatory field

The user id the notification is sent from

Minimum value: 100

":
"{Integer}",
5
          "category
Category

The type of category the notification belongs to

Applicable domain values can be found here

This field is optional.

":
"{Integer}",
6
          "url
Url

Url used to store link with all app information like id, filter, sorting, +++

This field is optional.

":
"{String}",
7
          "recipient
Recipient

Required/mandatory field

The user id the notification is sent to

Minimum value: 100

":
"{Integer}",
8
          "isPinned
IsPinned

Marked the notification as pinned/important

Default value: False

This field is optional.

":
"{Boolean}"
9
     }
10
}

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.

$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
$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.
$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]

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.

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
     <Url
Url

Url used to store link with all app information like id, filter, sorting, +++

>
{String}</Url>
14
     <Recipient
Recipient

The user id the notification is sent to

>
15
          <UserId
UserId

User identifier

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

Name of the user

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

First name of the user

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

User reference

>
{String}</UserLink>
19
     </Recipient>
20
     <IsPinned
IsPinned

Marked the notification as pinned/important

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

Notification reference

>
{String}</UserNotificationLink>
22
</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
          "url
Url

Url used to store link with all app information like id, filter, sorting, +++

":
"{String}",
15
          "recipient
Recipient

The user id the notification is sent to

":
{
16
               "userId
UserId

User identifier

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

Name of the user

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

First name of the user

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

User reference

":
"{String}"
20
          },
21
          "isPinned
IsPinned

Marked the notification as pinned/important

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

Notification reference

":
"{String}"
23
     }
24
}

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 101013 HTTP 404 Sub-module not found
Error 101420 HTTP 404 Setting definition not found