Skip to main content

Remove stakeholder

Use removePersonStakeholderInput or removeBusinessStakeholderInput within the UnderwritingApplicationStakeholderInput to remove a stakeholder from the application. You only need to provide the stakeholder’s id to remove them.
ScenarioDuring the application process, Ben realizes that a business partner he had initially listed as a stakeholder is no longer involved with the keyboard company. He removes this stakeholder by ID before submitting the application for review.
Removing required stakeholders (such as owners or control persons) may cause validation to fail when you submit the application. Ensure you maintain all required stakeholder roles.
mutation UpdateUnderwritingApplication($input: UnderwritingApplicationUpdateInput!) {
  updateUnderwritingApplication(input: $input) {
    underwritingApplication {
      id
      stakeholders {
        id
        roles
      }
    }
    errors {
      ... on UnderwritingApplicationValidationError {
        message
        code
      }
    }
  }
}
{
  "data": {
    "updateUnderwritingApplication": {
      "underwritingApplication": {
        "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
        "stakeholders": [
          {
            "id": "d4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f80",
            "roles": ["OWNER", "CONTROL_PERSON"]
          }
        ]
      },
      "errors": []
    }
  }
}