Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Update EscalationPolicy for Account without teams subscription #511

Open
erwan690 opened this issue Feb 6, 2024 · 0 comments
Open

Comments

@erwan690
Copy link

erwan690 commented Feb 6, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant