---
title: "Update a GDPR request"
method: PUT
path: "/customers/gdpr-requests/{id}"
tags: ["Admin Customer GDPR"]
---

# Update a GDPR request

`PUT /customers/gdpr-requests/{id}`

## Request

- Base URL: `http://localhost:8000/api/admin`
- URL: `http://localhost:8000/api/admin/customers/gdpr-requests/{id}`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/bagisto/apis/bagisto-admin-api/docs/customers/gdpr-requests/:id/put.ts> (a function with typed inputs; its response is checked against the schema)

Update the request status. Allowed status values: pending, processing, declined, approved. Use the /process endpoint to also perform the destructive side-effect for delete requests.

## Path parameters

- `id` integer, required

## Request body

- object
  - `status` 'pending' | 'processing' | 'declined' | 'approved' | 'revoked'
  - `message` string, nullable

## Response `200`

GDPR request updated.

## Other responses

- `400`: Invalid input
- `404`: Not found
- `422`: Invalid status value.

---

[API](https://skmtc.dev/bagisto/apis/bagisto-admin-api.md) - [All operations](https://skmtc.dev/bagisto/apis/bagisto-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bagisto/apis/bagisto-admin-api/revisions/3198f11be70f?raw)
