Skip to main content
POST
/
api
/
directory
/
resources.unassign-teams
Unassign resource from teams
curl --request POST \
  --url https://api.example.com/api/directory/resources.unassign-teams \
  --header 'Content-Type: application/json' \
  --data '
{
  "resource_id": "872815618512410358",
  "date_range": "2019-11-11/2019-12-12",
  "team_ids": "*",
  "head": true,
  "warning_aware": false
}
'
{
  "warning_type": "assign-no-conflict",
  "description": "<string>",
  "details": {
    "modifications": [],
    "deletions": [],
    "has_related_schedules": true,
    "has_related_on_calls": true,
    "has_locked_dates": true
  },
  "warning_aware": "<string>"
}

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
required

Refers to all teams

Available options:
*
Example:

"*"

head
boolean | null
warning_aware
boolean
default:false

Response

Resource successfully unassigned from team(s).