Create 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
AuthorizationstringheaderrequiredYour API key with the prefix
ApiKey:ApiKey <your-api-key>. Get an API key.Scope:
data-space:create
Body
dataDisclosure Agreement Template objectrequiredThe fields of a new data disclosure agreement template.
Response
The template and its revision. The Location header has the path of the new template.
Headers
LocationstringPath of the new template.
dataDisclosure Agreement Template objectThe 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.
revisionobjectA 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 thesuccessorIdof the new revision.