Get Consent Requests Of Data Request
Changed onRetrieves the consent requests of a specific data request. Accessible to the provider who owns the data request and to the consumer who owns the data request.
Request
- The document declares no server URL.
- AuthOpenID Connect (http://localhost:6999/realms/agate/.well-known/openid-configuration, scopes: agridata.ch.Agridata_Datenanbieter, agridata.ch.Agridata_Datenbezueger)
Path parameters
Query parameters
Only consent requests that were modified after this timestamp are returned.
Field names to sort by. Ascending by default; prefix with - for descending. Defaults to -lastModifiedDateTime.
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
Example response
{
"items": [
{
"dataProducerUid": "CHE123456789",
"dataProducerBur": "A123456",
"grantedDataPeriodFrom": "2022-03-10",
"grantedDataPeriodTo": "2022-03-10",
"lastModifiedDateTime": "2025-06-16T11:04:51.823889"
}
],
"totalItems": 42,
"totalPages": 5,
"currentPage": 1,
"pageSize": 10
}Changes
- warning
added the new
EXPORT_CAPACITY_EXHAUSTEDenum value to theresponse property for the response status - warning
added the new
EXPORT_CAPACITY_EXHAUSTEDenum value to theresponse property for the response status - warning
added the new
EXPORT_LIMIT_EXCEEDEDenum value to theresponse property for the response status - warning
added the new
EXPORT_LIMIT_EXCEEDEDenum value to theresponse property for the response status
- warning
- warning
added the new
WITHDRAWNenum value to the//response property for the response status
- warning