Skip to main content

Assign Tag to Users

PATCH /api/v1/notifications/tags/{tagId}/users

Description

Assigns or unassigns a notification tag to a list of users. This endpoint is used to manage user assignments for specific notification tags, which helps in targeting notifications based on tags.

URL Parameters:

  • tagId (required): The unique identifier of the notification tag. This must be included in the URL path.

Headers:

  • tenantId (required): The tenant ID under which the operation is being performed. This is used to specify the tenant context.

Sample Request Body

{
"isAssigned": true,
"userIds": [
"string"
]
}

Request Body:

  • isAssigned (boolean, required): Indicates whether to assign (true) or unassign (false) the tag to/from the users.
  • userIds (array of strings, required): List of user IDs to be assigned or unassigned to the notification tag.