Data Requests

Export Consent Requests Of Data Request

Changed on

Exports the consent requests of a data request as CSV (semicolon-separated, UTF-8 with BOM) with the columns uid, bur, requestDate, lastChangeDate and stateCode. Consent requests of terminated UID/BUR relations are excluded. Exports of more than 100000 consent requests are rejected with status 400 and type EXPORT_LIMIT_EXCEEDED. If too many exports run concurrently, the export is rejected with status 503, type EXPORT_CAPACITY_EXHAUSTED and a Retry-After header. Accessible to the consumer who owns the data request and to admin users. Only active and paused data requests can be exported, otherwise the export is rejected with status 400. Draft data requests are not found for admin users.

get/api/agreement/v1/data-requests/{id}/consent-requests/export

Request

  • The document declares no server URL.
  • Auth
    OpenID Connect (http://localhost:6999/realms/agate/.well-known/openid-configuration, scopes: agridata.ch.Agridata_Datenbezueger, agridata.ch.Agridata_Admin)

Path parameters

idstring uuid required

Query parameters

actingRole'CONSUMER' | 'ADMIN'

Selects the role in which the authenticated user acts for this request. Optional: if the authenticated user holds exactly one of the allowed roles, the value is auto-resolved. Returns 400 if the value is unknown, not allowed for this endpoint, or omitted while the user holds multiple matching roles. Returns 403 if the user does not hold the role specified in the parameter.

Response

OK

Changes