API
/web_api/mcp_key/create
/web_api/mcp_key/create
This page is built from the JSON Schema snapshot in the documentation repository. The snapshot is updated by a separate command from the main app catalog and is not rewritten when the site is built.
Request
main-app://schemas/api_mcp_key/mcp_key/create.request.json
REQUEST /web_api/mcp_key/create
| Name | Type | Required | Constraint |
|---|---|---|---|
* | any | No | other fields allowed |
Response
main-app://schemas/api_mcp_key/mcp_key/create.response.json
RESPONSE /web_api/mcp_key/create
| Name | Type | Required | Constraint |
|---|---|---|---|
api_code | integer | Yes | const 200 |
api_result | object | Yes | other fields allowed |
empty | boolean | No | - |
Other top-level fields are not allowed.
Source schema
The files below are copied from the snapshot unchanged. A $ref fragment is a separate block. The schemas are not merged.
Request: main-app://schemas/api_mcp_key/mcp_key/create.request.json
json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "main-app://schemas/api_mcp_key/mcp_key/create.request.json",
"title": "REQUEST /web_api/mcp_key/create",
"$ref": "main-app://schemas/_shared/json-object.request.json"
}Fragment: main-app://schemas/_shared/json-object.request.json
json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "main-app://schemas/_shared/json-object.request.json",
"title": "JSON object body, fields vary by operation",
"type": "object",
"additionalProperties": true
}Response: main-app://schemas/api_mcp_key/mcp_key/create.response.json
json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "main-app://schemas/api_mcp_key/mcp_key/create.response.json",
"title": "RESPONSE /web_api/mcp_key/create",
"$ref": "main-app://schemas/_shared/entity-row.response.json"
}Fragment: main-app://schemas/_shared/entity-row.response.json
json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "main-app://schemas/_shared/entity-row.response.json",
"title": "create / clone / update_property success: find_for_response row",
"allOf": [
{ "$ref": "main-app://schemas/_shared/envelope-success.json" },
{
"type": "object",
"properties": {
"api_result": {
"type": "object",
"additionalProperties": true
}
}
}
]
}Fragment: main-app://schemas/_shared/envelope-success.json
json
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "main-app://schemas/_shared/envelope-success.json",
"title": "Canonical success envelope",
"type": "object",
"required": ["api_code", "api_result"],
"properties": {
"api_code": { "const": 200 },
"api_result": true,
"empty": { "type": "boolean" }
},
"additionalProperties": false
}Did this page help?