> ## Documentation Index
> Fetch the complete documentation index at: https://docs.didit.me/llms.txt
> Use this file to discover all available pages before exploring further.

# Preset di blueprint dei casi: installazione tramite API

> Installa i preset blueprint integrati di Didit per screening hit, indagini AML, attività sospette e revisione KYC, come blueprint modificabili.



Prompt API per installare i preset di blueprint
        Copia il prompt negli appunti



      
      

\<pre>

\`Install built-in blueprint presets through the Management API.

Endpoint:
POST https://verification.didit.me/v3/organization/{organization_id}/application/{application_id}/cases/blueprints/presets/install/

Authentication:
Use the x-api-key header with my Didit API key.

Request body:
\{"preset_keys": ["aml_investigation", "kyc"]}   // optional - omit to install every preset not yet installed

Valid preset_keys: screening_hit, aml_investigation, suspicious_activity, kyc.

Behavior:
\- Idempotent per preset_key - re-installing an already-installed preset is skipped, not duplicated.
\- Installed presets become fully independent, editable CaseBlueprint rows; further edits do not affect the catalogue or other applications.
\- None of the presets set assignment_method, assignee_pool, escalation, transfer, or 4-eyes - those routing decisions are always yours to configure after installing.

Example call:
curl -X POST "https://verification.didit.me/v3/organization/{organization_id}/application/{application_id}/cases/blueprints/presets/install/" \
-H "x-api-key: YOUR_API_KEY" -H "Content-Type: application/json" \
-d '{"preset_keys": ["aml_investigation", "kyc"]}'

Response 201 (or 200 if nothing new was installed): {"created": ["aml_investigation", "kyc"]}

Failure modes:
\- 401/403 - auth/permission errors (requires write:cases).

For the full integration shape, see /integration/integration-prompt.`

\</pre>



      
      

Incolla in

