Skip to main content

Update credential definition

PUT 

/v2/config/digital-wallet/openid/sdjwt/credential-definition/:credentialDefinitionId

Updates an existing credential definition. Changes affect future credential issuances using this definition.

Request

Path Parameters

    credentialDefinitionId stringrequired

    Unique identifier of the credential definition that specifies the credential format, type, and claims structure for OID4VCI issuance.

Body

    oneOf
    label stringrequired

    Human-readable label describing the intended use of this credential definition (e.g. 'Issue Portable Document A1'). Used to identify the credential definition in the issuer's dashboard.

    type string[]

    Array of credential type strings as defined in the OpenID for Verifiable Credentials Issuance (OID4VCI) specification. These values appear in the type field of the issued W3C VC (JWT) (e.g. ['LegalPersonIdentificationData']).

    credentialDefinition object

    JSON object defining the credential structure and its claims. For W3C VC (JWT) format (jwt_vc_json), this follows the W3C Verifiable Credentials Data Model. Includes the claims hierarchy with JSON Pointer paths.

    property name* any

    JSON object defining the credential structure and its claims. For W3C VC (JWT) format (jwt_vc_json), this follows the W3C Verifiable Credentials Data Model. Includes the claims hierarchy with JSON Pointer paths.

    expirationInDays number

    Number of days until the issued credential expires. Defaults to 30 if not specified. The expiration date is calculated from the issuance timestamp.

    credentialDefinitionUri string
    display object
    name string

    Defines name for the credential

    description string

    Defines the description for the credential definition.

    backgroundColor string

    Defines background color for the credential

    textColor string

    Defines text color for the credential.

    credentialFormat string

    Possible values: [jwt_vc_json, dc+sd-jwt, mso_mdoc]

    Credential format identifier as defined in the OID4VCI specification. Supported formats: jwt_vc_json (W3C VC JWT), dc+sd-jwt (IETF SD-JWT VC), mso_mdoc (ISO 18013-5 mDoc/mDL).

    vct string

    Verifiable Credential Type identifier used when credentialFormat is dc+sd-jwt. This value is included in the vct claim of the issued IETF SD-JWT VC.

    doctype string

    Document type identifier used when credentialFormat is mso_mdoc. Identifies the credential type in the ISO 18013-5 mDoc/mDL format (e.g. org.iso.18013.5.1.lpid).

    claims object

    JSON object defining the credential claims structure for IETF SD-JWT VC (dc+sd-jwt) and ISO 18013-5 mDoc/mDL (mso_mdoc) formats. Each claim can specify selective disclosure settings via limitDisclosure.

    property name* any

    JSON object defining the credential claims structure for IETF SD-JWT VC (dc+sd-jwt) and ISO 18013-5 mDoc/mDL (mso_mdoc) formats. Each claim can specify selective disclosure settings via limitDisclosure.

    supportRevocation boolean

    When true, enables credential revocation support. Revoked credentials can be checked using a Status List as defined in the IETF Token Status List specification.

    enforceWUA boolean

    When true, the issuer requires the holder to present a valid Wallet Unit Attestation (WUA) during the OID4VCI credential issuance flow, as defined in the EUDI Wallet Architecture Reference Framework.

    validationPath string

    Possible values: [$.vc.credentialSubject, $.vc, $]

    JSONPath expression specifying which part of the credential payload to validate against the credential definition schema. Use $.vc.credentialSubject for W3C VC (JWT) format, $.vc for full VC validation, or $ for root-level validation.

    version string

    Possible values: [draft_11, draft_13, draft_15, draft_17, version_01]

    OID4VCI specification draft version to use for credential issuance protocol interactions. Determines the protocol messages and endpoints used during the issuance flow.

    kid string

    Key Identifier (kid) referencing the cryptographic key used to sign issued credentials. Must match a key configured in the Key Management section.

    trustAnchor string

    Possible values: [jwk, did:key, did:ebsi, did:web, did:tdw]

    Decentralized Identifier (DID) method or key type used as the trust anchor for credential issuance. Determines how the issuer's public key is published and resolved by holders and verifiers.

    revocationMethod string

    Possible values: [status_list, status_list_2021, swiss_token_status_list_v1]

    Method used for credential revocation. status_list uses the IETF Token Status List specification, status_list_2021 uses the W3C Status List 2021 specification, swiss_token_status_list_v1 uses the Swiss profile of Token Status List.

    enforceCredentialUniqueness boolean

    When true, ensures that each credential issued under this definition is unique per holder. Prevents duplicate issuance of the same credential type to the same holder.

    supportCredentialReissuance boolean

    When true, allows holders to request reissuance of expired or near-expiry credentials using the OID4VCI credential refresh mechanism.

    credentialDefinitions object[]
  • Array [
  • label string

    Human-readable label describing the intended use of this credential definition.

    expirationInDays number

    Number of days until the issued credential expires. Defaults to 30.

    supportRevocation boolean

    When true, enables credential revocation support.

    revocationMethod string

    Possible values: [status_list, status_list_2021, swiss_token_status_list_v1]

    Method used for credential revocation.

    enforceCredentialUniqueness boolean

    When true, ensures each credential under this definition is unique per holder.

    supportCredentialReissuance boolean

    When true, allows holders to request reissuance of expired credentials.

    credentialBindingMethods string[]

    Array of supported cryptographic key binding methods for issued credentials, as defined in OID4VCI Credential Issuer Metadata (e.g. jwk, did:key, cose_key).

    authorizationRequestType string

    Possible values: [authorization_details, scope_based]

    Determines how the wallet requests authorization during the OID4VCI issuance flow. authorization_details uses RFC 9396 Rich Authorization Requests, scope_based uses OAuth 2.0 scope values.

    scope string

    OAuth 2.0 scope value associated with this credential definition. Used when authorizationRequestType is scope_based.

    display object

    Display properties for the credential card in wallet UIs.

    name string
    description string
    backgroundColor string
    textColor string
    credentialResponseInterval number

    Minimum polling interval (in seconds) for the wallet when using the OID4VCI Deferred Credential Endpoint.

    credentialFormat string

    Possible values: [dc+sd-jwt]

    Credential format. Must be dc+sd-jwt for IETF SD-JWT VC.

    vct string

    Verifiable Credential Type identifier for IETF SD-JWT VC (e.g. urn:eu.europa.ec.eudi:pid:1).

    claims object

    JSON object defining the credential claims structure for IETF SD-JWT VC. Each claim can specify selective disclosure via limitDisclosure.

    property name* any

    JSON object defining the credential claims structure for IETF SD-JWT VC. Each claim can specify selective disclosure via limitDisclosure.

  • ]
  • namespace string

    Namespace identifier for ISO 18013-5 mDoc/mDL (mso_mdoc) format credentials (e.g. org.iso.18013.5.1). Groups related data elements within the mDoc structure.

