Skip to main content
POST
Unassign teams
Latest stable version
Unassigning does not stop at the team assignment: every schedule and on-call of the affected teams, over the range you send, is deleted along with it.Two optional parameters widen the scope when you leave them out:
  • without team_ids, the collaborator is unassigned from every team it belongs to;
  • without head, both head and side assignments are targeted.
The periods themselves behave like any other timeline: a period overlapping your range is shortened, split in two, or deleted outright.See Team periods.

Body

application/json
resource_id
string<snowflake>
required
Example:

"872815618512410358"

date_range
string<local-date-interval>
required
Example:

"2019-11-11/2019-12-12"

team_ids
string<snowflake>[]
head
boolean
warning_aware
boolean
default:false

Unassigning resource to a team will be done only if you provide 'warning_aware: true'.

Response

Resource successfully unassigned from team(s).