Skip to main content
Version: Next

Create credential schema (v2)

POST 

/api/credential-schema/v2

Permissions: CREDENTIAL_SCHEMA_CREATE

Creates a credential schema (v2), which supports multiple credential formats and per-claim technical key mappings.

The formats array is mandatory and must contain at least one entry. Each entry specifies a format (mandatory) and an optional schemaId.

Claims may include a mapping array to specify per-format technical keys and namespaces. When no mapping is specified, the claim key is used as the technical key. For mdoc formats, the schemaId is used as the default namespace.

The optional batchSize must be at least 2 if specified.

Request

Responses

Created