> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tesouro.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update stakeholder

> Modify existing person or business stakeholder details on an underwriting application by stakeholder ID.

### Update existing stakeholder

Use `updatePersonStakeholderInput` or `updateBusinessStakeholderInput` within the [`UnderwritingApplicationStakeholderInput`](/underwriting/reference/graphql/types/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.

<Callout icon="clapperboard-play" color="#6938EF" type="scenario">
  **Scenario**

  After 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.
</Callout>

<Warning>
  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.
</Warning>

<RequestExample>
  ```graphql Operation lines expandable theme={null}
  mutation UpdateUnderwritingApplication($input: UnderwritingApplicationUpdateInput!) {
    updateUnderwritingApplication(input: $input) {
      underwritingApplication {
        id
        stakeholders {
          id
          ... on PersonStakeholderOutput {
            telephoneNumber
          }
        }
      }
      errors {
        ... on UnderwritingApplicationStakeholderFieldValidationError {
          message
          code
        }
      }
    }
  }
  ```

  ```json Variables lines theme={null}
  {
    "input": {
      "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
      "stakeholders": [
        {
          "updatePersonStakeholderInput": {
            "id": "d4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f80",
            "telephoneNumber": "5555555678"
          }
        }
      ]
    }
  }
  ```
</RequestExample>

<ResponseExample>
  ```json Response lines expandable theme={null}
  {
    "data": {
      "updateUnderwritingApplication": {
        "underwritingApplication": {
          "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
          "stakeholders": [
            {
              "id": "d4e5f6a7-b8c9-4d0e-1f2a-3b4c5d6e7f80",
              "telephoneNumber": "5555555678"
            }
          ]
        },
        "errors": []
      }
    }
  }
  ```
</ResponseExample>
