Assign users to an existing case

Assign more users to a case without changing its current assignees.

Use addCaseAssignees to assign more users to an open case. Identify users by userIds, userEmails or both. Users who are already assigned stay assigned, and the response lists every user now assigned to the case.

Required scope: case-management

Request

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

Variables

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

Response

{
  "data": {
    "addCaseAssignees": {
      "caseId": "48213",
      "assignedUsers": [
        {
          "id": "1042",
          "name": "Sarah Mitchell"
        },
        {
          "id": "1057",
          "name": "Tom Walker"
        }
      ]
    }
  }
}