Skip to main content
Agreements

Create data disclosure agreement

POST/v4/config/consent/data-disclosure-agreement

Creates a data disclosure agreement (DDA) template. The template states the terms under which your organisation, as a data source, shares data with data using services through a data marketplace.

Base the template on a revision of a data agreement: give dataAgreementId, dataAgreementRevisionId and dataAgreementRevisionHash (the serializedHash of that revision). The data agreement must have the method of use data_source, and its policy must allow third-party data sharing. The service copies the data attributes and the OpenAPI specification of that revision into the template.

With active: false the template is a draft: the answer has a revision with an empty id, because a draft has no stored revision. With active: true the service publishes the template, makes a revision and tells your data marketplace about it (see the base configuration). To publish, purpose and purposeDescription are mandatory.

Errors:

  • 400: a field is missing or not valid (the message names it), the revision does not belong to the data agreement, the hash does not match, or the data agreement does not allow data sharing as a data source.
  • 404: the data agreement, its revision or the presentation definition does not exist.

Authorizations

  • Authorizationstringheaderrequired

    Your API key with the prefix ApiKey: ApiKey <your-api-key>. Get an API key.

    Scope:data-space:create

Body

application/json
  • dataDisclosureAgreementTemplateobjectrequired

    The fields of a new data disclosure agreement template.

Response

application/json

The template and its revision. The Location header has the path of the new template.

Headers

  • Locationstring

    Path of the new template.

  • dataDisclosureAgreementTemplateobject

    The terms under which your organisation, as a data source, offers data to data using services. A data using service signs a data disclosure agreement record against a published template. The data attributes and the OpenAPI specification come from the revision of the data agreement that the template names.

  • revisionobject

    A locked snapshot of a data disclosure agreement template or record. The service makes a revision each time it publishes a template or changes a record. A new revision links to the one before it through predecessorHash, and the one before it gets the successorId of the new revision.