title: ConsentPostRequestAUTH
type: object
description: |
  The object sent in a `POST /consents` request to the Auth-Service
  by a DFSP to store registered Consent and credential
properties:
  consentId:
    allOf:
      - $ref: ./CorrelationId.yaml
    description: |
      Common ID between the PISP and FSP for the Consent object
      determined by the DFSP who creates the Consent.
  consentRequestId:
    $ref: ./CorrelationId.yaml
  scopes:
    minLength: 1
    maxLength: 256
    type: array
    items:
      $ref: ./Scope.yaml
  credential:
    allOf:
      - $ref: ./SignedCredential.yaml
  status:
    $ref: ./ConsentStatus.yaml
  extensionList:
    $ref: ./ExtensionList.yaml
required:
  - consentId
  - scopes
  - credential
  - status
additionalProperties: false
