# Update a Donor Profile
source: https://developer.mastercard.com/donations/documentation/use-cases/manage-donor/update-donor/index.md

## Overview {#overview}

The **Update Donor** endpoint updates the profile information of the donors registered with Mastercard Donate. This endpoint allows donors to modify details such as their email address and phone number, ensuring that their contact information is always up to date.

A successful request returns the `HTTP 200 OK` status and a JSON response body with a donor object if you provide a valid `donorId` in the request.

## Sequence Diagram {#sequence-diagram}

The following outlines the sequence of events:
Diagram updatedonor

## Execution Steps {#execution-steps}

The following details the steps in the above sequence diagram:

1. The donor sends a request to update their profile details through the partner user interface.
2. The partner user interface forwards the update request to the partner server.
3. The partner server calls the `PUT /donors` endpoint and provides the `donorId` in the endpoint request to the Mastercard Donate service.
4. The Mastercard Donate service verifies the donor identifier.
5. The Mastercard Donate Service updates the donor profile details if it finds the donor identifier.
6. The Mastercard Donate service confirms back to the partner server.
7. The partner server stores the updated donor profile details.
8. The partner server forwards the confirmation to the partner user interface.
9. The partner user interface fetches and displays the updated donor profile details on the end-user screen.
10. The Mastercard Donate service sends an error message to the partner server if it does not find the donor identifier.
11. The partner server forwards the error message to the partner user interface.
12. The partner user interface displays the error message to the donor.

## Endpoint {#endpoint}


API Reference: `PUT /donors/{donor_id}`

## Endpoint parameter {#endpoint-parameter}

For more details on the endpoint parameters, refer to the [Parameters to Update a Donor](https://developer.mastercard.com/donations/documentation/parameters/enroll-manage-donor-param/update-donor-param/index.md) section.

## Sample request and response {#sample-request-and-response}

For more details on the sample request and response, refer to the [Update Donor](https://developer.mastercard.com/donations/tutorial/donation-api-details/donorsapi/index.md#put-donors) tutorial.
