> ## 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.

# 安装案件蓝图预设 API

> 通过 Didit 安装内置的筛查命中、AML 调查、可疑活动和 KYC 审核蓝图预设，这些预设均可作为可编辑的蓝图使用。



安装蓝图预设 API 提示词
        将提示词复制到剪贴板



      
      

\<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>



      
      

粘贴到

将一个或多个内置预设复制到应用中，作为可编辑的蓝图。请先调用 `GET .../cases/blueprints/presets/`，查看完整目录以及哪些预设已安装。## 相关内容- [创建案件蓝图](https://docs.didit.me/zh/management-api/case-blueprints/create.md)
- [蓝图（控制台）](https://docs.didit.me/zh/console/case-management/blueprints.md)


## OpenAPI

````yaml zh/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。使用 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: 安装蓝图预设
      description: >-
        将一个或多个预设作为可编辑的蓝图复制到应用中。针对每个 preset_key 具有幂等性；省略 preset_keys
        可安装所有尚未安装的预设。
      operationId: install_case_blueprint_presets
      parameters:
        - name: organization_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: 组织 UUID。
        - name: application_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
          description: 应用 UUID。
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                preset_keys:
                  type: array
                  items:
                    type: string
                  nullable: true
                  description: >-
                    screening_hit、aml_investigation、suspicious_activity、kyc
                    的子集。省略则安装全部。
            example:
              preset_keys:
                - aml_investigation
                - kyc
      responses:
        '200':
          description: 没有可安装的新预设（所有请求的预设均已存在）。
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CaseBlueprintPresetInstallResult'
        '201':
          description: 已安装的一个或多个预设。
          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: >-
        您的应用 API 密钥，可在 Business Console 的“开发者 -> API
        密钥”中获取。主密钥拥有完整访问权限。指定名称的密钥可设置作用域：针对每个资源设为无权限、只读或读写，限定于特定工作流或已通过的会话、限定于
        IP 地址列表，以及设置到期日期。401 表示密钥错误、已撤销或已过期；403 表示未发送密钥、密钥无权访问该资源或操作，或请求来自其 IP
        列表之外的地址；在会话路由上返回 404 表示该会话不在该密钥允许的工作流或状态范围内。没有媒体访问权限的密钥获取到的图片、视频和 PDF
        URL 将为 null；没有会话写入权限的密钥获取到的会话链接和 token 将为 null。请参阅
        https://docs.didit.me/console/api-keys。

````

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