> ## 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": "1.0.1alpha-148prod" }, "servers": [ { "url": "https://api.torq.io/public", "description": "US Environment" }, { "url": "https://api.eu.torq.io/public", "description": "European Environment" } ], "security": [ { "bearerAuth": [] } ], "tags": [ { "name": "ActivityLogs" }, { "name": "AgentsHubService" }, { "name": "ApiKeys" }, { "name": "AuditLogs" }, { "name": "Auto Triage Alert History" }, { "name": "Auto Triage Alerts" }, { "name": "Auto Triage Guidance" }, { "name": "Auto Triage Rules" }, { "name": "Auto Triage Verdict Actions" }, { "name": "Cases" }, { "name": "Cases Attachments" }, { "name": "Cases Custom Fields" }, { "name": "Cases Events" }, { "name": "Cases Links" }, { "name": "Cases Notes" }, { "name": "Cases Runbooks" }, { "name": "Cases Task Templates" }, { "name": "Cases Tasks" }, { "name": "CasesService" }, { "name": "ClaimMappings" }, { "name": "Dashboards" }, { "name": "Executions" }, { "name": "IdpSsoService" }, { "name": "Integrations" }, { "name": "IP Access Rules" }, { "name": "Observables" }, { "name": "Roles" }, { "name": "Scheduled Reports" }, { "name": "Secrets" }, { "name": "Security Config" }, { "name": "ShareRequests" }, { "name": "StepRunners" }, { "name": "Users" }, { "name": "Workflows" }, { "name": "Workspaces" }, { "name": "WorkspaceVariables" } ], "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, as lowerCamelCase field-mask paths (the proto3 JSON convention). For\nexample, \"name\", \"description\", \"enabled\", or a comma-separated combination such as\n\"name,enabled\". Fields not listed are left unchanged. If omitted, it is derived from the\nfields present in the request, so sending only the fields you want to change is\nequivalent to listing them here.", "example": "enabled", "type": "string" }, "name": { "description": "The guidance name. Maximum 200 characters.", "maxLength": 200, "minLength": 1, "nullable": true, "type": "string" }, "description": { "description": "An optional description of the guidance. Maximum 2,000 characters.", "maxLength": 2000, "nullable": true, "type": "string" }, "guidance": { "description": "The guidance text provided to Auto Triage during alert triage. Maximum 2,000 characters.", "maxLength": 2000, "minLength": 1, "nullable": true, "type": "string" }, "enabled": { "description": "Indicates whether the guidance is active.", "nullable": true, "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\". Accepted values:\n\"Cloud Security\", \"Data Security\", \"Email Security\", \"Endpoint Security\", \"General\",\n\"Identity and Access\", \"Network Security\", \"Phishing\".", "items": { "enum": [ "Cloud Security", "Data Security", "Email Security", "Endpoint Security", "General", "Identity and Access", "Network Security", "Phishing" ], "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. Always returned, including when false.", "nullable": false, "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" } } } } ````