Add existing individuals to a case

Add previously verified individuals to an existing case, by individual ID or profile ID.

Use addExistingIndividualsToCase to add previously verified individuals to an existing case. Identify each individual by either its individualId or its profileId; for a profile, the latest eligible individual on the profile is added. The response lists every individual on the case.

Required scope: case-management

Request

mutation addExistingIndividualsToCase($input: AddExistingIndividualsToCaseInput!) {
  addExistingIndividualsToCase(input: $input) {
    ... on CaseInformation {
      caseId
      individuals {
        individualId
        profileId
        preferredName {
          fullName
        }
      }
    }
    ... on ValidationErrors {
      errors {
        message
      }
    }
  }
}

Variables

{
  "input": {
    "caseId": "48213",
    "existingIndividuals": [
      {
        "individualId": "19764"
      },
      {
        "profileId": "282c8c24-423c-c00a-1551-6627b6c9dbc3"
      }
    ]
  }
}

Response

{
  "data": {
    "addExistingIndividualsToCase": {
      "caseId": "48213",
      "individuals": [
        {
          "individualId": "20588",
          "profileId": "e5b95bf0-e14a-5ce3-f00c-01a267fd3009",
          "preferredName": {
            "fullName": "Jane Citizen"
          }
        },
        {
          "individualId": "20417",
          "profileId": "6d1f4b2a-3c8e-4a7d-9b5f-2e1c0d9a8b7c",
          "preferredName": {
            "fullName": "John Citizen"
          }
        },
        {
          "individualId": "19764",
          "profileId": "0f8ff91d-fe3d-48d7-a4aa-142ecbea3872",
          "preferredName": {
            "fullName": "Sam Citizen"
          }
        },
        {
          "individualId": "19821",
          "profileId": "282c8c24-423c-c00a-1551-6627b6c9dbc3",
          "preferredName": {
            "fullName": "Tama Citizen"
          }
        }
      ]
    }
  }
}