# Replace the authored document you own

[HTML](/documentation/en/api/experiences/experiences.replace) · [OpenAPI](/docs/spec.json)

## PUT /v1/experiences/{experience_id}

```json
{
  "operationId": "experiences.replace",
  "summary": "Replace the authored document you own",
  "tags": [
    "Experiences"
  ],
  "parameters": [
    {
      "name": "experience_id",
      "in": "path",
      "required": true,
      "schema": {
        "type": "string",
        "pattern": "^exp_[1-9]\\d{0,9}$"
      }
    },
    {
      "name": "if-match",
      "in": "header",
      "required": true,
      "schema": {
        "type": "string",
        "maxLength": 128,
        "pattern": "^(?:W\\/)?\"[\\x21\\x23-\\x7e]*\"$"
      },
      "description": "One strong ETag from the latest read of this resource or publication collection. Weak validators, wildcard and tag lists are not supported."
    }
  ],
  "requestBody": {
    "required": true,
    "content": {
      "application/json": {
        "schema": {
          "type": "object",
          "properties": {
            "document": {
              "type": "object",
              "properties": {
                "schemaVersion": {
                  "const": 1
                },
                "title": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "summary": {
                  "type": "string",
                  "maxLength": 4096,
                  "default": ""
                },
                "domain": {
                  "enum": [
                    "sales",
                    "retail",
                    "events",
                    "onboarding",
                    "safety",
                    "culture",
                    "recruiting",
                    "support",
                    "education",
                    "public-services"
                  ],
                  "type": "string",
                  "default": "support"
                },
                "domainPackId": {
                  "type": "string",
                  "maxLength": 200,
                  "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]*$",
                  "default": "core.ru.v1"
                },
                "locale": {
                  "type": "string",
                  "maxLength": 35,
                  "pattern": "^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$",
                  "default": "ru-RU"
                },
                "instructions": {
                  "type": "string",
                  "maxLength": 512000
                },
                "variables": {
                  "type": "array",
                  "maxItems": 64,
                  "items": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,63}$"
                      },
                      "value": {
                        "type": "string",
                        "maxLength": 8192
                      }
                    },
                    "required": [
                      "name",
                      "value"
                    ],
                    "additionalProperties": false
                  }
                },
                "welcomeMessage": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean",
                      "default": true
                    },
                    "allowInterruptions": {
                      "type": "boolean",
                      "default": true
                    }
                  },
                  "additionalProperties": false
                },
                "callEnding": {
                  "type": "object",
                  "properties": {
                    "enabled": {
                      "type": "boolean",
                      "default": false
                    },
                    "conditions": {
                      "type": "string",
                      "maxLength": 8192,
                      "default": ""
                    },
                    "finalResponse": {
                      "type": "string",
                      "maxLength": 8192,
                      "default": "Поблагодари пользователя за разговор и попрощайся."
                    },
                    "deleteRoom": {
                      "type": "boolean",
                      "default": false
                    },
                    "endpointUrl": {
                      "anyOf": [
                        {
                          "const": ""
                        },
                        {
                          "type": "string",
                          "format": "uri"
                        }
                      ],
                      "default": ""
                    },
                    "headers": {
                      "type": "array",
                      "maxItems": 32,
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128,
                            "pattern": "^[!#$%&'*+.^_`|~0-9A-Za-z-]+$"
                          },
                          "value": {
                            "type": "string",
                            "maxLength": 8192,
                            "pattern": "^[^\\r\\n]*$"
                          }
                        },
                        "required": [
                          "name",
                          "value"
                        ],
                        "additionalProperties": false
                      },
                      "default": []
                    },
                    "summary": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "type": "boolean",
                          "default": false
                        },
                        "instructions": {
                          "type": "string",
                          "maxLength": 8192,
                          "default": ""
                        },
                        "providerId": {
                          "enum": [
                            "gemini",
                            "openai",
                            "openrouter",
                            "local",
                            "yandex",
                            "gigachat"
                          ],
                          "type": "string"
                        },
                        "modelId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200,
                          "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
                        }
                      },
                      "required": [
                        "providerId",
                        "modelId"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                "character": {
                  "type": "object",
                  "properties": {
                    "displayName": {
                      "type": "string",
                      "maxLength": 200
                    },
                    "role": {
                      "type": "string",
                      "maxLength": 8192,
                      "default": ""
                    },
                    "background": {
                      "type": "string",
                      "maxLength": 8192,
                      "default": ""
                    },
                    "personality": {
                      "type": "array",
                      "maxItems": 128,
                      "items": {
                        "type": "string",
                        "maxLength": 8192
                      },
                      "default": []
                    },
                    "speakingStyle": {
                      "type": "string",
                      "maxLength": 8192,
                      "default": ""
                    },
                    "greeting": {
                      "type": "string",
                      "maxLength": 8192,
                      "default": "",
                      "description": "Initial greeting requested once at conversation startup. Empty waits for the user."
                    },
                    "values": {
                      "type": "array",
                      "maxItems": 128,
                      "items": {
                        "type": "string",
                        "maxLength": 8192
                      }
                    },
                    "stance": {
                      "type": "string",
                      "maxLength": 128
                    },
                    "avatarId": {
                      "anyOf": [
                        {
                          "type": "string",
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]{0,63}$"
                        },
                        {
                          "const": ""
                        }
                      ]
                    }
                  },
                  "required": [
                    "displayName"
                  ],
                  "additionalProperties": false
                },
                "scenario": {
                  "type": "object",
                  "properties": {
                    "title": {
                      "type": "string",
                      "maxLength": 200,
                      "default": ""
                    },
                    "participantRole": {
                      "type": "string",
                      "maxLength": 8192,
                      "default": ""
                    },
                    "context": {
                      "type": "string",
                      "maxLength": 8192,
                      "default": ""
                    },
                    "goals": {
                      "type": "array",
                      "maxItems": 128,
                      "items": {
                        "type": "string",
                        "maxLength": 8192
                      },
                      "default": []
                    },
                    "stages": {
                      "type": "array",
                      "maxItems": 64,
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "maxLength": 200,
                            "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]*$"
                          },
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200
                          },
                          "instruction": {
                            "type": "string",
                            "maxLength": 8192
                          },
                          "toolNames": {
                            "type": "array",
                            "maxItems": 128,
                            "items": {
                              "type": "string",
                              "pattern": "^[A-Za-z0-9_-]{1,64}$"
                            }
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "instruction"
                        ],
                        "additionalProperties": false
                      },
                      "default": []
                    },
                    "guardrails": {
                      "type": "array",
                      "maxItems": 128,
                      "items": {
                        "type": "string",
                        "maxLength": 8192
                      },
                      "default": []
                    },
                    "completionCriteria": {
                      "type": "array",
                      "maxItems": 128,
                      "items": {
                        "type": "string",
                        "maxLength": 8192
                      },
                      "default": []
                    }
                  },
                  "additionalProperties": false,
                  "default": {
                    "title": "",
                    "participantRole": "",
                    "context": "",
                    "goals": [],
                    "stages": [],
                    "guardrails": [],
                    "completionCriteria": []
                  }
                },
                "knowledge": {
                  "type": "object",
                  "properties": {
                    "facts": {
                      "type": "array",
                      "maxItems": 128,
                      "items": {
                        "type": "string",
                        "maxLength": 8192
                      },
                      "default": []
                    },
                    "provider": {
                      "enum": [
                        "none",
                        "local",
                        "dify"
                      ],
                      "type": "string",
                      "default": "none"
                    },
                    "enabled": {
                      "type": "boolean"
                    },
                    "embeddingBackend": {
                      "type": "string",
                      "maxLength": 200,
                      "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]*$"
                    },
                    "topK": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 12
                    },
                    "datasetId": {
                      "type": "string",
                      "maxLength": 200
                    }
                  },
                  "additionalProperties": false,
                  "default": {
                    "facts": [],
                    "provider": "none"
                  }
                },
                "tools": {
                  "type": "object",
                  "properties": {
                    "version": {
                      "const": 2
                    },
                    "source": {
                      "type": "string",
                      "maxLength": 1024
                    },
                    "functionDeclarations": {
                      "type": "array",
                      "maxItems": 128,
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "pattern": "^[A-Za-z0-9_-]{1,64}$"
                          },
                          "description": {
                            "type": "string",
                            "maxLength": 8192
                          },
                          "parametersJsonSchema": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {},
                            "default": {
                              "type": "object",
                              "properties": {}
                            }
                          },
                          "clientMethod": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128,
                            "pattern": "^[^\\x00-\\x1f]+$"
                          },
                          "silent": {
                            "type": "boolean"
                          },
                          "background": {
                            "type": "boolean"
                          },
                          "previewResponse": {}
                        },
                        "required": [
                          "name"
                        ],
                        "additionalProperties": false
                      },
                      "default": []
                    },
                    "httpTools": {
                      "type": "array",
                      "maxItems": 128,
                      "items": {
                        "type": "object",
                        "properties": {
                          "name": {
                            "type": "string",
                            "pattern": "^[A-Za-z0-9_-]{1,64}$"
                          },
                          "description": {
                            "type": "string",
                            "maxLength": 8192
                          },
                          "parametersJsonSchema": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string"
                            },
                            "additionalProperties": {},
                            "default": {
                              "type": "object",
                              "properties": {}
                            }
                          },
                          "silent": {
                            "type": "boolean"
                          },
                          "background": {
                            "type": "boolean"
                          },
                          "effect": {
                            "enum": [
                              "read",
                              "write"
                            ],
                            "type": "string",
                            "default": "write"
                          },
                          "url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "method": {
                            "enum": [
                              "GET",
                              "POST",
                              "PUT",
                              "DELETE",
                              "PATCH",
                              "HEAD",
                              "OPTIONS"
                            ],
                            "type": "string",
                            "default": "GET"
                          },
                          "headers": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128,
                              "pattern": "^[!#$%&'*+.^_`|~0-9A-Za-z-]+$"
                            },
                            "additionalProperties": {
                              "type": "string",
                              "maxLength": 8192
                            },
                            "default": {}
                          },
                          "timeoutMs": {
                            "type": "integer",
                            "minimum": 1000,
                            "maximum": 120000,
                            "default": 30000
                          }
                        },
                        "required": [
                          "name",
                          "url"
                        ],
                        "additionalProperties": false
                      },
                      "default": []
                    },
                    "mcpServers": {
                      "type": "array",
                      "maxItems": 32,
                      "items": {
                        "type": "object",
                        "properties": {
                          "effect": {
                            "enum": [
                              "read",
                              "write"
                            ],
                            "type": "string",
                            "default": "write"
                          },
                          "id": {
                            "type": "string",
                            "pattern": "^[A-Za-z0-9_-]{1,64}$"
                          },
                          "name": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 120
                          },
                          "url": {
                            "type": "string",
                            "format": "uri"
                          },
                          "transport": {
                            "enum": [
                              "streamable_http",
                              "sse"
                            ],
                            "type": "string",
                            "default": "streamable_http"
                          },
                          "headers": {
                            "type": "object",
                            "propertyNames": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128,
                              "pattern": "^[!#$%&'*+.^_`|~0-9A-Za-z-]+$"
                            },
                            "additionalProperties": {
                              "type": "string",
                              "maxLength": 8192
                            },
                            "default": {}
                          },
                          "allowedTools": {
                            "type": "array",
                            "maxItems": 128,
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 256
                            }
                          },
                          "background": {
                            "type": "boolean"
                          },
                          "timeoutMs": {
                            "type": "integer",
                            "minimum": 1000,
                            "maximum": 120000,
                            "default": 30000
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "url"
                        ],
                        "additionalProperties": false
                      },
                      "default": []
                    },
                    "secrets": {
                      "type": "object",
                      "propertyNames": {
                        "type": "string",
                        "pattern": "^[A-Za-z][A-Za-z0-9_]{0,63}$"
                      },
                      "additionalProperties": {
                        "anyOf": [
                          {
                            "type": "string",
                            "maxLength": 16384
                          },
                          {
                            "type": "null"
                          }
                        ]
                      }
                    }
                  },
                  "additionalProperties": false
                },
                "runtime": {
                  "type": "object",
                  "properties": {
                    "providerId": {
                      "type": "string",
                      "maxLength": 200,
                      "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]*$"
                    },
                    "modelId": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 200,
                      "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
                    },
                    "voiceId": {
                      "type": "string",
                      "maxLength": 100,
                      "default": ""
                    },
                    "voiceLanguage": {
                      "anyOf": [
                        {
                          "type": "string",
                          "maxLength": 35,
                          "pattern": "^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$"
                        },
                        {
                          "const": "auto"
                        }
                      ],
                      "default": "ru-RU"
                    },
                    "pipeline": {
                      "type": "object",
                      "properties": {
                        "llm": {
                          "type": "string",
                          "maxLength": 200,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]*$"
                        },
                        "stt": {
                          "type": "string",
                          "maxLength": 200,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]*$"
                        },
                        "stt_model": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200,
                          "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
                        },
                        "tts": {
                          "type": "string",
                          "maxLength": 200,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]*$"
                        },
                        "tts_model": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200,
                          "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
                        },
                        "reasoning_effort": {
                          "enum": [
                            "none"
                          ],
                          "type": "string"
                        }
                      },
                      "additionalProperties": false
                    },
                    "externalDialogue": {
                      "type": "object",
                      "properties": {
                        "connectionId": {
                          "type": "string",
                          "maxLength": 200,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]*$"
                        },
                        "profileId": {
                          "type": "string",
                          "maxLength": 200,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]*$"
                        }
                      },
                      "required": [
                        "connectionId"
                      ],
                      "additionalProperties": false
                    },
                    "speech": {
                      "type": "object",
                      "properties": {
                        "stt": {
                          "type": "object",
                          "properties": {
                            "providerId": {
                              "type": "string",
                              "maxLength": 200,
                              "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]*$"
                            },
                            "modelId": {
                              "type": "string",
                              "maxLength": 200,
                              "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]*$"
                            }
                          },
                          "required": [
                            "providerId",
                            "modelId"
                          ],
                          "additionalProperties": false
                        },
                        "tts": {
                          "type": "object",
                          "properties": {
                            "providerId": {
                              "type": "string",
                              "maxLength": 200,
                              "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]*$"
                            },
                            "modelId": {
                              "type": "string",
                              "maxLength": 200,
                              "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]*$"
                            }
                          },
                          "required": [
                            "providerId",
                            "modelId"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "required": [
                        "stt",
                        "tts"
                      ],
                      "additionalProperties": false
                    },
                    "environmentPresetId": {
                      "type": "string",
                      "maxLength": 128,
                      "default": ""
                    },
                    "scene": {
                      "type": "object",
                      "properties": {
                        "sceneId": {
                          "type": "string",
                          "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
                        },
                        "backgroundId": {
                          "type": "string",
                          "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
                        },
                        "brightness": {
                          "type": "number",
                          "minimum": 0.25,
                          "maximum": 4
                        }
                      },
                      "required": [
                        "sceneId",
                        "backgroundId"
                      ],
                      "additionalProperties": false
                    },
                    "camera": {
                      "type": "object",
                      "properties": {
                        "presetId": {
                          "type": "string",
                          "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
                        },
                        "blendSeconds": {
                          "type": "number",
                          "minimum": 0,
                          "maximum": 10
                        }
                      },
                      "required": [
                        "presetId"
                      ],
                      "additionalProperties": false
                    },
                    "quality": {
                      "type": "object",
                      "properties": {
                        "schemaVersion": {
                          "const": 1
                        },
                        "values": {
                          "type": "object",
                          "propertyNames": {
                            "type": "string",
                            "pattern": "^[A-Za-z0-9_.:-]{1,128}$"
                          },
                          "additionalProperties": {
                            "anyOf": [
                              {
                                "type": "number"
                              },
                              {
                                "type": "string",
                                "maxLength": 256
                              }
                            ]
                          }
                        }
                      },
                      "required": [
                        "schemaVersion",
                        "values"
                      ],
                      "additionalProperties": false
                    },
                    "renderer": {
                      "enum": [
                        "mesh2d",
                        "vrm"
                      ],
                      "type": "string"
                    },
                    "backdrop": {
                      "type": "string",
                      "maxLength": 200,
                      "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]*$"
                    },
                    "presentation": {
                      "type": "object",
                      "properties": {
                        "enabled": {
                          "const": true
                        },
                        "profileId": {
                          "type": "string",
                          "maxLength": 200,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]*$"
                        },
                        "contentRevision": {
                          "type": "string",
                          "maxLength": 200,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]*$"
                        }
                      },
                      "required": [
                        "enabled",
                        "profileId",
                        "contentRevision"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false,
                  "default": {
                    "voiceId": "",
                    "voiceLanguage": "ru-RU",
                    "environmentPresetId": ""
                  }
                },
                "provenance": {
                  "anyOf": [
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "const": "blank"
                        }
                      },
                      "required": [
                        "type"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "const": "preset"
                        },
                        "presetId": {
                          "type": "string",
                          "maxLength": 200,
                          "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]*$"
                        },
                        "presetVersion": {
                          "type": "integer",
                          "minimum": -9007199254740991,
                          "maximum": 9007199254740991,
                          "exclusiveMinimum": 0
                        }
                      },
                      "required": [
                        "type",
                        "presetId",
                        "presetVersion"
                      ],
                      "additionalProperties": false
                    },
                    {
                      "type": "object",
                      "properties": {
                        "type": {
                          "const": "import"
                        },
                        "label": {
                          "type": "string",
                          "maxLength": 256
                        }
                      },
                      "required": [
                        "type"
                      ],
                      "additionalProperties": false
                    }
                  ],
                  "default": {
                    "type": "blank"
                  }
                },
                "extensions": {
                  "type": "object",
                  "propertyNames": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "additionalProperties": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "number"
                      },
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      },
                      {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "type": "null"
                            },
                            {
                              "type": "array",
                              "items": {}
                            },
                            {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            }
                          ]
                        }
                      },
                      {
                        "type": "object",
                        "propertyNames": {
                          "type": "string"
                        },
                        "additionalProperties": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "type": "null"
                            },
                            {
                              "type": "array",
                              "items": {}
                            },
                            {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {}
                            }
                          ]
                        }
                      }
                    ]
                  }
                }
              },
              "required": [
                "schemaVersion",
                "title",
                "instructions",
                "character"
              ],
              "additionalProperties": false
            },
            "tags": {
              "type": "array",
              "maxItems": 128,
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              }
            }
          },
          "required": [
            "document"
          ],
          "additionalProperties": false
        }
      }
    }
  },
  "responses": {
    "200": {
      "description": "OK",
      "headers": {
        "etag": {
          "schema": {
            "type": "string"
          },
          "required": true
        }
      },
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "pattern": "^exp_[1-9]\\d{0,9}$"
              },
              "object": {
                "const": "experience"
              },
              "title": {
                "type": "string"
              },
              "status": {
                "enum": [
                  "draft",
                  "archived"
                ],
                "type": "string"
              },
              "document": {
                "anyOf": [
                  {
                    "type": "object",
                    "properties": {
                      "schemaVersion": {
                        "const": 1
                      },
                      "title": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 200
                      },
                      "summary": {
                        "type": "string",
                        "maxLength": 4096,
                        "default": ""
                      },
                      "domain": {
                        "enum": [
                          "sales",
                          "retail",
                          "events",
                          "onboarding",
                          "safety",
                          "culture",
                          "recruiting",
                          "support",
                          "education",
                          "public-services"
                        ],
                        "type": "string",
                        "default": "support"
                      },
                      "domainPackId": {
                        "type": "string",
                        "maxLength": 200,
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]*$",
                        "default": "core.ru.v1"
                      },
                      "locale": {
                        "type": "string",
                        "maxLength": 35,
                        "pattern": "^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$",
                        "default": "ru-RU"
                      },
                      "instructions": {
                        "type": "string",
                        "maxLength": 512000
                      },
                      "variables": {
                        "type": "array",
                        "maxItems": 64,
                        "items": {
                          "type": "object",
                          "properties": {
                            "name": {
                              "type": "string",
                              "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,63}$"
                            },
                            "value": {
                              "type": "string",
                              "maxLength": 8192
                            }
                          },
                          "required": [
                            "name",
                            "value"
                          ],
                          "additionalProperties": false
                        }
                      },
                      "welcomeMessage": {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean",
                            "default": true
                          },
                          "allowInterruptions": {
                            "type": "boolean",
                            "default": true
                          }
                        },
                        "additionalProperties": false
                      },
                      "callEnding": {
                        "type": "object",
                        "properties": {
                          "enabled": {
                            "type": "boolean",
                            "default": false
                          },
                          "conditions": {
                            "type": "string",
                            "maxLength": 8192,
                            "default": ""
                          },
                          "finalResponse": {
                            "type": "string",
                            "maxLength": 8192,
                            "default": "Поблагодари пользователя за разговор и попрощайся."
                          },
                          "deleteRoom": {
                            "type": "boolean",
                            "default": false
                          },
                          "endpointUrl": {
                            "anyOf": [
                              {
                                "const": ""
                              },
                              {
                                "type": "string",
                                "format": "uri"
                              }
                            ],
                            "default": ""
                          },
                          "headers": {
                            "type": "array",
                            "maxItems": 32,
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128,
                                  "pattern": "^[!#$%&'*+.^_`|~0-9A-Za-z-]+$"
                                },
                                "value": {
                                  "type": "string",
                                  "maxLength": 8192,
                                  "pattern": "^[^\\r\\n]*$"
                                }
                              },
                              "required": [
                                "name",
                                "value"
                              ],
                              "additionalProperties": false
                            },
                            "default": []
                          },
                          "summary": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "type": "boolean",
                                "default": false
                              },
                              "instructions": {
                                "type": "string",
                                "maxLength": 8192,
                                "default": ""
                              },
                              "providerId": {
                                "enum": [
                                  "gemini",
                                  "openai",
                                  "openrouter",
                                  "local",
                                  "yandex",
                                  "gigachat"
                                ],
                                "type": "string"
                              },
                              "modelId": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 200,
                                "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
                              }
                            },
                            "required": [
                              "providerId",
                              "modelId"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "additionalProperties": false
                      },
                      "character": {
                        "type": "object",
                        "properties": {
                          "displayName": {
                            "type": "string",
                            "maxLength": 200
                          },
                          "role": {
                            "type": "string",
                            "maxLength": 8192,
                            "default": ""
                          },
                          "background": {
                            "type": "string",
                            "maxLength": 8192,
                            "default": ""
                          },
                          "personality": {
                            "type": "array",
                            "maxItems": 128,
                            "items": {
                              "type": "string",
                              "maxLength": 8192
                            },
                            "default": []
                          },
                          "speakingStyle": {
                            "type": "string",
                            "maxLength": 8192,
                            "default": ""
                          },
                          "greeting": {
                            "type": "string",
                            "maxLength": 8192,
                            "default": "",
                            "description": "Initial greeting requested once at conversation startup. Empty waits for the user."
                          },
                          "values": {
                            "type": "array",
                            "maxItems": 128,
                            "items": {
                              "type": "string",
                              "maxLength": 8192
                            }
                          },
                          "stance": {
                            "type": "string",
                            "maxLength": 128
                          },
                          "avatarId": {
                            "anyOf": [
                              {
                                "type": "string",
                                "pattern": "^[A-Za-z0-9][A-Za-z0-9_.-]{0,63}$"
                              },
                              {
                                "const": ""
                              }
                            ]
                          }
                        },
                        "required": [
                          "displayName"
                        ],
                        "additionalProperties": false
                      },
                      "scenario": {
                        "type": "object",
                        "properties": {
                          "title": {
                            "type": "string",
                            "maxLength": 200,
                            "default": ""
                          },
                          "participantRole": {
                            "type": "string",
                            "maxLength": 8192,
                            "default": ""
                          },
                          "context": {
                            "type": "string",
                            "maxLength": 8192,
                            "default": ""
                          },
                          "goals": {
                            "type": "array",
                            "maxItems": 128,
                            "items": {
                              "type": "string",
                              "maxLength": 8192
                            },
                            "default": []
                          },
                          "stages": {
                            "type": "array",
                            "maxItems": 64,
                            "items": {
                              "type": "object",
                              "properties": {
                                "id": {
                                  "type": "string",
                                  "maxLength": 200,
                                  "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]*$"
                                },
                                "name": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 200
                                },
                                "instruction": {
                                  "type": "string",
                                  "maxLength": 8192
                                },
                                "toolNames": {
                                  "type": "array",
                                  "maxItems": 128,
                                  "items": {
                                    "type": "string",
                                    "pattern": "^[A-Za-z0-9_-]{1,64}$"
                                  }
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "instruction"
                              ],
                              "additionalProperties": false
                            },
                            "default": []
                          },
                          "guardrails": {
                            "type": "array",
                            "maxItems": 128,
                            "items": {
                              "type": "string",
                              "maxLength": 8192
                            },
                            "default": []
                          },
                          "completionCriteria": {
                            "type": "array",
                            "maxItems": 128,
                            "items": {
                              "type": "string",
                              "maxLength": 8192
                            },
                            "default": []
                          }
                        },
                        "additionalProperties": false,
                        "default": {
                          "title": "",
                          "participantRole": "",
                          "context": "",
                          "goals": [],
                          "stages": [],
                          "guardrails": [],
                          "completionCriteria": []
                        }
                      },
                      "knowledge": {
                        "type": "object",
                        "properties": {
                          "facts": {
                            "type": "array",
                            "maxItems": 128,
                            "items": {
                              "type": "string",
                              "maxLength": 8192
                            },
                            "default": []
                          },
                          "provider": {
                            "enum": [
                              "none",
                              "local",
                              "dify"
                            ],
                            "type": "string",
                            "default": "none"
                          },
                          "enabled": {
                            "type": "boolean"
                          },
                          "embeddingBackend": {
                            "type": "string",
                            "maxLength": 200,
                            "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]*$"
                          },
                          "topK": {
                            "type": "integer",
                            "minimum": 1,
                            "maximum": 12
                          },
                          "datasetId": {
                            "type": "string",
                            "maxLength": 200
                          }
                        },
                        "additionalProperties": false,
                        "default": {
                          "facts": [],
                          "provider": "none"
                        }
                      },
                      "tools": {
                        "type": "object",
                        "properties": {
                          "version": {
                            "const": 2
                          },
                          "source": {
                            "type": "string",
                            "maxLength": 1024
                          },
                          "functionDeclarations": {
                            "type": "array",
                            "maxItems": 128,
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "pattern": "^[A-Za-z0-9_-]{1,64}$"
                                },
                                "description": {
                                  "type": "string",
                                  "maxLength": 8192
                                },
                                "parametersJsonSchema": {
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string"
                                  },
                                  "additionalProperties": {},
                                  "default": {
                                    "type": "object",
                                    "properties": {}
                                  }
                                },
                                "clientMethod": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128,
                                  "pattern": "^[^\\x00-\\x1f]+$"
                                },
                                "silent": {
                                  "type": "boolean"
                                },
                                "background": {
                                  "type": "boolean"
                                },
                                "previewResponse": {}
                              },
                              "required": [
                                "name"
                              ],
                              "additionalProperties": false
                            },
                            "default": []
                          },
                          "httpTools": {
                            "type": "array",
                            "maxItems": 128,
                            "items": {
                              "type": "object",
                              "properties": {
                                "name": {
                                  "type": "string",
                                  "pattern": "^[A-Za-z0-9_-]{1,64}$"
                                },
                                "description": {
                                  "type": "string",
                                  "maxLength": 8192
                                },
                                "parametersJsonSchema": {
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string"
                                  },
                                  "additionalProperties": {},
                                  "default": {
                                    "type": "object",
                                    "properties": {}
                                  }
                                },
                                "silent": {
                                  "type": "boolean"
                                },
                                "background": {
                                  "type": "boolean"
                                },
                                "effect": {
                                  "enum": [
                                    "read",
                                    "write"
                                  ],
                                  "type": "string",
                                  "default": "write"
                                },
                                "url": {
                                  "type": "string",
                                  "format": "uri"
                                },
                                "method": {
                                  "enum": [
                                    "GET",
                                    "POST",
                                    "PUT",
                                    "DELETE",
                                    "PATCH",
                                    "HEAD",
                                    "OPTIONS"
                                  ],
                                  "type": "string",
                                  "default": "GET"
                                },
                                "headers": {
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 128,
                                    "pattern": "^[!#$%&'*+.^_`|~0-9A-Za-z-]+$"
                                  },
                                  "additionalProperties": {
                                    "type": "string",
                                    "maxLength": 8192
                                  },
                                  "default": {}
                                },
                                "timeoutMs": {
                                  "type": "integer",
                                  "minimum": 1000,
                                  "maximum": 120000,
                                  "default": 30000
                                }
                              },
                              "required": [
                                "name",
                                "url"
                              ],
                              "additionalProperties": false
                            },
                            "default": []
                          },
                          "mcpServers": {
                            "type": "array",
                            "maxItems": 32,
                            "items": {
                              "type": "object",
                              "properties": {
                                "effect": {
                                  "enum": [
                                    "read",
                                    "write"
                                  ],
                                  "type": "string",
                                  "default": "write"
                                },
                                "id": {
                                  "type": "string",
                                  "pattern": "^[A-Za-z0-9_-]{1,64}$"
                                },
                                "name": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 120
                                },
                                "url": {
                                  "type": "string",
                                  "format": "uri"
                                },
                                "transport": {
                                  "enum": [
                                    "streamable_http",
                                    "sse"
                                  ],
                                  "type": "string",
                                  "default": "streamable_http"
                                },
                                "headers": {
                                  "type": "object",
                                  "propertyNames": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 128,
                                    "pattern": "^[!#$%&'*+.^_`|~0-9A-Za-z-]+$"
                                  },
                                  "additionalProperties": {
                                    "type": "string",
                                    "maxLength": 8192
                                  },
                                  "default": {}
                                },
                                "allowedTools": {
                                  "type": "array",
                                  "maxItems": 128,
                                  "items": {
                                    "type": "string",
                                    "minLength": 1,
                                    "maxLength": 256
                                  }
                                },
                                "background": {
                                  "type": "boolean"
                                },
                                "timeoutMs": {
                                  "type": "integer",
                                  "minimum": 1000,
                                  "maximum": 120000,
                                  "default": 30000
                                }
                              },
                              "required": [
                                "id",
                                "name",
                                "url"
                              ],
                              "additionalProperties": false
                            },
                            "default": []
                          }
                        },
                        "additionalProperties": false
                      },
                      "runtime": {
                        "type": "object",
                        "properties": {
                          "providerId": {
                            "type": "string",
                            "maxLength": 200,
                            "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]*$"
                          },
                          "modelId": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 200,
                            "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
                          },
                          "voiceId": {
                            "type": "string",
                            "maxLength": 100,
                            "default": ""
                          },
                          "voiceLanguage": {
                            "anyOf": [
                              {
                                "type": "string",
                                "maxLength": 35,
                                "pattern": "^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,8})*$"
                              },
                              {
                                "const": "auto"
                              }
                            ],
                            "default": "ru-RU"
                          },
                          "pipeline": {
                            "type": "object",
                            "properties": {
                              "llm": {
                                "type": "string",
                                "maxLength": 200,
                                "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]*$"
                              },
                              "stt": {
                                "type": "string",
                                "maxLength": 200,
                                "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]*$"
                              },
                              "stt_model": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 200,
                                "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
                              },
                              "tts": {
                                "type": "string",
                                "maxLength": 200,
                                "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]*$"
                              },
                              "tts_model": {
                                "type": "string",
                                "minLength": 1,
                                "maxLength": 200,
                                "pattern": "^[^\\u0000-\\u001f\\u007f]+$"
                              },
                              "reasoning_effort": {
                                "enum": [
                                  "none"
                                ],
                                "type": "string"
                              }
                            },
                            "additionalProperties": false
                          },
                          "externalDialogue": {
                            "type": "object",
                            "properties": {
                              "connectionId": {
                                "type": "string",
                                "maxLength": 200,
                                "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]*$"
                              },
                              "profileId": {
                                "type": "string",
                                "maxLength": 200,
                                "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]*$"
                              }
                            },
                            "required": [
                              "connectionId"
                            ],
                            "additionalProperties": false
                          },
                          "speech": {
                            "type": "object",
                            "properties": {
                              "stt": {
                                "type": "object",
                                "properties": {
                                  "providerId": {
                                    "type": "string",
                                    "maxLength": 200,
                                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]*$"
                                  },
                                  "modelId": {
                                    "type": "string",
                                    "maxLength": 200,
                                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]*$"
                                  }
                                },
                                "required": [
                                  "providerId",
                                  "modelId"
                                ],
                                "additionalProperties": false
                              },
                              "tts": {
                                "type": "object",
                                "properties": {
                                  "providerId": {
                                    "type": "string",
                                    "maxLength": 200,
                                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]*$"
                                  },
                                  "modelId": {
                                    "type": "string",
                                    "maxLength": 200,
                                    "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]*$"
                                  }
                                },
                                "required": [
                                  "providerId",
                                  "modelId"
                                ],
                                "additionalProperties": false
                              }
                            },
                            "required": [
                              "stt",
                              "tts"
                            ],
                            "additionalProperties": false
                          },
                          "environmentPresetId": {
                            "type": "string",
                            "maxLength": 128,
                            "default": ""
                          },
                          "scene": {
                            "type": "object",
                            "properties": {
                              "sceneId": {
                                "type": "string",
                                "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
                              },
                              "backgroundId": {
                                "type": "string",
                                "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
                              },
                              "brightness": {
                                "type": "number",
                                "minimum": 0.25,
                                "maximum": 4
                              }
                            },
                            "required": [
                              "sceneId",
                              "backgroundId"
                            ],
                            "additionalProperties": false
                          },
                          "camera": {
                            "type": "object",
                            "properties": {
                              "presetId": {
                                "type": "string",
                                "pattern": "^[a-z0-9][a-z0-9_-]{0,63}$"
                              },
                              "blendSeconds": {
                                "type": "number",
                                "minimum": 0,
                                "maximum": 10
                              }
                            },
                            "required": [
                              "presetId"
                            ],
                            "additionalProperties": false
                          },
                          "quality": {
                            "type": "object",
                            "properties": {
                              "schemaVersion": {
                                "const": 1
                              },
                              "values": {
                                "type": "object",
                                "propertyNames": {
                                  "type": "string",
                                  "pattern": "^[A-Za-z0-9_.:-]{1,128}$"
                                },
                                "additionalProperties": {
                                  "anyOf": [
                                    {
                                      "type": "number"
                                    },
                                    {
                                      "type": "string",
                                      "maxLength": 256
                                    }
                                  ]
                                }
                              }
                            },
                            "required": [
                              "schemaVersion",
                              "values"
                            ],
                            "additionalProperties": false
                          },
                          "renderer": {
                            "enum": [
                              "mesh2d",
                              "vrm"
                            ],
                            "type": "string"
                          },
                          "backdrop": {
                            "type": "string",
                            "maxLength": 200,
                            "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]*$"
                          },
                          "presentation": {
                            "type": "object",
                            "properties": {
                              "enabled": {
                                "const": true
                              },
                              "profileId": {
                                "type": "string",
                                "maxLength": 200,
                                "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]*$"
                              },
                              "contentRevision": {
                                "type": "string",
                                "maxLength": 200,
                                "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]*$"
                              }
                            },
                            "required": [
                              "enabled",
                              "profileId",
                              "contentRevision"
                            ],
                            "additionalProperties": false
                          }
                        },
                        "additionalProperties": false,
                        "default": {
                          "voiceId": "",
                          "voiceLanguage": "ru-RU",
                          "environmentPresetId": ""
                        }
                      },
                      "provenance": {
                        "anyOf": [
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "const": "blank"
                              }
                            },
                            "required": [
                              "type"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "const": "preset"
                              },
                              "presetId": {
                                "type": "string",
                                "maxLength": 200,
                                "pattern": "^[A-Za-z0-9][A-Za-z0-9_.:/-]*$"
                              },
                              "presetVersion": {
                                "type": "integer",
                                "minimum": -9007199254740991,
                                "maximum": 9007199254740991,
                                "exclusiveMinimum": 0
                              }
                            },
                            "required": [
                              "type",
                              "presetId",
                              "presetVersion"
                            ],
                            "additionalProperties": false
                          },
                          {
                            "type": "object",
                            "properties": {
                              "type": {
                                "const": "import"
                              },
                              "label": {
                                "type": "string",
                                "maxLength": 256
                              }
                            },
                            "required": [
                              "type"
                            ],
                            "additionalProperties": false
                          }
                        ],
                        "default": {
                          "type": "blank"
                        }
                      },
                      "extensions": {
                        "type": "object",
                        "propertyNames": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "additionalProperties": {
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "number"
                            },
                            {
                              "type": "boolean"
                            },
                            {
                              "type": "null"
                            },
                            {
                              "type": "array",
                              "items": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "boolean"
                                  },
                                  {
                                    "type": "null"
                                  },
                                  {
                                    "type": "array",
                                    "items": {
                                      "anyOf": [
                                        {},
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "propertyNames": {
                                      "type": "string"
                                    },
                                    "additionalProperties": {}
                                  }
                                ]
                              }
                            },
                            {
                              "type": "object",
                              "propertyNames": {
                                "type": "string"
                              },
                              "additionalProperties": {
                                "anyOf": [
                                  {
                                    "type": "string"
                                  },
                                  {
                                    "type": "number"
                                  },
                                  {
                                    "type": "boolean"
                                  },
                                  {
                                    "type": "null"
                                  },
                                  {
                                    "type": "array",
                                    "items": {
                                      "anyOf": [
                                        {},
                                        {
                                          "type": "null"
                                        }
                                      ]
                                    }
                                  },
                                  {
                                    "type": "object",
                                    "propertyNames": {
                                      "type": "string"
                                    },
                                    "additionalProperties": {}
                                  }
                                ]
                              }
                            }
                          ]
                        }
                      }
                    },
                    "required": [
                      "schemaVersion",
                      "title",
                      "instructions",
                      "character"
                    ],
                    "additionalProperties": false
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "tags": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "revision": {
                "type": "integer",
                "minimum": 0,
                "maximum": 9007199254740990
              },
              "is_owner": {
                "type": "boolean"
              },
              "created_at": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "updated_at": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "tool_secret_names": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "thumbnail_url": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 2048
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "thumbnail_source_key": {
                "anyOf": [
                  {
                    "type": "string",
                    "maxLength": 16384
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "id",
              "object",
              "title",
              "status",
              "document",
              "tags",
              "revision",
              "is_owner",
              "created_at",
              "updated_at",
              "tool_secret_names",
              "thumbnail_url"
            ],
            "additionalProperties": false
          }
        }
      }
    },
    "400": {
      "description": "400",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "error": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string"
                  },
                  "type": {
                    "enum": [
                      "invalid_request_error",
                      "authentication_error",
                      "permission_error",
                      "not_found_error",
                      "conflict_error",
                      "rate_limit_error",
                      "server_error"
                    ],
                    "type": "string"
                  },
                  "param": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "code": {
                    "type": "string"
                  }
                },
                "required": [
                  "message",
                  "type",
                  "param",
                  "code"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "error"
            ],
            "additionalProperties": false
          }
        }
      }
    },
    "401": {
      "description": "401",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "error": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string"
                  },
                  "type": {
                    "enum": [
                      "invalid_request_error",
                      "authentication_error",
                      "permission_error",
                      "not_found_error",
                      "conflict_error",
                      "rate_limit_error",
                      "server_error"
                    ],
                    "type": "string"
                  },
                  "param": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "code": {
                    "type": "string"
                  }
                },
                "required": [
                  "message",
                  "type",
                  "param",
                  "code"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "error"
            ],
            "additionalProperties": false
          }
        }
      }
    },
    "403": {
      "description": "403",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "error": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string"
                  },
                  "type": {
                    "enum": [
                      "invalid_request_error",
                      "authentication_error",
                      "permission_error",
                      "not_found_error",
                      "conflict_error",
                      "rate_limit_error",
                      "server_error"
                    ],
                    "type": "string"
                  },
                  "param": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "code": {
                    "type": "string"
                  }
                },
                "required": [
                  "message",
                  "type",
                  "param",
                  "code"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "error"
            ],
            "additionalProperties": false
          }
        }
      }
    },
    "404": {
      "description": "404",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "error": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string"
                  },
                  "type": {
                    "enum": [
                      "invalid_request_error",
                      "authentication_error",
                      "permission_error",
                      "not_found_error",
                      "conflict_error",
                      "rate_limit_error",
                      "server_error"
                    ],
                    "type": "string"
                  },
                  "param": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "code": {
                    "type": "string"
                  }
                },
                "required": [
                  "message",
                  "type",
                  "param",
                  "code"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "error"
            ],
            "additionalProperties": false
          }
        }
      }
    },
    "409": {
      "description": "409",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "error": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string"
                  },
                  "type": {
                    "enum": [
                      "invalid_request_error",
                      "authentication_error",
                      "permission_error",
                      "not_found_error",
                      "conflict_error",
                      "rate_limit_error",
                      "server_error"
                    ],
                    "type": "string"
                  },
                  "param": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "code": {
                    "type": "string"
                  }
                },
                "required": [
                  "message",
                  "type",
                  "param",
                  "code"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "error"
            ],
            "additionalProperties": false
          }
        }
      }
    },
    "412": {
      "description": "412",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "error": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string"
                  },
                  "type": {
                    "enum": [
                      "invalid_request_error",
                      "authentication_error",
                      "permission_error",
                      "not_found_error",
                      "conflict_error",
                      "rate_limit_error",
                      "server_error"
                    ],
                    "type": "string"
                  },
                  "param": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "code": {
                    "type": "string"
                  }
                },
                "required": [
                  "message",
                  "type",
                  "param",
                  "code"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "error"
            ],
            "additionalProperties": false
          }
        }
      }
    },
    "413": {
      "description": "413",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "error": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string"
                  },
                  "type": {
                    "enum": [
                      "invalid_request_error",
                      "authentication_error",
                      "permission_error",
                      "not_found_error",
                      "conflict_error",
                      "rate_limit_error",
                      "server_error"
                    ],
                    "type": "string"
                  },
                  "param": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "code": {
                    "type": "string"
                  }
                },
                "required": [
                  "message",
                  "type",
                  "param",
                  "code"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "error"
            ],
            "additionalProperties": false
          }
        }
      }
    },
    "415": {
      "description": "415",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "error": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string"
                  },
                  "type": {
                    "enum": [
                      "invalid_request_error",
                      "authentication_error",
                      "permission_error",
                      "not_found_error",
                      "conflict_error",
                      "rate_limit_error",
                      "server_error"
                    ],
                    "type": "string"
                  },
                  "param": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "code": {
                    "type": "string"
                  }
                },
                "required": [
                  "message",
                  "type",
                  "param",
                  "code"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "error"
            ],
            "additionalProperties": false
          }
        }
      }
    },
    "422": {
      "description": "422",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "error": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string"
                  },
                  "type": {
                    "enum": [
                      "invalid_request_error",
                      "authentication_error",
                      "permission_error",
                      "not_found_error",
                      "conflict_error",
                      "rate_limit_error",
                      "server_error"
                    ],
                    "type": "string"
                  },
                  "param": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "code": {
                    "type": "string"
                  }
                },
                "required": [
                  "message",
                  "type",
                  "param",
                  "code"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "error"
            ],
            "additionalProperties": false
          }
        }
      }
    },
    "428": {
      "description": "428",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "error": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string"
                  },
                  "type": {
                    "enum": [
                      "invalid_request_error",
                      "authentication_error",
                      "permission_error",
                      "not_found_error",
                      "conflict_error",
                      "rate_limit_error",
                      "server_error"
                    ],
                    "type": "string"
                  },
                  "param": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "code": {
                    "type": "string"
                  }
                },
                "required": [
                  "message",
                  "type",
                  "param",
                  "code"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "error"
            ],
            "additionalProperties": false
          }
        }
      }
    },
    "429": {
      "description": "429",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "error": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string"
                  },
                  "type": {
                    "enum": [
                      "invalid_request_error",
                      "authentication_error",
                      "permission_error",
                      "not_found_error",
                      "conflict_error",
                      "rate_limit_error",
                      "server_error"
                    ],
                    "type": "string"
                  },
                  "param": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "code": {
                    "type": "string"
                  }
                },
                "required": [
                  "message",
                  "type",
                  "param",
                  "code"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "error"
            ],
            "additionalProperties": false
          }
        }
      }
    },
    "500": {
      "description": "500",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "error": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string"
                  },
                  "type": {
                    "enum": [
                      "invalid_request_error",
                      "authentication_error",
                      "permission_error",
                      "not_found_error",
                      "conflict_error",
                      "rate_limit_error",
                      "server_error"
                    ],
                    "type": "string"
                  },
                  "param": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "code": {
                    "type": "string"
                  }
                },
                "required": [
                  "message",
                  "type",
                  "param",
                  "code"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "error"
            ],
            "additionalProperties": false
          }
        }
      }
    },
    "502": {
      "description": "502",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "error": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string"
                  },
                  "type": {
                    "enum": [
                      "invalid_request_error",
                      "authentication_error",
                      "permission_error",
                      "not_found_error",
                      "conflict_error",
                      "rate_limit_error",
                      "server_error"
                    ],
                    "type": "string"
                  },
                  "param": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "code": {
                    "type": "string"
                  }
                },
                "required": [
                  "message",
                  "type",
                  "param",
                  "code"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "error"
            ],
            "additionalProperties": false
          }
        }
      }
    },
    "503": {
      "description": "503",
      "content": {
        "application/json": {
          "schema": {
            "type": "object",
            "properties": {
              "error": {
                "type": "object",
                "properties": {
                  "message": {
                    "type": "string"
                  },
                  "type": {
                    "enum": [
                      "invalid_request_error",
                      "authentication_error",
                      "permission_error",
                      "not_found_error",
                      "conflict_error",
                      "rate_limit_error",
                      "server_error"
                    ],
                    "type": "string"
                  },
                  "param": {
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "code": {
                    "type": "string"
                  }
                },
                "required": [
                  "message",
                  "type",
                  "param",
                  "code"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "error"
            ],
            "additionalProperties": false
          }
        }
      }
    }
  },
  "security": [
    {
      "studioSession": []
    },
    {
      "integrationKey": []
    }
  ]
}
```