Create Announcement
Creates and sends an announcement to workers via email, text message, or both. Target all workers, a specific skillset, or a list of individual workers.
Targeting workers
You can target announcement recipients in three ways:- All workers — set
allto1. Theselected_workersandskillsetsfields are ignored. - By skillset — set
allto0and provide askillsetsID. Only workers with that skillset receive the announcement. - Specific workers — set
allto0and provide an array of worker IDs inselected_workers.
Delivery channels
Theoutput field controls how the announcement is delivered:
| Value | Channel |
|---|---|
1 | Email only |
2 | Text message only |
3 | Both email and text message |
message field supports HTML formatting. Keep the content under 1,000 characters.Authorizations
Body
Subject line of the announcement.
"Schedule update for next week"
Body content of the announcement. Supports HTML formatting.
1 - 1000"<p>Please review your updated shifts for next week.</p>"
Delivery channel for the announcement. 1 — email only. 2 — text message only. 3 — both email and text message.
1, 2, 3 3
Whether to send the announcement to all workers. 1 — send to all workers. 0 — send to specific workers (use selected_workers or skillsets to specify recipients).
0, 1 1
Admin IDs designated to receive worker replies to this announcement.
[3158]Skillset ID to filter recipients. When provided, only workers with this skillset receive the announcement. Ignored when all is 1.
Specific worker IDs to send the announcement to. Ignored when all is 1.
[4521, 4587]Response
Created