Update a presentation template
Updates an existing presentation template by its ID.
Analytics Events
Roles
/v2/credentials/web-semantic/presentations/templates/{id}
In: header
Path Parameters
Presentation template ID
Informs the wallet holder what domain is the verification request coming from. The value must match your tenant URL or your custom domain (if you have one set up). If the domain validation is unsuccessful, the wallet will not let the user proceed with the verification workflow.
âšī¸ Note: If you set up a custom domain later, any previous templates created where the domain is your tenant URL will become invalid. You will need to change any prior templates to use the custom domain.
Unique value that is used internally to manage your templates. It must be unique across all presentation templates on your tenant, but is not shown to the holder.
Indicates what type of query method would be used by presentation requests created from this presentation template:
- QueryByExample: This query method uses the credential
type
andtrustedIssuer
to only accept verifiable presentations that match these parameters. - QueryByFrame: This query method is used to create presentation requests that only require specific claims in the verifiable presentations and thus enable selective disclosure.
- DidAuth: This query method id used to authenticate with the tenant and provide the holder's DID.
You can request multiple credentials in one request by adding additional
credentialQuery
objects to thequery
array.
Response Body
curl -X PUT "https://example.vii.au01.mattr.global/v2/credentials/web-semantic/presentations/templates/string" \ -H "Content-Type: application/json" \ -d '{ "domain": "string", "name": "string", "query": [ { "type": "QueryByExample", "credentialQuery": [ { "required": true, "example": [ { "@context": [ null ], "type": "AlumniCredential", "trustedIssuer": [ { "required": true, "issuer": "string" } ] } ] } ] } ] }'
{
"id": "64e45290-9980-11ea-b872-f1bee5fb328f",
"domain": "tenant.vii.mattr.global",
"name": "alumni_credential_request",
"query": [
{
"type": "QueryByExample",
"credentialQuery": [
{
"required": true,
"reason": "string",
"example": [
{
"@context": [
null
],
"type": "AlumniCredential",
"trustedIssuer": [
{
"required": true,
"issuer": "string"
}
]
}
]
}
]
}
]
}
How would you rate this page?