Skip to content

Cannot Update EscalationPolicy for Account without teams subscription #511

@erwan690

Description

@erwan690

Teams Object of array on EscalationPolicy i thinks i can be omitempty

type EscalationPolicy struct {
	APIObject
	Name                       string           `json:"name,omitempty"`
	EscalationRules            []EscalationRule `json:"escalation_rules,omitempty"`
	Services                   []APIObject      `json:"services,omitempty"`
	NumLoops                   uint             `json:"num_loops,omitempty"`
	Teams                      []APIReference   `json:"teams,omitempty"`
	Description                string           `json:"description,omitempty"`
	OnCallHandoffNotifications string           `json:"on_call_handoff_notifications,omitempty"`
}

because it fail if i use UpdateEscalationPolicyWithContext

get Response :
HTTP response failed with status code 402, message: Required abilities are unavailable (code: 2014): The teams account ability is required to assign to a team

if it sent object teams with empty array on api update

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions