Broadcasts
Property | Type | Description |
---|---|---|
title | string | The title of the broadcast. |
description | string | The description of the broadcast. |
tag_list | string[] | A list of tags. |
destination_team_ids | string[] | |
destination_account_user_ids | string[] | |
status | string | The current status state of the broadcast. queued|open|closed|errored |
response_requested | boolean | |
response_requested_by | timestamp | The deadline of when the destinations have to respond by. |
broadcast_response_options | BroadcastResponseOption[] | :id, :value, :position, :broadcast_responses_count |
broadcast_responses | BroadcastResponses[] | :id, :prefix_id, :account_user_id, :broadcast_response_option_id, :channel, :created_at |
POST https://api.pagertree.com/api/v4/broadcasts
def broadcast_params
params.permit(
:title,
:description,
:tag_list,
:response_requested,
:response_requested_by,
destination_team_ids: [],
destination_account_user_ids: [],
broadcast_response_options_attributes: [
:value
]
)
end
- title
- at least 1 destination (Team or Account User)
- if response requested, at least 1 response option
GET https://api.pagertree.com/api/v4/broadcasts/:id
PUT https://api.pagertree.com/api/v4/broadcasts/:id
DELETE https://api.pagertree.com/api/v4/broadcasts/:id
GET https://api.pagertree.com/api/v4/broadcasts
Last modified 5mo ago