Awell Health Developer Hub
Developer Hub

This request allows us to update the status of the message activity to "DONE".

Request

Mutation

  • graphql
01mutation MarkMessageAsRead($input: MarkMessageAsReadInput!) {
02 markMessageAsRead(input: $input) {
03 activity {
04 id
05 status
06 }
07 }
08}

Variables

  • json
01{
02 "input": {
03 "activity_id": "{{MESSAGE_ACTIVITY_ID}}"
04 }
05}

Specifying the user

The optional X-User-ID header can be used to specify which user has read the message. When this header is present, Awell Orchestration will log a subactivity indicating that this specific user read the message.

  • json
01{
02 "X-User-ID": "{{USER_ID}}"
03}

How to use