HP Anywhere API Reference
Events REST API

Description

Create a new activity and post it to the system or add a system post and users to an existing activity.

URL

POST: .../rest/api/V2/apps/{appId}/events

Headers

Body

See Event Body.

Remarks

Example of the use of this resource:

  1. A new expense report is created on the system, using Mobile, Desktop, Web, HP Anywhere, or another UI.
  2. This resource is posted, notifying the system that a new report was created.
  3. HP Anywhere creates a new activity for the manager with the report as the context object.
  4. HP Anywhere pushes a notification to the manager.
  5. The manager can click the activity on the front page and see the report detail page for the new report.

Context Object

If event context object does not exist in any activity:

If the event context object exists in one or more activities:

Notifications

A notification is set to each user if:

When adding a user to an existing private conversation, a new private conversation is created with the users in the event.

If notificationType is specified in the request body, the type must exist in your App admin setting. The NotificationType setting is used to define which notification channels are relevant for this event. If the type is not defined in the admin setting, and notificationType is not specified in the request body, the default HP Anywhere notification type is used. The default is FRONTPAGE channel only.

For more details, see the App Supported Notification Types section of the sample XML in topic Admin Settings XML