---
title: "Rectify personal data"
slug: "rectify-personal-data"
abstract: "How to rectify a guest's personal data to meet data privacy compliance."
---
# Rectify personal data

If a guest requests that you update their personal data, this can be facilitated through the use of Sitecore CDP APIs. The following is a scenario in which a guest requests an update to their personal data.

For example, a guest requests that their gender data is rectified from male to female.

To rectify a guest's data:

1. Complete the locate guest function in the REST API to locate the guest's unique `guestRef`.
2. Follow the update guest function in the REST API to rectify the data in the guest record. For example, pass a string value of `Female` to the `gender` attribute.
3. To locate all orders associated with the guest, perform the locate orders function using the REST API. This provides you with the **orderRef** attribute required for the update order contact and update order consumer functions.
4. For each order on which the guest is a contact, perform the update order contact function using the REST API.
5. For each order on which the guest is a consumer, perform the update order consumer function using the REST API.

The guest's profile is now rectified with the correct personal information. Any orders on which the guest is a contact and/or consumer will also have the correct personal information.