Update a documentation entry
/documentation/{id}
Update a documentation entry. For tool_name, clearing content or setting it to the default name deletes the custom name and returns null.
Path Parameters
Request Body
Entry type. Per-method entries for MCP tools use description, tool_name, query_schema,
body_schema, and response_schema. Integration-wide entries include readme, oauth_*, and note.
readmenoteend_user_guidedescriptiontool_namequery_schemabody_schemaresponse_schemaoauth_documentation_linkoauth_app_requires_verificationoauth_note
Response Body
object · 11 properties
Set when the entry applies to one authentication method only.
Entry content. For tool_name, a custom MCP tool name (lowercase letters, numbers and underscores,
at most 64 characters). For description, plain text. For *_schema types, a YAML-encoded schema.
When the entry was created.
The ID of the integration, environment integration, unified model or environment unified model the entry belongs to.
What entity_id points to.
integrationunified_modelenvironment_integrationenvironment_unified_model
The entry's ID.
The integration the entry belongs to.
The method a per-method entry describes.
The resource a per-method entry describes.
Entry type. Per-method entries for MCP tools use description, tool_name, query_schema,
body_schema, and response_schema. Integration-wide entries include readme, oauth_*, and note.
readmenoteend_user_guidedescriptiontool_namequery_schemabody_schemaresponse_schemaoauth_documentation_linkoauth_app_requires_verificationoauth_note
When the entry was last updated.
curl -X PATCH 'https://api.truto.one/documentation/{id}' \
-H 'Authorization: Bearer <your_api_token>' \
-H 'Content-Type: application/json' \
-d '{
"type": "readme",
"content": "your_content",
"resource": "your_resource",
"method": "your_method",
"authentication_method": "your_authentication_method",
"integration_name": "your_integration_name"
}'const body = {
"type": "readme",
"content": "your_content",
"resource": "your_resource",
"method": "your_method",
"authentication_method": "your_authentication_method",
"integration_name": "your_integration_name"
};
const response = await fetch('https://api.truto.one/documentation/{id}', {
method: 'PATCH',
headers: {
'Authorization': 'Bearer <your_api_token>',
'Content-Type': 'application/json',
},
body: JSON.stringify(body),
});
const data = await response.json();
console.log(data);import requests
url = "https://api.truto.one/documentation/{id}"
headers = {
"Authorization": "Bearer <your_api_token>",
"Content-Type": "application/json",
}
params = {
}
payload = {
"type": "readme",
"content": "your_content",
"resource": "your_resource",
"method": "your_method",
"authentication_method": "your_authentication_method",
"integration_name": "your_integration_name"
}
response = requests.patch(url, headers=headers, params=params, json=payload)
print(response.json())