Skip to main content
PID Verification

Update PID verification extension

PUT/v4/config/platform/extension/pid-verification

Sets the formats and the attributes that the presentation definition of the extension asks for. The formats are SD-JWT VC (dc+sd-jwt), ISO/IEC 18013-5 (mso_mdoc) or both. With both, the DCQL query has one credential query for each format and one required credential set whose options are the formats: the wallet presents the PID in the format that it holds.

Each attribute of the PID can be chosen, also a mandatory one, so that you ask only for what you need. Each chosen attribute is a required claim: a wallet only presents a PID that has each of them (OpenID4VP 1.0, section 6.4.1). The house number is only in SD-JWT VC and is left out when SD-JWT VC is not chosen. Each chosen format must have one or more of the chosen attributes: both formats with only the house number give a 400 with errorKey pid_format_without_attribute, because the ISO/IEC 18013-5 query would ask for no attribute. The query of a format does not ask for another attribute in place of one that the format does not have. The id of each attribute is in the answer of the read.

A save updates the definition in place: it keeps its ID. Each verification keeps the copy of the definition that it was made with, so an earlier verification still shows what it asked for.

The answer is 404 when the extension is off or waits for its signing key.

Authorizations

  • Authorizationstringheaderrequired

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

    Scope:extensions:update

Body

application/json
  • formatsenum<string>[]required

    The formats that the definition accepts, one or both.

    1 to 10 items.

    Available options:dc+sd-jwt,mso_mdoc

  • attributesstring[]required

    The id of each attribute that the definition asks for, mandatory or optional. Give one or more. An attribute that none of the formats has (the house number without SD-JWT VC) is left out. Each format of formats must have one or more of these attributes: both formats with only the house number are refused.

    1 to 100 items.

Response

application/json

The presentation definition and the settings of the extension after the update.

  • extensionStatusboolean

    Always true in this answer. An extension that is not enabled gives 404.

  • presentationDefinitionobject

    The presentation definition of the extension.

  • formatsenum<string>[]

    The formats that the definition accepts: dc+sd-jwt (SD-JWT VC) and mso_mdoc (ISO/IEC 18013-5). With both, the wallet presents the PID in the format that it holds.

    Available options:dc+sd-jwt,mso_mdoc

  • attributesobject[]

    Each attribute of the PID (PID Rulebook v1.7). The definition asks for an attribute when selected is true, also for a mandatory one. Each chosen attribute is a required claim: a wallet only presents a PID that has each of them.

  • rulebookobject

    The rulebook that the attributes follow.