Prime a CDR Sharing Arrangement
Prepare an agreement and get the consent URL to send the Consumer to.
POST /directory/{directoryId}/action/cds-au/cdr-sharing-v1/prime
Scope: biza-au:og:cds-au:sharing:prime
Implementation notesβ
- Priming creates an agreement in
PRIMEDstatus and returns itsagreementIdand a consent URL (redirectUriin the response). Send the Consumer to the consent URL within 10 minutes. See Consent Flow. templateIdmust name an active Agreement Template. An unknown or deleted template returns400.redirectUri, anderrorRedirectUriif you supply it, must be in the template'sallowed_redirect_uris, or the request returns400. Open Gateway returns the Consumer to them when the consent flow ends, withstateand the outcome in the query string: see Consent redirect.userId,name,emailandprincipalIdidentify the Consumer. Use the sameprincipalIdfor the same Consumer every time: it is how you reach the Consumer's agreements and data later.participantIds(optional) limits the consent screen to those Data Holders, by theirparticipantIdfrom List Participants. Without it, the Consumer can choose any Data Holder the template's industries allow.agreementId(optional) amends an existing agreement: the Consumer consents again, and the new version replaces the current one when it is authorised. An earlier prime of the same agreement that was never completed expires. See Amending an agreement.- Send
x-v: 1. Any other version returns400.
Referenceβ
From the Open Gateway API 4.0.1. See the full reference.
Loading...