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 5

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

Required/mandatory field

The document the notification is linked to

>
6
          <Database
Database

Company code/database the object belongs to

This field is optional.

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

Required/mandatory field

Identifier of the object

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

Required/mandatory field

Type of object

>
{String}</ObjectType>
9
          <ItemId
ItemId

Item-number of the object

This field is optional.

>
{Integer}</ItemId>
10
          <ItemType
ItemType

Type of item

This field is optional.

>
{String}</ItemType>
11
     </ObjectReference>
12
     <Recipient
Recipient

Required/mandatory field

The user id the notification is sent to

Minimum value: 100

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

Marked the notification as pinned/important

Default value: False

This field is optional.

>
{Boolean}</IsPinned>
14
</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
          "objectReference
ObjectReference

Required/mandatory field

The document the notification is linked to

":
{
7
               "database
Database

Company code/database the object belongs to

This field is optional.

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

Required/mandatory field

Identifier of the object

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

Required/mandatory field

Type of object

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

Item-number of the object

This field is optional.

":
"{Integer}",
11
               "itemType
ItemType

Type of item

This field is optional.

":
"{String}"
12
          },
13
          "recipient
Recipient

Required/mandatory field

The user id the notification is sent to

Minimum value: 100

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

Marked the notification as pinned/important

Default value: False

This field is optional.

":
"{Boolean}"
15
     }
16
}

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
     <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 101814 HTTP 404 Employee not found