Update wellness event with specific ID

patch/events/{id}

Update a wellness event identified by the given ID. Only the attributes flag, read, and archive can be updated.

SecurityBearer
Request
path Parameters
id
required
string <uuid>
Default: "0908777a-788f-45da-afb8-295c626e4d14"

Event ID

Examples:
Update specific event
0908777a-788f-45da-afb8-295c626e4d14
Request Body schema: application/merge-patch+json
required

Request body can have the following attributes

read
boolean
Default: false

Boolean indicating the read status of the wellness event.

flag
boolean
Default: false

Boolean indicating whether the wellness event is flagged or not.

archive
boolean
Default: false

Boolean indicating whether the wellness event is archived or not.

Responses
200

Successfully updated the given wellness event

400

Bad Request

401

Unauthorized - Invalid JWT token in Request

404

A wellness event does not exist with the given ID.

422

Invalid request body

429

You have exceeded the allowed rate limit. Contact HPE support if it is an error.

500

Unexpected Server Error. Retry and contact HPE support if the error is not resolved.

Request samples
application/merge-patch+json
{
  • "read": true
}
Response samples
application/json
{
  • "event": {
    },
  • "success": true
}