> ## Documentation Index > Fetch the complete documentation index at: https://developers.torq.io/llms.txt > Use this file to discover all available pages before exploring further. # Update guidance > Applies a partial update to a guidance entry. Only fields listed in update_mask are modified; all others are left unchanged. ## OpenAPI ````json PATCH /v1/triage/guidance/{id} { "openapi": "3.0.1", "info": { "contact": { "email": "support@torq.io", "name": "torq.io", "url": "https://torq.io" }, "title": "Torq Public API[production]", "version": "${DH_DEPLOY_VERSION}" }, "servers": [ { "url": "https://api.torq.io/public", "description": "US Environment" }, { "url": "https://api.eu.torq.io/public", "description": "European Enviornment" } ], "security": [ { "bearerAuth": [] } ], "tags": [ { "name": "Files" }, { "name": "ActivityLogs" }, { "name": "AgentsHubService" }, { "name": "Users" }, { "name": "ApiKeys" }, { "name": "AuditLogs" }, { "name": "ContextGraph" }, { "name": "Executions" }, { "name": "ShareRequests" }, { "name": "StepRunners" }, { "name": "Integrations" }, { "name": "IPAccessService" }, { "name": "RolesService" }, { "name": "Secrets" }, { "name": "SecuritySettingsService" }, { "name": "ClaimMappings" }, { "name": "IdpSsoService" }, { "name": "Workflows" }, { "name": "Workspaces" }, { "name": "WorkspaceVariables" }, { "name": "Auto Triage Alerts" }, { "name": "Auto Triage Guidance" }, { "name": "Auto Triage Alert History" }, { "name": "Auto Triage Verdict Actions" }, { "name": "Cases" }, { "name": "Cases Custom Fields" }, { "name": "Cases Notes" }, { "name": "ExtendedCaseService" }, { "name": "Cases Attachments" }, { "name": "Observables" }, { "name": "Cases Observables" }, { "name": "CaseSearchService" }, { "name": "Cases Links" }, { "name": "Cases Events" }, { "name": "Cases Runbooks" } ], "externalDocs": { "description": "Torq Documentation", "url": "https://learn.torq.io" }, "x-original-swagger-version": "2.0", "paths": { "/v1/triage/guidance/{id}": { "patch": { "description": "Applies a partial update to a guidance entry. Only fields listed in update_mask are modified; all others are left unchanged.", "operationId": "GuidanceService_UpdateGuidance", "parameters": [ { "description": "The ID of the guidance entry to update. This property is required.", "in": "path", "name": "id", "required": true, "schema": { "type": "string" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/torq.public.triage.v1.GuidanceService.UpdateGuidanceBody" } } }, "required": true }, "responses": { "200": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/torq.public.triage.v1.UpdateGuidanceResponse" } } }, "description": "A successful response." }, "401": { "content": { "application/json": { "schema": { "type": "object" } } }, "description": "Invalid bearer token. If you receive this message more than once try creating a new Client ID/Client Secret or generating a new bearer token." }, "403": { "content": { "application/json": { "schema": { "type": "object" } } }, "description": "You don't have permission to access this resource." } }, "summary": "Update guidance", "tags": [ "Auto Triage Guidance" ], "x-codegen-request-body-name": "body" } } }, "components": { "schemas": { "torq.public.triage.v1.GuidanceService.UpdateGuidanceBody": { "properties": { "update_mask": { "description": "The fields to update. For example, \"name\", \"description\", \"enabled\". Fields not listed are left unchanged. This property is required.", "type": "string" }, "name": { "description": "The guidance name. Maximum 200 characters.", "maxLength": 200, "minLength": 1, "type": "string" }, "description": { "description": "An optional description of the guidance. Maximum 2,000 characters.", "maxLength": 2000, "type": "string" }, "guidance": { "description": "The guidance text provided to Auto Triage during alert triage. Maximum 2,000 characters.", "maxLength": 2000, "minLength": 1, "type": "string" }, "enabled": { "description": "Indicates whether the guidance is active.", "type": "boolean" }, "apply": { "$ref": "#/components/schemas/torq.public.triage.v1.Apply" } }, "title": "Update guidance request", "type": "object" }, "torq.public.triage.v1.UpdateGuidanceResponse": { "properties": { "guidance": { "$ref": "#/components/schemas/torq.public.triage.v1.Guidance" } }, "title": "Update guidance response", "type": "object" }, "torq.public.triage.v1.Apply": { "description": "Defines which alerts this applies to.", "properties": { "type": { "description": "The scope of alerts this applies to. Accepted values: \"always\", \"by_source\", \"by_categories\".", "enum": [ "always", "by_source", "by_categories" ], "title": "Type", "type": "string" }, "categories": { "description": "The security categories to match. Required when type is \"by_categories\".", "items": { "type": "string" }, "title": "Categories", "type": "array" }, "integration_type_ids": { "description": "The alert source type IDs to match. Required when type is \"by_source\".", "items": { "type": "string" }, "title": "Alert source types", "type": "array" } }, "title": "Apply", "type": "object" }, "torq.public.triage.v1.Guidance": { "description": "Guidance provides business context that informs Auto Triage reasoning during alert triage.\nEach entry defines instructions or policies scoped to specific alerts,\nhelping Auto Triage produce more accurate triage verdicts.", "properties": { "id": { "description": "The unique identifier of the guidance entry.", "title": "ID", "type": "string" }, "name": { "description": "The guidance name. Maximum 200 characters.", "title": "Name", "type": "string" }, "description": { "description": "An optional description of the guidance.", "title": "Description", "type": "string" }, "guidance": { "description": "The instruction text provided to Auto Triage during alert triage.", "title": "Guidance text", "type": "string" }, "enabled": { "description": "Whether the guidance is currently active.", "title": "Enabled", "type": "boolean" }, "apply": { "$ref": "#/components/schemas/torq.public.triage.v1.Apply" }, "created_at": { "description": "The timestamp when the guidance was created.", "format": "date-time", "readOnly": true, "title": "Create time", "type": "string" }, "updated_at": { "description": "The timestamp when the guidance was last updated.", "format": "date-time", "readOnly": true, "title": "Update time", "type": "string" } }, "type": "object" } }, "securitySchemes": { "bearerAuth": { "type": "http", "scheme": "bearer", "bearerFormat": "64fb4b65-44d8-4304-881c-b1f8b6b3100a" } } } } ````