Skip to main content

Update existing stakeholder

Use updatePersonStakeholderInput or updateBusinessStakeholderInput within the UnderwritingApplicationStakeholderInput to modify an existing stakeholder. You must include the stakeholder’s id in the update input. Only fields provided in the update request are changed.
ScenarioAfter submission, an underwriter notices that Ben’s phone number is incorrect in the application. Ben updates his stakeholder information using his ID to correct the phone number.
Each stakeholder has a unique ID assigned when they are added to the application. This ID must be used when updating or removing the stakeholder.
mutation UpdateUnderwritingApplication($input: UnderwritingApplicationUpdateInput!) {
  updateUnderwritingApplication(input: $input) {
    underwritingApplication {
      id
      stakeholders {
        id
        ... on PersonStakeholderOutput {
          telephoneNumber
        }
      }
    }
    errors {
      ... on UnderwritingApplicationStakeholderFieldValidationError {
        message
        code
      }
    }
  }
}
{
  "data": {
    "updateUnderwritingApplication": {
      "underwritingApplication": {
        "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "stakeholders": [
          {
            "id": "d4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f80",
            "telephoneNumber": "5555555678"
          }
        ]
      },
      "errors": []
    }
  }
}