Unassign users from a case

Unassign users from a case without changing its other assignees.

Use removeCaseAssignees to unassign users from an open case. Identify users by userIds, userEmails or both. Users who are not assigned are ignored, and the response lists the users still assigned to the case.

Required scope: case-management

Request

mutation removeCaseAssignees($input: RemoveCaseAssigneesInput!) {
  removeCaseAssignees(input: $input) {
    ... on CaseInformation {
      caseId
      assignedUsers {
        id
        name
      }
    }
    ... on ValidationErrors {
      errors {
        message
      }
    }
  }
}

Variables

{
  "input": {
    "caseId": "48213",
    "userEmails": [
      "tom.walker@example.com"
    ]
  }
}

Response

{
  "data": {
    "removeCaseAssignees": {
      "caseId": "48213",
      "assignedUsers": [
        {
          "id": "1042",
          "name": "Sarah Mitchell"
        }
      ]
    }
  }
}