# AnnouncementTargetAudienceCreateOrUpdateDto

A model the API reference uses in a request or a response. The operation pages link every field typed as this model here.

Base DTO for announcement target audience configuration used in create/update operations.

## Fields
- `type` ([AudienceType](https://devportal.demo.winkpg.io/docs/api/models/AudienceType.md)): The type of audience targeting.
  Values:
  - `All`: All users within the announcement's scope receive the announcement.
  - `Roles`: Only users with specific roles within the scope receive the announcement. The RoleNames property specifies which roles.
  - `Users`: Only specific users within the scope receive the announcement. The UserIds property specifies which users.
- `roleNames` (array<string>): Role names when targeting by roles. Required: When Type == Roles. Max length: 256. Conditional: When Type == All. (nullable)
- `userIds` (array<string(uuid)>): User IDs when targeting specific users. Required: When Type == Users. Conditional: When Type == All. (nullable)

## See also

- [All documentation](https://devportal.demo.winkpg.io/llms.txt): the machine-readable index of every public page on this site.
