Consent Requests

Create Consent Requests

Changed on

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

post/api/agreement/v1/consent-requests

Request

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

Request body

dataRequestIdstring uuid required
uidstring required

Response

OK

idstring uuid required
dataProducerUidstring required

UID of the data producer

dataProducerBurstring

BUR of the data producer

isCreatedboolean

Example response

[
  {
    "dataProducerUid": "CHE123456789",
    "dataProducerBur": "A12345678"
  }
]

Changes

    • warning

      added the new EXPORT_CAPACITY_EXHAUSTED enum value to the response property for the response status

    • warning

      added the new EXPORT_CAPACITY_EXHAUSTED enum value to the response property for the response status

    • warning

      added the new EXPORT_LIMIT_EXCEEDED enum value to the response property for the response status

    • warning

      added the new EXPORT_LIMIT_EXCEEDED enum value to the response property for the response status

    • warning

      added the new UID_CLAIM_MISSING enum value to the response property for the response status

    • warning

      added the new UID_CLAIM_MISSING enum value to the response property for the response status