Copia uno o più preset integrati nell'applicazione come blueprint modificabili. Chiama prima `GET .../cases/blueprints/presets/` per vedere il catalogo completo e i preset già installati.## Correlati- [Crea blueprint di caso](https://docs.didit.me/it/management-api/case-blueprints/create.md)
- [Blueprints (Console)](https://docs.didit.me/it/console/case-management/blueprints.md)


## OpenAPI

````yaml it/openapi-25.json POST /v3/organization/{organization_id}/application/{application_id}/cases/blueprints/presets/install/
openapi: 3.0.0
info:
  version: 3.0.0
  title: Didit Verification API
  description: API di verifica dell'identità. Autenticati con l'intestazione x-api-key.
servers:
  - url: https://verification.didit.me
security: []
tags: []
paths:
  /v3/organization/{organization_id}/application/{application_id}/cases/blueprints/presets/install/:
    post:
      tags:
        - Case Blueprints
      summary: Installa preset del blueprint
      description: >-
        Copia uno o più preset nell'applicazione come blueprint modificabili.
        Idempotente per preset_key; ometti preset_keys per installare tutti i
        preset non ancora installati.
      operationId: install_case_blueprint_presets
      parameters:
        - name: organization_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: UUID dell'organizzazione.
        - name: application_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: UUID dell'applicazione.
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                preset_keys:
                  type: array
                  items:
                    type: string
                  nullable: true
                  description: >-
                    Sottoinsieme di screening_hit, aml_investigation,
                    suspicious_activity, kyc. Ometti per installarli tutti.
            example:
              preset_keys:
                - aml_investigation
                - kyc
      responses:
        '200':
          description: >-
            Nessuna nuova preimpostazione da installare (tutte le
            preimpostazioni richieste esistono già).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CaseBlueprintPresetInstallResult'
        '201':
          description: Uno o più preset installati.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CaseBlueprintPresetInstallResult'
      security:
        - ApiKeyAuth: []
      x-codeSamples:
        - lang: curl
          label: curl
          source: >-
            curl -X POST
            'https://verification.didit.me/v3/organization/11111111-2222-3333-4444-555555555555/application/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee/cases/blueprints/presets/install/'
            \
              -H 'x-api-key: YOUR_API_KEY' \
              -H 'Content-Type: application/json' \
              -d '{"preset_keys": ["aml_investigation", "kyc"]}'
        - lang: python
          label: Python
          source: |-
            from didit import Didit

            # Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
            # and DIDIT_APPLICATION_ID.
            client = Didit()

            result = client.cases.blueprints.install_presets(
                preset_keys=["aml_investigation", "kyc"],
            )
            print(result)
        - lang: javascript
          label: Node.js
          source: |-
            import Didit from "@didit-protocol/sdk-node";

            // Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
            // and DIDIT_APPLICATION_ID.
            const didit = new Didit();

            const result = await didit.cases.blueprints.installPresets({
              preset_keys: ["aml_investigation", "kyc"],
            });
            console.log(result);
        - lang: go
          label: Go
          source: "ctx := context.Background()\n// Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID\n// and DIDIT_APPLICATION_ID.\nclient := didit.NewClient()\n\nresult, err := client.Cases.Blueprints.InstallPresets(ctx, didit.CasesBlueprintsInstallPresetsParams{\n\tPresetKeys: didit.Some([]string{\"aml_investigation\", \"kyc\"}),\n})\nif err != nil {\n\tlog.Fatal(err)\n}\nfmt.Printf(\"%+v\\n\", result)"
        - lang: java
          label: Java
          source: >-
            import java.util.List;

            import me.didit.Didit;

            import me.didit.types.CasesBlueprintsInstallPresetsParams;


            // Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID

            // and DIDIT_APPLICATION_ID.

            Didit client = new Didit();


            var result =
            client.cases().blueprints().installPresets(CasesBlueprintsInstallPresetsParams.builder()
                    .presetKeys(List.of("aml_investigation", "kyc"))
                    .build());
            System.out.println(result);
        - lang: php
          label: PHP
          source: |-
            <?php

            require 'vendor/autoload.php';

            use Didit\DiditClient;

            // Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID
            // and DIDIT_APPLICATION_ID.
            $didit = new DiditClient();

            $result = $didit->cases->blueprints->installPresets([
                'preset_keys' => ['aml_investigation', 'kyc'],
            ]);
            print_r($result->toArray());
        - lang: ruby
          label: Ruby
          source: >-
            require "didit"


            # Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID

            # and DIDIT_APPLICATION_ID.

            didit = Didit::Client.new


            result = didit.cases.blueprints.install_presets(preset_keys:
            ["aml_investigation", "kyc"])

            puts result.to_h
        - lang: csharp
          label: .NET
          source: >-
            using System;

            using System.Text.Json;

            using Didit;


            // Reads DIDIT_API_KEY, DIDIT_ORGANIZATION_ID

            // and DIDIT_APPLICATION_ID.

            using var client = new DiditClient();


            var result = await client.Cases.Blueprints.InstallPresetsAsync(new
            CasesBlueprintsInstallPresetsParams

            {
                PresetKeys = new string[] { "aml_investigation", "kyc" },
            });

            Console.WriteLine(JsonSerializer.Serialize(result));
components:
  schemas:
    CaseBlueprintPresetInstallResult:
      type: object
      properties:
        created:
          type: array
          items:
            type: string
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        La chiave API della tua applicazione, da Developers -> API keys nella
        Business Console. La chiave primaria ha accesso completo. Una chiave con
        nome può avere un ambito definito: nessuno, lettura o scrittura per
        risorsa, limitata ad alcuni workflow o a sessioni approvate, a un elenco
        di indirizzi IP e a una data di scadenza. 401 indica che la chiave è
        errata, revocata o scaduta; 403 indica che non è stata inviata alcuna
        chiave, che la chiave non ha accesso a questa risorsa o azione, oppure
        che la richiesta proviene da un indirizzo non incluso nel suo elenco IP;
        404 su una route di sessione indica che la sessione non rientra nei
        workflow o negli stati previsti dalla chiave. Una chiave senza accesso
        ai media riceve gli URL di immagini, video e PDF come null, e una chiave
        senza permessi di scrittura sulle sessioni riceve link e token di
        sessione come null. Consulta https://docs.didit.me/console/api-keys.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.