Responses

Successfully updated credential definition

Schema
    credentialDefinition object
    credentialDefinitionId stringrequired

    Unique identifier assigned to the credential definition upon creation. Use this ID to reference the credential definition in OpenID for Verifiable Credentials Issuance (OID4VCI) operations.

    type string[]

    Array of credential type strings as defined in the OID4VCI specification. These values appear in the type field of the issued W3C VC (JWT).

    credentialDefinition objectrequired

    JSON object defining the credential structure and its claims for W3C VC (JWT) format (jwt_vc_json).

    createdAt numberrequired

    Unix timestamp (in seconds) indicating when this credential definition was created.

    updatedAt numberrequired

    Unix timestamp (in seconds) indicating when this credential definition was last modified.

    label stringrequired

    Human-readable label describing the intended use of this credential definition (e.g. 'Issue Portable Document A1').

    expirationInDays numberrequired

    Number of days until the issued credential expires. Defaults to 30 if not specified.

    display object
    name stringrequired

    Display name for the credential shown in wallet UIs, as specified in the OID4VCI Credential Issuer Metadata.

    locale stringrequired

    BCP47 language tag for the display properties (e.g. en-GB).

    description string

    Human-readable description of the credential purpose.

    backgroundColor stringrequired

    Hex color code for the credential card background (e.g. #FFFFFF).

    textColor stringrequired

    Hex color code for text on the credential card (e.g. #000000).

    credentialFormat string

    Possible values: [jwt_vc_json, dc+sd-jwt, mso_mdoc]

    Credential format identifier as defined in OID4VCI. Supported formats: jwt_vc_json (W3C VC JWT), dc+sd-jwt (IETF SD-JWT VC), mso_mdoc (ISO 18013-5 mDoc/mDL).

    vct string

    Verifiable Credential Type identifier used when credentialFormat is dc+sd-jwt. Included in the vct claim of the issued IETF SD-JWT VC.

    doctype string

    Document type identifier used when credentialFormat is mso_mdoc. Identifies the credential in the ISO 18013-5 mDoc/mDL format (e.g. org.iso.18013.5.1.lpid).

    claims object

    JSON object defining the credential claims structure for IETF SD-JWT VC (dc+sd-jwt) and ISO 18013-5 mDoc/mDL (mso_mdoc) formats.

    property name* any

    JSON object defining the credential claims structure for IETF SD-JWT VC (dc+sd-jwt) and ISO 18013-5 mDoc/mDL (mso_mdoc) formats.

    supportRevocation boolean

    When true, enables credential revocation support using the IETF Token Status List specification.

    enforceWUA boolean

    When true, the issuer requires the holder to present a valid Wallet Unit Attestation (WUA) during the OID4VCI issuance flow.

    validationPath string

    Possible values: [$.vc.credentialSubject, $.vc, $]

    JSONPath expression specifying which part of the credential payload to validate. Use $.vc.credentialSubject for W3C VC (JWT), $.vc for full VC validation, or $ for root-level validation.

    version string

    Possible values: [draft_11, draft_13, draft_15, draft_17, version_01]

    OID4VCI specification draft version to use for credential issuance protocol interactions.

    kid string

    Key Identifier (kid) referencing the cryptographic key used to sign issued credentials.

    trustAnchor string

    Possible values: [jwk, did:key, did:ebsi, did:web, did:tdw]

    DID method or key type used as the trust anchor for credential issuance.

    revocationMethod string

    Possible values: [status_list, status_list_2021, swiss_token_status_list_v1]

    Method used for credential revocation. status_list uses the IETF Token Status List, status_list_2021 uses the W3C Status List 2021, swiss_token_status_list_v1 uses the Swiss profile.

    enforceCredentialUniqueness boolean

    When true, ensures each credential issued under this definition is unique per holder.

    supportCredentialReissuance boolean

    When true, allows holders to request reissuance of expired or near-expiry credentials.

    credentialDefinitions object[]
  • Array [
  • label string

    Human-readable label describing the intended use of this credential definition.

    expirationInDays number

    Number of days until the issued credential expires. Defaults to 30.

    supportRevocation boolean

    When true, enables credential revocation support.

    revocationMethod string

    Possible values: [status_list, status_list_2021, swiss_token_status_list_v1]

    Method used for credential revocation.

    enforceCredentialUniqueness boolean

    When true, ensures each credential under this definition is unique per holder.

    supportCredentialReissuance boolean

    When true, allows holders to request reissuance of expired credentials.

    credentialBindingMethods string[]

    Array of supported cryptographic key binding methods for issued credentials, as defined in OID4VCI Credential Issuer Metadata (e.g. jwk, did:key, cose_key).

    authorizationRequestType string

    Possible values: [authorization_details, scope_based]

    Determines how the wallet requests authorization during the OID4VCI issuance flow. authorization_details uses RFC 9396 Rich Authorization Requests, scope_based uses OAuth 2.0 scope values.

    scope string

    OAuth 2.0 scope value associated with this credential definition. Used when authorizationRequestType is scope_based.

    display object

    Display properties for the credential card in wallet UIs.

    name string
    description string
    backgroundColor string
    textColor string
    credentialResponseInterval number

    Minimum polling interval (in seconds) for the wallet when using the OID4VCI Deferred Credential Endpoint.

    credentialFormat string

    Possible values: [dc+sd-jwt]

    Credential format. Must be dc+sd-jwt for IETF SD-JWT VC.

    vct string

    Verifiable Credential Type identifier for IETF SD-JWT VC (e.g. urn:eu.europa.ec.eudi:pid:1).

    claims object

    JSON object defining the credential claims structure for IETF SD-JWT VC. Each claim can specify selective disclosure via limitDisclosure.

    property name* any

    JSON object defining the credential claims structure for IETF SD-JWT VC. Each claim can specify selective disclosure via limitDisclosure.

  • ]
  • namespace string

    Namespace identifier for ISO 18013-5 mDoc/mDL (mso_mdoc) format credentials (e.g. org.iso.18013.5.1).

Loading...