action rudder_update_technique { label: "Update technique" description: "Update technique created with technique editor" provider: rudder method: POST path: "/techniques/{techniqueId}/{techniqueVersion}" encoding: json input: { type: "array" items: { type: "object" properties: { calls: { type: "array" description: "Method and blocks contained by this technique" items: { type: "object" } } category: { type: "string" description: "category of this technique" } description: { type: "string" description: "description of this technique" } id: { type: "string" description: "Technique id" } name: { type: "string" description: "Technique name" } parameters: { type: "array" description: "Parameters for this technique" items: { type: "object" properties: { description: { type: "string" description: "description of this parameter" } id: { type: "string" description: "parameter id" } mayBeEmpty: { type: "boolean" description: "May the value given when creating a directive be empty" } name: { type: "string" description: "Parameter name" } } } } resources: { type: "array" description: "Resources for this technique" items: { type: "object" properties: { name: { type: "string" description: "resource name. this is the relative path to the resource" } state: { type: "string" description: "State of the resource file. it can be a value between new, modified, deleted, untouched" } } } } source: { type: "string" description: "Source of the technique, always editor here" } version: { type: "string" description: "version of this technique" } } } } output: { type: "object" required: ["action", "data", "result"] properties: { action: { type: "string" description: "The id of the action" enum: ["listTechniques"] } data: { type: "object" required: ["techniques"] properties: { techniques: { type: "object" required: ["technique"] properties: { technique: { type: "object" properties: { calls: { type: "array" description: "Method and blocks contained by this technique" items: { type: "object" } } category: { type: "string" description: "category of this technique" } description: { type: "string" description: "description of this technique" } id: { type: "string" description: "Technique id" } name: { type: "string" description: "Technique name" } parameters: { type: "array" description: "Parameters for this technique" items: { type: "object" properties: { description: { type: "string" description: "description of this parameter" } id: { type: "string" description: "parameter id" } mayBeEmpty: { type: "boolean" description: "May the value given when creating a directive be empty" } name: { type: "string" description: "Parameter name" } } } } resources: { type: "array" description: "Resources for this technique" items: { type: "object" properties: { name: { type: "string" description: "resource name. this is the relative path to the resource" } state: { type: "string" description: "State of the resource file. it can be a value between new, modified, deleted, untouched" } } } } source: { type: "string" description: "Source of the technique, always editor here" } version: { type: "string" description: "version of this technique" } } } } } } } result: { type: "string" description: "Result of the request" enum: ["success", "error"] } } } }