Comment on page
Teams
- Teams represent a group of account users. Every team has one active schedule and one active escalation policy.
Property | Type | Description |
---|---|---|
name | string | The name of the team |
escalation_policy_id | string | |
schedule_id | string | |
member_account_user_ids | string[] | |
admin_account_user_ids | string[] | IDs of the account users that take on the admin role for this team. |
drop_notifications | string | none|team_all|team_admins|oncall_rotation|specific_users |
handoff_notifications | string | none|team_all|team_admins|oncall_rotation|specific_users |
drop_notification_account_user_ids | string[] | If drop_notifications set to specific_users , the account user IDs to send drop notifications to. |
handoff_notification_account_user_ids | string[] | If handoff_notifications set to specific_users , the account user IDs to send drop notifications to. |
notes | string | Notes to be displayed for this team. |
attachments | hash | :filename, :url |
POST https://api.pagertree.com/api/v4/teams
def team_params
params.permit(
:meta,
:name,
:notes,
:drop_notifications,
:handoff_notifications,
member_account_user_ids: [],
admin_account_user_ids: [],
drop_notification_account_user_ids: [],
handoff_notification_account_user_ids: []
)
end
- name
A default schedule and escalation policy will be created by PagerTree.
GET https://api.pagertree.com/api/v4/teams/:id
PUT https://api.pagertree.com/api/v4/teams/:id
DELETE https://api.pagertree.com/api/v4/teams/:id
GET https://api.pagertree.com/api/v4/teams
Returns on-call event attendees for now for this team. (Handles repeating events and rotations)
GET https://api.pagertree.com/api/v4/teams/:id/current_oncall
Return alerts that have been assigned to this team.
GET https://api.pagertree.com/api/v4/teams/:id/alerts
Last modified 11mo ago