> For the complete documentation index, see [llms.txt](https://docs.meeco.me/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.meeco.me/openapi-docs/svx-api/presentation-templates.md).

# Presentation Templates

## List presentation templates

> List presentation templates managed by the Wallet. The list can be filtered, sorted, and paginated by using the available query parameters. Filtering by template type is also supported to easily retrieve templates of a specific format. <br>

```json
{"openapi":"3.1.0","info":{"title":"SVX Wallet API","version":"4.0.1"},"servers":[{"url":"https://zyfla-wallet-sandbox.meeco.cloud","description":"SVX Wallet deployment (relative)"}],"security":[{},{"bearerAuth":[]},{"mutualTLS":[]}],"components":{"securitySchemes":{"bearerAuth":{"bearerFormat":"JWT","scheme":"bearer","type":"http"},"mutualTLS":{"type":"mutualTLS"}},"schemas":{"PresentationTemplateType":{"type":"string","enum":["dcql","pex"]},"PaginatedPresentationTemplatesResponseDto":{"type":"object","properties":{"templates":{"type":"array","items":{"$ref":"#/components/schemas/PresentationTemplateModelDto"}},"meta":{"$ref":"#/components/schemas/Meta"}},"required":["templates","meta"]},"PresentationTemplateModelDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"purpose":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"input_descriptors":{"oneOf":[{"type":"array","items":{"$ref":"#/components/schemas/InputDescriptorPayload"}},{"type":"null"}]},"type":{"$ref":"#/components/schemas/PresentationTemplateType"},"dcql_query":{"anyOf":[{"$ref":"#/components/schemas/DCQLQueryPayload"},{"type":"null"}]}},"required":["id","name","purpose","created_at","updated_at","input_descriptors","type","dcql_query"]},"InputDescriptorPayload":{"type":"object","properties":{"id":{"type":"string"},"format":{"type":"object","additionalProperties":{"type":"object"}},"name":{"type":"string"},"purpose":{"type":"string"},"constraints":{"$ref":"#/components/schemas/ConstraintsDto"},"group":{"type":"array","items":{"type":"string"}}},"required":["id","constraints"]},"ConstraintsDto":{"type":"object","properties":{"limit_disclosure":{"type":"string","enum":["required","preferred"]},"fields":{"type":"array","items":{"$ref":"#/components/schemas/FieldsDto"}}}},"FieldsDto":{"type":"object","properties":{"path":{"type":"array","items":{"type":"string"}},"name":{"type":"string"},"purpose":{"type":"string"},"filter":{"$ref":"#/components/schemas/FilterDto"},"optional":{"type":"boolean"},"intent_to_retain":{"type":"boolean"}},"required":["path"]},"FilterDto":{"type":"object","properties":{"type":{"type":"string"},"const":{"description":"Any JSON value"},"pattern":{"type":"string"},"format":{"type":"string"},"exclusiveMinimum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"maximum":{"type":"number"},"enum":{"type":"array","items":{"type":"string"}},"not":{"$ref":"#/components/schemas/FilterNotPredicateDto"},"items":{"$ref":"#/components/schemas/FilterItemsDto"},"contains":{"$ref":"#/components/schemas/FilterContainsDto"}},"required":["type"]},"FilterNotPredicateDto":{"type":"object","properties":{"enum":{"type":"array","items":{"type":"string"}},"const":{"description":"Any JSON value"}}},"FilterItemsDto":{"type":"object","properties":{"type":{"type":"string"}},"required":["type"]},"FilterContainsDto":{"type":"object","properties":{"type":{"type":"string"},"const":{"description":"Any JSON value"}}},"DCQLQueryPayload":{"type":"object","properties":{"credentials":{"type":"array","items":{"$ref":"#/components/schemas/DCQLCredentialQueryDto"}},"credential_sets":{"type":"array","items":{"$ref":"#/components/schemas/DCQLCredentialSetQueryDto"}}},"required":["credentials"]},"DCQLCredentialQueryDto":{"type":"object","properties":{"id":{"type":"string"},"format":{"type":"string","enum":["dc+sd-jwt","jwt_vc_json","mso_mdoc"]},"multiple":{"type":"boolean"},"meta":{"type":"object","additionalProperties":true},"trusted_authorities":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"values":{"type":"array","items":{"type":"string"}}},"required":["type","values"]}},"require_cryptographic_holder_binding":{"type":"boolean"},"claims":{"type":"array","items":{"$ref":"#/components/schemas/DCQLClaimQueryDto"}},"claim_sets":{"type":"array","items":{"type":"array","items":{"type":"string"}}}},"required":["id","format"]},"DCQLClaimQueryDto":{"type":"object","properties":{"id":{"type":"string"},"namespace":{"type":"string"},"claim_name":{"type":"string"},"path":{"type":"array","description":"JSONPath-like segments; each entry can be string, number, or null.","items":{}},"values":{"type":"array","description":"Allowed value literals (string, number, boolean).","items":{}},"intent_to_retain":{"type":"boolean"}},"required":["path"]},"DCQLCredentialSetQueryDto":{"type":"object","properties":{"options":{"type":"array","items":{"type":"array","items":{"type":"string"}}},"required":{"type":"boolean"}},"required":["options"]},"Meta":{"type":"object","properties":{"order_by":{"type":"string"},"order":{"type":"string","enum":["ASC","DESC"]},"order_from_params":{"type":"boolean"},"per_page":{"type":"number"},"per_page_from_params":{"type":"boolean"},"records_count":{"type":"number"},"page":{"type":"number"},"page_count":{"type":"number"}},"required":["order_by","order","order_from_params","per_page","per_page_from_params","records_count","page","page_count"]},"InvalidPaginationParamError":{"properties":{"error":{"description":"Unique error identifier","enum":["invalid_pagination_param"],"type":"string"},"extra_info":{"description":"Object that may contain more information about the error","type":"object"},"message":{"description":"User friendly error message","type":"string"}},"required":["error","message","extra_info"],"type":"object"},"InvalidDateFilterValueError":{"properties":{"error":{"description":"Unique error identifier","enum":["invalid_date_filter_value"],"type":"string"},"extra_info":{"description":"Object that may contain more information about the error","type":"object"},"message":{"description":"User friendly error message","type":"string"}},"required":["error","message","extra_info"],"type":"object"}}},"paths":{"/verifier/templates":{"get":{"summary":"List presentation templates","description":"List presentation templates managed by the Wallet. The list can be filtered, sorted, and paginated by using the available query parameters. Filtering by template type is also supported to easily retrieve templates of a specific format. \n","operationId":"PresentationTemplatesController_findAll","parameters":[{"in":"query","name":"order","required":false,"schema":{"type":"string","enum":["ASC","DESC"]}},{"in":"query","name":"order_by","required":false,"schema":{"type":"string","enum":["name","created_at"]}},{"in":"query","name":"per_page","required":false,"schema":{"type":"integer","minimum":1,"maximum":50}},{"in":"query","name":"page","required":false,"schema":{"type":"integer","minimum":1}},{"in":"query","name":"search","required":false,"schema":{"type":"string","maxLength":50}},{"in":"query","name":"type","required":false,"schema":{"$ref":"#/components/schemas/PresentationTemplateType"}},{"in":"query","name":"created_at_from","required":false,"schema":{"type":"string","format":"date"}},{"in":"query","name":"created_at_to","required":false,"schema":{"type":"string","format":"date"}},{"in":"query","name":"updated_at_from","required":false,"schema":{"type":"string","format":"date"}},{"in":"query","name":"updated_at_to","required":false,"schema":{"type":"string","format":"date"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaginatedPresentationTemplatesResponseDto"}}},"description":"Presentation templates successfully loaded"},"400":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/InvalidPaginationParamError"},{"$ref":"#/components/schemas/InvalidDateFilterValueError"}]}}},"description":"Invalid query params"}},"tags":["Presentation Templates"]}}}}
```

## Create presentation template

> Register a Presentation Template.\
> \
> \`dcql\_query\` follows DCQL format when \`type=dcql\`.\
> \`input\_descriptors\` follows DIF Presentation Exchange format when \`type=pex\`.\
> \
> If \`type\` is omitted, \`dcql\` is used by default.\
> \
> \## Supported Standards\
> \
> \- \[DIF Presentation Exchange v2.1.1]\(<https://identity.foundation/presentation-exchange/spec/v2.1.1/)\\>
> \- \[OpenID4VP 1.0 (DCQL)]\(<https://openid.net/specs/openid-4-verifiable-presentations-1\\_0.html>)<br>

```json
{"openapi":"3.1.0","info":{"title":"SVX Wallet API","version":"4.0.1"},"servers":[{"url":"https://zyfla-wallet-sandbox.meeco.cloud","description":"SVX Wallet deployment (relative)"}],"security":[{},{"bearerAuth":[]},{"mutualTLS":[]}],"components":{"securitySchemes":{"bearerAuth":{"bearerFormat":"JWT","scheme":"bearer","type":"http"},"mutualTLS":{"type":"mutualTLS"}},"schemas":{"CreatePresentationTemplatePayloadDto":{"type":"object","properties":{"template":{"$ref":"#/components/schemas/CreatePresentationTemplateDto"}},"required":["template"]},"CreatePresentationTemplateDto":{"type":"object","properties":{"name":{"type":"string"},"purpose":{"type":"string"},"input_descriptors":{"type":"array","items":{"$ref":"#/components/schemas/InputDescriptorPayload"}},"dcql_query":{"$ref":"#/components/schemas/DCQLQueryPayload"},"type":{"$ref":"#/components/schemas/PresentationTemplateType"}},"required":["name"]},"InputDescriptorPayload":{"type":"object","properties":{"id":{"type":"string"},"format":{"type":"object","additionalProperties":{"type":"object"}},"name":{"type":"string"},"purpose":{"type":"string"},"constraints":{"$ref":"#/components/schemas/ConstraintsDto"},"group":{"type":"array","items":{"type":"string"}}},"required":["id","constraints"]},"ConstraintsDto":{"type":"object","properties":{"limit_disclosure":{"type":"string","enum":["required","preferred"]},"fields":{"type":"array","items":{"$ref":"#/components/schemas/FieldsDto"}}}},"FieldsDto":{"type":"object","properties":{"path":{"type":"array","items":{"type":"string"}},"name":{"type":"string"},"purpose":{"type":"string"},"filter":{"$ref":"#/components/schemas/FilterDto"},"optional":{"type":"boolean"},"intent_to_retain":{"type":"boolean"}},"required":["path"]},"FilterDto":{"type":"object","properties":{"type":{"type":"string"},"const":{"description":"Any JSON value"},"pattern":{"type":"string"},"format":{"type":"string"},"exclusiveMinimum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"maximum":{"type":"number"},"enum":{"type":"array","items":{"type":"string"}},"not":{"$ref":"#/components/schemas/FilterNotPredicateDto"},"items":{"$ref":"#/components/schemas/FilterItemsDto"},"contains":{"$ref":"#/components/schemas/FilterContainsDto"}},"required":["type"]},"FilterNotPredicateDto":{"type":"object","properties":{"enum":{"type":"array","items":{"type":"string"}},"const":{"description":"Any JSON value"}}},"FilterItemsDto":{"type":"object","properties":{"type":{"type":"string"}},"required":["type"]},"FilterContainsDto":{"type":"object","properties":{"type":{"type":"string"},"const":{"description":"Any JSON value"}}},"DCQLQueryPayload":{"type":"object","properties":{"credentials":{"type":"array","items":{"$ref":"#/components/schemas/DCQLCredentialQueryDto"}},"credential_sets":{"type":"array","items":{"$ref":"#/components/schemas/DCQLCredentialSetQueryDto"}}},"required":["credentials"]},"DCQLCredentialQueryDto":{"type":"object","properties":{"id":{"type":"string"},"format":{"type":"string","enum":["dc+sd-jwt","jwt_vc_json","mso_mdoc"]},"multiple":{"type":"boolean"},"meta":{"type":"object","additionalProperties":true},"trusted_authorities":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"values":{"type":"array","items":{"type":"string"}}},"required":["type","values"]}},"require_cryptographic_holder_binding":{"type":"boolean"},"claims":{"type":"array","items":{"$ref":"#/components/schemas/DCQLClaimQueryDto"}},"claim_sets":{"type":"array","items":{"type":"array","items":{"type":"string"}}}},"required":["id","format"]},"DCQLClaimQueryDto":{"type":"object","properties":{"id":{"type":"string"},"namespace":{"type":"string"},"claim_name":{"type":"string"},"path":{"type":"array","description":"JSONPath-like segments; each entry can be string, number, or null.","items":{}},"values":{"type":"array","description":"Allowed value literals (string, number, boolean).","items":{}},"intent_to_retain":{"type":"boolean"}},"required":["path"]},"DCQLCredentialSetQueryDto":{"type":"object","properties":{"options":{"type":"array","items":{"type":"array","items":{"type":"string"}}},"required":{"type":"boolean"}},"required":["options"]},"PresentationTemplateType":{"type":"string","enum":["dcql","pex"]},"PresentationTemplateResponseDto":{"type":"object","properties":{"template":{"$ref":"#/components/schemas/PresentationTemplateModelDto"}},"required":["template"]},"PresentationTemplateModelDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"purpose":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"input_descriptors":{"oneOf":[{"type":"array","items":{"$ref":"#/components/schemas/InputDescriptorPayload"}},{"type":"null"}]},"type":{"$ref":"#/components/schemas/PresentationTemplateType"},"dcql_query":{"anyOf":[{"$ref":"#/components/schemas/DCQLQueryPayload"},{"type":"null"}]}},"required":["id","name","purpose","created_at","updated_at","input_descriptors","type","dcql_query"]},"InvalidRequestPayloadError":{"properties":{"error":{"description":"Unique error identifier","enum":["invalid_request_payload"],"type":"string"},"extra_info":{"description":"Object that may contain more information about the error","type":"object"},"message":{"description":"User friendly error message","type":"string"}},"required":["error","message","extra_info"],"type":"object"},"InvalidPresentationTemplateInputDescriptorsError":{"properties":{"error":{"description":"Unique error identifier","enum":["invalid_presentation_template_input_descriptors"],"type":"string"},"extra_info":{"description":"Object that may contain more information about the error","type":"object"},"message":{"description":"User friendly error message","type":"string"}},"required":["error","message","extra_info"],"type":"object"},"InvalidPresentationTemplateDcqlQueryError":{"properties":{"error":{"description":"Unique error identifier","enum":["invalid_presentation_template_dcql_query"],"type":"string"},"extra_info":{"description":"Object that may contain more information about the error","type":"object"},"message":{"description":"User friendly error message","type":"string"}},"required":["error","message","extra_info"],"type":"object"}}},"paths":{"/verifier/templates":{"post":{"summary":"Create presentation template","description":"Register a Presentation Template.\n\n`dcql_query` follows DCQL format when `type=dcql`.\n`input_descriptors` follows DIF Presentation Exchange format when `type=pex`.\n\nIf `type` is omitted, `dcql` is used by default.\n\n## Supported Standards\n\n- [DIF Presentation Exchange v2.1.1](https://identity.foundation/presentation-exchange/spec/v2.1.1/)\n- [OpenID4VP 1.0 (DCQL)](https://openid.net/specs/openid-4-verifiable-presentations-1_0.html)\n","operationId":"PresentationTemplatesController_create","parameters":[],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePresentationTemplatePayloadDto"}}},"required":true},"responses":{"201":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PresentationTemplateResponseDto"}}},"description":"Presentation template successfully created"},"400":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/InvalidRequestPayloadError"},{"$ref":"#/components/schemas/InvalidPresentationTemplateInputDescriptorsError"},{"$ref":"#/components/schemas/InvalidPresentationTemplateDcqlQueryError"}]}}},"description":"Invalid payload or presentation template content"}},"tags":["Presentation Templates"]}}}}
```

## Get presentation template

> Get presentation template by ID. The template contains necessary information for presentation request generation such as the linked input descriptors or DCQL query and other relevant metadata.<br>

```json
{"openapi":"3.1.0","info":{"title":"SVX Wallet API","version":"4.0.1"},"servers":[{"url":"https://zyfla-wallet-sandbox.meeco.cloud","description":"SVX Wallet deployment (relative)"}],"security":[{},{"bearerAuth":[]},{"mutualTLS":[]}],"components":{"securitySchemes":{"bearerAuth":{"bearerFormat":"JWT","scheme":"bearer","type":"http"},"mutualTLS":{"type":"mutualTLS"}},"schemas":{"PresentationTemplateResponseDto":{"type":"object","properties":{"template":{"$ref":"#/components/schemas/PresentationTemplateModelDto"}},"required":["template"]},"PresentationTemplateModelDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"purpose":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"input_descriptors":{"oneOf":[{"type":"array","items":{"$ref":"#/components/schemas/InputDescriptorPayload"}},{"type":"null"}]},"type":{"$ref":"#/components/schemas/PresentationTemplateType"},"dcql_query":{"anyOf":[{"$ref":"#/components/schemas/DCQLQueryPayload"},{"type":"null"}]}},"required":["id","name","purpose","created_at","updated_at","input_descriptors","type","dcql_query"]},"InputDescriptorPayload":{"type":"object","properties":{"id":{"type":"string"},"format":{"type":"object","additionalProperties":{"type":"object"}},"name":{"type":"string"},"purpose":{"type":"string"},"constraints":{"$ref":"#/components/schemas/ConstraintsDto"},"group":{"type":"array","items":{"type":"string"}}},"required":["id","constraints"]},"ConstraintsDto":{"type":"object","properties":{"limit_disclosure":{"type":"string","enum":["required","preferred"]},"fields":{"type":"array","items":{"$ref":"#/components/schemas/FieldsDto"}}}},"FieldsDto":{"type":"object","properties":{"path":{"type":"array","items":{"type":"string"}},"name":{"type":"string"},"purpose":{"type":"string"},"filter":{"$ref":"#/components/schemas/FilterDto"},"optional":{"type":"boolean"},"intent_to_retain":{"type":"boolean"}},"required":["path"]},"FilterDto":{"type":"object","properties":{"type":{"type":"string"},"const":{"description":"Any JSON value"},"pattern":{"type":"string"},"format":{"type":"string"},"exclusiveMinimum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"maximum":{"type":"number"},"enum":{"type":"array","items":{"type":"string"}},"not":{"$ref":"#/components/schemas/FilterNotPredicateDto"},"items":{"$ref":"#/components/schemas/FilterItemsDto"},"contains":{"$ref":"#/components/schemas/FilterContainsDto"}},"required":["type"]},"FilterNotPredicateDto":{"type":"object","properties":{"enum":{"type":"array","items":{"type":"string"}},"const":{"description":"Any JSON value"}}},"FilterItemsDto":{"type":"object","properties":{"type":{"type":"string"}},"required":["type"]},"FilterContainsDto":{"type":"object","properties":{"type":{"type":"string"},"const":{"description":"Any JSON value"}}},"PresentationTemplateType":{"type":"string","enum":["dcql","pex"]},"DCQLQueryPayload":{"type":"object","properties":{"credentials":{"type":"array","items":{"$ref":"#/components/schemas/DCQLCredentialQueryDto"}},"credential_sets":{"type":"array","items":{"$ref":"#/components/schemas/DCQLCredentialSetQueryDto"}}},"required":["credentials"]},"DCQLCredentialQueryDto":{"type":"object","properties":{"id":{"type":"string"},"format":{"type":"string","enum":["dc+sd-jwt","jwt_vc_json","mso_mdoc"]},"multiple":{"type":"boolean"},"meta":{"type":"object","additionalProperties":true},"trusted_authorities":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"values":{"type":"array","items":{"type":"string"}}},"required":["type","values"]}},"require_cryptographic_holder_binding":{"type":"boolean"},"claims":{"type":"array","items":{"$ref":"#/components/schemas/DCQLClaimQueryDto"}},"claim_sets":{"type":"array","items":{"type":"array","items":{"type":"string"}}}},"required":["id","format"]},"DCQLClaimQueryDto":{"type":"object","properties":{"id":{"type":"string"},"namespace":{"type":"string"},"claim_name":{"type":"string"},"path":{"type":"array","description":"JSONPath-like segments; each entry can be string, number, or null.","items":{}},"values":{"type":"array","description":"Allowed value literals (string, number, boolean).","items":{}},"intent_to_retain":{"type":"boolean"}},"required":["path"]},"DCQLCredentialSetQueryDto":{"type":"object","properties":{"options":{"type":"array","items":{"type":"array","items":{"type":"string"}}},"required":{"type":"boolean"}},"required":["options"]},"InvalidPathParamError":{"properties":{"error":{"description":"Unique error identifier","enum":["invalid_path_param"],"type":"string"},"extra_info":{"description":"Object that may contain more information about the error","type":"object"},"message":{"description":"User friendly error message","type":"string"}},"required":["error","message","extra_info"],"type":"object"},"PresentationTemplateNotFoundError":{"properties":{"error":{"description":"Unique error identifier","enum":["presentation_template_not_found"],"type":"string"},"extra_info":{"description":"Object that may contain more information about the error","type":"object"},"message":{"description":"User friendly error message","type":"string"}},"required":["error","message","extra_info"],"type":"object"}}},"paths":{"/verifier/templates/{id}":{"get":{"summary":"Get presentation template","description":"Get presentation template by ID. The template contains necessary information for presentation request generation such as the linked input descriptors or DCQL query and other relevant metadata.\n","operationId":"PresentationTemplatesController_findOne","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PresentationTemplateResponseDto"}}},"description":"Presentation template successfully loaded"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidPathParamError"}}},"description":"Invalid path param"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PresentationTemplateNotFoundError"}}},"description":"Presentation template not found"}},"tags":["Presentation Templates"]}}}}
```

## Delete presentation template

> Delete presentation template by ID. Deleted templates can no longer be used for presentation request generation. Ensure to review the implications before deleting a presentation template.<br>

```json
{"openapi":"3.1.0","info":{"title":"SVX Wallet API","version":"4.0.1"},"servers":[{"url":"https://zyfla-wallet-sandbox.meeco.cloud","description":"SVX Wallet deployment (relative)"}],"security":[{},{"bearerAuth":[]},{"mutualTLS":[]}],"components":{"securitySchemes":{"bearerAuth":{"bearerFormat":"JWT","scheme":"bearer","type":"http"},"mutualTLS":{"type":"mutualTLS"}},"schemas":{"InvalidPathParamError":{"properties":{"error":{"description":"Unique error identifier","enum":["invalid_path_param"],"type":"string"},"extra_info":{"description":"Object that may contain more information about the error","type":"object"},"message":{"description":"User friendly error message","type":"string"}},"required":["error","message","extra_info"],"type":"object"},"PresentationTemplateNotFoundError":{"properties":{"error":{"description":"Unique error identifier","enum":["presentation_template_not_found"],"type":"string"},"extra_info":{"description":"Object that may contain more information about the error","type":"object"},"message":{"description":"User friendly error message","type":"string"}},"required":["error","message","extra_info"],"type":"object"}}},"paths":{"/verifier/templates/{id}":{"delete":{"summary":"Delete presentation template","description":"Delete presentation template by ID. Deleted templates can no longer be used for presentation request generation. Ensure to review the implications before deleting a presentation template.\n","operationId":"PresentationTemplatesController_deleteOne","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"204":{"description":"Presentation template deleted"},"400":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvalidPathParamError"}}},"description":"Invalid path param"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PresentationTemplateNotFoundError"}}},"description":"Presentation template not found"}},"tags":["Presentation Templates"]}}}}
```

## Update presentation template

> Update presentation template fields. \`type\` cannot be changed.\
> \
> \`input\_descriptors\` updates are valid for \`pex\` templates, and \`dcql\_query\` updates are valid for \`dcql\` templates.\
> \
> \## Supported Standards\
> \
> \- \[DIF Presentation Exchange v2.1.1]\(<https://identity.foundation/presentation-exchange/spec/v2.1.1/)\\>
> \- \[OpenID4VP 1.0 (DCQL)]\(<https://openid.net/specs/openid-4-verifiable-presentations-1\\_0.html>)<br>

```json
{"openapi":"3.1.0","info":{"title":"SVX Wallet API","version":"4.0.1"},"servers":[{"url":"https://zyfla-wallet-sandbox.meeco.cloud","description":"SVX Wallet deployment (relative)"}],"security":[{},{"bearerAuth":[]},{"mutualTLS":[]}],"components":{"securitySchemes":{"bearerAuth":{"bearerFormat":"JWT","scheme":"bearer","type":"http"},"mutualTLS":{"type":"mutualTLS"}},"schemas":{"UpdatePresentationTemplatePayloadDto":{"type":"object","properties":{"template":{"$ref":"#/components/schemas/UpdatePresentationTemplateDto"}},"required":["template"]},"UpdatePresentationTemplateDto":{"type":"object","properties":{"name":{"type":"string"},"purpose":{"type":"string"},"input_descriptors":{"type":"array","items":{"$ref":"#/components/schemas/InputDescriptorPayload"}},"dcql_query":{"$ref":"#/components/schemas/DCQLQueryPayload"}}},"InputDescriptorPayload":{"type":"object","properties":{"id":{"type":"string"},"format":{"type":"object","additionalProperties":{"type":"object"}},"name":{"type":"string"},"purpose":{"type":"string"},"constraints":{"$ref":"#/components/schemas/ConstraintsDto"},"group":{"type":"array","items":{"type":"string"}}},"required":["id","constraints"]},"ConstraintsDto":{"type":"object","properties":{"limit_disclosure":{"type":"string","enum":["required","preferred"]},"fields":{"type":"array","items":{"$ref":"#/components/schemas/FieldsDto"}}}},"FieldsDto":{"type":"object","properties":{"path":{"type":"array","items":{"type":"string"}},"name":{"type":"string"},"purpose":{"type":"string"},"filter":{"$ref":"#/components/schemas/FilterDto"},"optional":{"type":"boolean"},"intent_to_retain":{"type":"boolean"}},"required":["path"]},"FilterDto":{"type":"object","properties":{"type":{"type":"string"},"const":{"description":"Any JSON value"},"pattern":{"type":"string"},"format":{"type":"string"},"exclusiveMinimum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"maximum":{"type":"number"},"enum":{"type":"array","items":{"type":"string"}},"not":{"$ref":"#/components/schemas/FilterNotPredicateDto"},"items":{"$ref":"#/components/schemas/FilterItemsDto"},"contains":{"$ref":"#/components/schemas/FilterContainsDto"}},"required":["type"]},"FilterNotPredicateDto":{"type":"object","properties":{"enum":{"type":"array","items":{"type":"string"}},"const":{"description":"Any JSON value"}}},"FilterItemsDto":{"type":"object","properties":{"type":{"type":"string"}},"required":["type"]},"FilterContainsDto":{"type":"object","properties":{"type":{"type":"string"},"const":{"description":"Any JSON value"}}},"DCQLQueryPayload":{"type":"object","properties":{"credentials":{"type":"array","items":{"$ref":"#/components/schemas/DCQLCredentialQueryDto"}},"credential_sets":{"type":"array","items":{"$ref":"#/components/schemas/DCQLCredentialSetQueryDto"}}},"required":["credentials"]},"DCQLCredentialQueryDto":{"type":"object","properties":{"id":{"type":"string"},"format":{"type":"string","enum":["dc+sd-jwt","jwt_vc_json","mso_mdoc"]},"multiple":{"type":"boolean"},"meta":{"type":"object","additionalProperties":true},"trusted_authorities":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"values":{"type":"array","items":{"type":"string"}}},"required":["type","values"]}},"require_cryptographic_holder_binding":{"type":"boolean"},"claims":{"type":"array","items":{"$ref":"#/components/schemas/DCQLClaimQueryDto"}},"claim_sets":{"type":"array","items":{"type":"array","items":{"type":"string"}}}},"required":["id","format"]},"DCQLClaimQueryDto":{"type":"object","properties":{"id":{"type":"string"},"namespace":{"type":"string"},"claim_name":{"type":"string"},"path":{"type":"array","description":"JSONPath-like segments; each entry can be string, number, or null.","items":{}},"values":{"type":"array","description":"Allowed value literals (string, number, boolean).","items":{}},"intent_to_retain":{"type":"boolean"}},"required":["path"]},"DCQLCredentialSetQueryDto":{"type":"object","properties":{"options":{"type":"array","items":{"type":"array","items":{"type":"string"}}},"required":{"type":"boolean"}},"required":["options"]},"PresentationTemplateResponseDto":{"type":"object","properties":{"template":{"$ref":"#/components/schemas/PresentationTemplateModelDto"}},"required":["template"]},"PresentationTemplateModelDto":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"},"purpose":{"type":["string","null"]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"input_descriptors":{"oneOf":[{"type":"array","items":{"$ref":"#/components/schemas/InputDescriptorPayload"}},{"type":"null"}]},"type":{"$ref":"#/components/schemas/PresentationTemplateType"},"dcql_query":{"anyOf":[{"$ref":"#/components/schemas/DCQLQueryPayload"},{"type":"null"}]}},"required":["id","name","purpose","created_at","updated_at","input_descriptors","type","dcql_query"]},"PresentationTemplateType":{"type":"string","enum":["dcql","pex"]},"InvalidPathParamError":{"properties":{"error":{"description":"Unique error identifier","enum":["invalid_path_param"],"type":"string"},"extra_info":{"description":"Object that may contain more information about the error","type":"object"},"message":{"description":"User friendly error message","type":"string"}},"required":["error","message","extra_info"],"type":"object"},"InvalidRequestPayloadError":{"properties":{"error":{"description":"Unique error identifier","enum":["invalid_request_payload"],"type":"string"},"extra_info":{"description":"Object that may contain more information about the error","type":"object"},"message":{"description":"User friendly error message","type":"string"}},"required":["error","message","extra_info"],"type":"object"},"InvalidUpdateFieldForTypeError":{"properties":{"error":{"description":"Unique error identifier","enum":["invalid_update_field_for_type"],"type":"string"},"extra_info":{"description":"Object that may contain more information about the error","type":"object"},"message":{"description":"User friendly error message","type":"string"}},"required":["error","message","extra_info"],"type":"object"},"InvalidPresentationTemplateInputDescriptorsError":{"properties":{"error":{"description":"Unique error identifier","enum":["invalid_presentation_template_input_descriptors"],"type":"string"},"extra_info":{"description":"Object that may contain more information about the error","type":"object"},"message":{"description":"User friendly error message","type":"string"}},"required":["error","message","extra_info"],"type":"object"},"InvalidPresentationTemplateDcqlQueryError":{"properties":{"error":{"description":"Unique error identifier","enum":["invalid_presentation_template_dcql_query"],"type":"string"},"extra_info":{"description":"Object that may contain more information about the error","type":"object"},"message":{"description":"User friendly error message","type":"string"}},"required":["error","message","extra_info"],"type":"object"},"PresentationTemplateNotFoundError":{"properties":{"error":{"description":"Unique error identifier","enum":["presentation_template_not_found"],"type":"string"},"extra_info":{"description":"Object that may contain more information about the error","type":"object"},"message":{"description":"User friendly error message","type":"string"}},"required":["error","message","extra_info"],"type":"object"}}},"paths":{"/verifier/templates/{id}":{"patch":{"summary":"Update presentation template","description":"Update presentation template fields. `type` cannot be changed.\n\n`input_descriptors` updates are valid for `pex` templates, and `dcql_query` updates are valid for `dcql` templates.\n\n## Supported Standards\n\n- [DIF Presentation Exchange v2.1.1](https://identity.foundation/presentation-exchange/spec/v2.1.1/)\n- [OpenID4VP 1.0 (DCQL)](https://openid.net/specs/openid-4-verifiable-presentations-1_0.html)\n","operationId":"PresentationTemplatesController_update","parameters":[{"in":"path","name":"id","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdatePresentationTemplatePayloadDto"}}},"required":true},"responses":{"200":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PresentationTemplateResponseDto"}}},"description":"Presentation template successfully updated"},"400":{"content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/InvalidPathParamError"},{"$ref":"#/components/schemas/InvalidRequestPayloadError"},{"$ref":"#/components/schemas/InvalidUpdateFieldForTypeError"},{"$ref":"#/components/schemas/InvalidPresentationTemplateInputDescriptorsError"},{"$ref":"#/components/schemas/InvalidPresentationTemplateDcqlQueryError"}]}}},"description":"Invalid path param or payload"},"404":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PresentationTemplateNotFoundError"}}},"description":"Presentation template not found"}},"tags":["Presentation Templates"]}}}}
```
