---
title: "Create Consent Requests"
method: POST
path: "/api/agreement/v1/consent-requests"
tags: ["Consent Requests"]
---

# Create Consent Requests

`POST /api/agreement/v1/consent-requests`

Creates consent requests for given uids, provided the user actually has access to those uids.

## Request body

- CreateConsentRequestDto[]
  - `dataRequestId` string, uuid, required
  - `uid` string, required

## Response `200`

OK

- ConsentRequestCreatedDto[]
  - `id` string, uuid, required
  - `dataProducerUid` string, required — UID of the data producer
  - `isCreated` boolean

## Other responses

- `400` — Bad Request
- `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)
