Update PID credential issuance extension
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
AuthorizationstringheaderrequiredYour API key with the prefix
ApiKey:ApiKey <your-api-key>. Get an API key.Scope:
extensions:update
Body
formatsenum<string>[]requiredThe formats of the PID definitions, one or both.
1 to 10 items.
Available options:
dc+sd-jwt,mso_mdocattributesstring[]requiredThe
idof 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
The credential definitions and the settings of the extension after the update.
extensionStatus booleanAlways
truein this answer. An extension that is notenabledgives404.credentialobjectThe 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) andmso_mdoc(ISO/IEC 18013-5).Available options:
dc+sd-jwt,mso_mdocattributesobject[]Each attribute of the PID (PID Rulebook v1.7). Each definition has the mandatory attributes; it has an optional attribute when
selectedistrue. An attribute is in a definition only whenpathshas the format of the definition.rulebookobjectThe rulebook that the attributes follow.