---
title: "Update Consent Request State For Current Data Producer"
method: PUT
path: "/api/agreement/v1/consent-requests/{id}/status"
tags: ["Consent Requests"]
---

# Update Consent Request State For Current Data Producer

`PUT /api/agreement/v1/consent-requests/{id}/status`

Updates the status of a specific consent request. Only accessible to the data producer assigned to the consent request.

## Path parameters

- `id` string, uuid, required

## Request body

- 'GRANTED' | 'OPENED' | 'DECLINED' | 'NOT_CREATED' — Possible states of a consent request: - GRANTED: Consent has been granted - OPENED: Consent request is open and awaiting response - DECLINED: Consent has been declined - NOT_CREATED: Placeholder to indicate that no consent request exists yet for a given UID.

## Response `204`

No Content

## Other responses

- `401` — Not Authorized
- `403` — Not Allowed
- `404` — The resource or element was not found
- `500` — Internal server error: unexpected error

---

[API](https://skmtc.net/agridata/apis/agridata-ch-api.md) · [All operations](https://skmtc.net/agridata/apis/agridata-ch-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agridata/agridata-ch-api/versions/4f3c6bfcfcfd/schema)
