Skip to main content
PID Credential Issuance

Update PID credential issuance extension

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

Sets the formats and the optional attributes of the PID definitions of the extension. The extension has one credential definition for each format: SD-JWT VC (dc+sd-jwt), ISO/IEC 18013-5 (mso_mdoc) or both. Each definition has the mandatory attributes of the PID Rulebook and the optional attributes that you give; an attribute that a format does not have (the house number in ISO/IEC 18013-5) is only in the other definition. The id of each attribute is in the answer of the read.

A change of the attributes updates each definition in place: it keeps its ID, and each issued PID keeps the claims that it was issued with. An added format gets a new definition with the signing key of the extension. A removed format has its definition deleted, and its issued PIDs are not listed while it is; adding the format again restores the same definition and its issued PIDs. When a step fails, the definitions go back to the earlier settings and the answer is the refusal.

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 of the PID definitions, one or both.

    1 to 10 items.

    Available options:dc+sd-jwt,mso_mdoc

  • attributesstring[]required

    The id of each optional attribute that the definitions have. A mandatory attribute is always in the definitions: giving it changes nothing. An empty list gives definitions with only the mandatory attributes.

    At most 100 items.

Response

application/json

The credential definitions and the settings of the extension after the update.

  • extensionStatusboolean

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

  • credentialobject

    The first credential definition of the extension (the SD-JWT VC definition when the extension has one).

  • credentialsobject[]

    One credential definition for each format of formats.

  • formatsenum<string>[]

    The formats of the PID definitions: dc+sd-jwt (SD-JWT VC) and mso_mdoc (ISO/IEC 18013-5).

    Available options:dc+sd-jwt,mso_mdoc

  • attributesobject[]

    Each attribute of the PID (PID Rulebook v1.7). Each definition has the mandatory attributes; it has an optional attribute when selected is true. An attribute is in a definition only when paths has the format of the definition.

  • rulebookobject

    The rulebook that the attributes follow.