Add individuals to a case

Add new individuals to an existing case.

Use addIndividualsToCase to add new individuals to an existing case. The response lists every individual on the case.

Required scope: case-management

Request

mutation addIndividualsToCase($input: AddIndividualsToCaseInput!) {
  addIndividualsToCase(input: $input) {
    ... on CaseInformation {
      caseId
      name
      individuals {
        individualId
        preferredName {
          fullName
        }
      }
    }
    ... on ValidationErrors {
      errors {
        message
      }
    }
  }
}

Variables

{
  "input": {
    "caseId": "48213",
    "individuals": [
      {
        "preferredName": {
          "firstName": "Mia",
          "lastName": "Citizen"
        },
        "emailAddress": "mia.citizen@example.com",
        "needsVerification": true
      }
    ]
  }
}

Response

{
  "data": {
    "addIndividualsToCase": {
      "caseId": "48213",
      "name": "Jane Citizen, John Citizen",
      "individuals": [
        {
          "individualId": "20588",
          "preferredName": {
            "fullName": "Jane Citizen"
          }
        },
        {
          "individualId": "20417",
          "preferredName": {
            "fullName": "John Citizen"
          }
        },
        {
          "individualId": "20603",
          "preferredName": {
            "fullName": "Mia Citizen"
          }
        }
      ]
    }
  }
}