1"use strict";(self.webpackChunkmy_website=self.webpackChunkmy_website||[]).push([[1970],{59296:(e,t,n)=>{n.r(t),n.d(t,{default:()=>I});var a=n(96540),s=n(92303),o=n(34164),i=n(26058),r=n(17559),c=n(34291);const l={codeBlockContainer:"codeBlockContainer_APcc"};var d=n(74848);function p({as:e,...t}){const n=(0,i.A)(),a=(0,c.M$)(n);return(0,d.jsx)(e,{...t,style:a,className:(0,o.A)(t.className,l.codeBlockContainer,r.G.common.codeBlock)})}const m={codeBlock:"codeBlock_qGQc",codeBlockStandalone:"codeBlockStandalone_zC50",codeBlockLines:"codeBlockLines_p187",codeBlockLinesWithNumbering:"codeBlockLinesWithNumbering_OFgW"};function u({children:e,className:t}){return(0,d.jsx)(p,{as:"pre",tabIndex:0,className:(0,o.A)(m.codeBlockStandalone,"thin-scrollbar",t),children:(0,d.jsx)("code",{className:m.codeBlockLines,children:e})})}var h=n(6342),g=n(96591);function f({children:e}){return e}var y=n(71765);function b({line:e,token:t,...n}){return(0,d.jsx)("span",{...n})}const k={codeLine:"codeLine_iPqp",codeLineNumber:"codeLineNumber_F4P7",codeLineContent:"codeLineContent_pOih"};function N({line:e,classNames:t,showLineNumbers:n,getLineProps:a,getTokenProps:s}){const i=function(e){const t=1===e.length&&"\n"===e[0].content?e[0]:void 0;return t?[{...t,content:""}]:e}(e),r=a({line:i,className:(0,o.A)(t,n&&k.codeLine)}),c=i.map((e,t)=>{const n=s({token:e});return(0,d.jsx)(b,{...n,line:i,token:e,children:n.children},t)});return(0,d.jsxs)("span",{...r,children:[n?(0,d.jsxs)(d.Fragment,{children:[(0,d.jsx)("span",{className:k.codeLineNumber}),(0,d.jsx)("span",{className:k.codeLineContent,children:c})]}):c,(0,d.jsx)("br",{})]})}const x=a.forwardRef((e,t)=>(0,d.jsx)("pre",{ref:t,tabIndex:0,...e,className:(0,o.A)(e.className,m.codeBlock,"thin-scrollbar")}));function v(e){const{metadata:t}=(0,c.Ph)();return(0,d.jsx)("code",{...e,className:(0,o.A)(e.className,m.codeBlockLines,void 0!==t.lineNumbersStart&&m.codeBlockLinesWithNumbering),style:{...e.style,counterReset:void 0===t.lineNumbersStart?void 0:"line-count "+(t.lineNumbersStart-1)}})}function B({className:e}){const{metadata:t,wordWrap:n}=(0,c.Ph)(),a=(0,i.A)(),{code:s,language:r,lineNumbersStart:l,lineClassNames:p}=t;return(0,d.jsx)(y.Highlight,{theme:a,code:s,language:r,children:({className:t,style:a,tokens:s,getLineProps:i,getTokenProps:r})=>(0,d.jsx)(x,{ref:n.codeBlockRef,className:(0,o.A)(e,t),style:a,children:(0,d.jsx)(v,{children:s.map((e,t)=>(0,d.jsx)(N,{line:e,getLineProps:i,getTokenProps:r,classNames:p[t],showLineNumbers:void 0!==l},t))})})})}var j=n(78478),T=n(86861),J=n(21312);function A({className:e,...t}){return(0,d.jsx)("button",{type:"button",...t,className:(0,o.A)("clean-btn",e)})}var C=n(81473),L=n(14115);const w={copyButtonCopied:"copyButtonCopied_KAEU",copyButtonIcons:"copyButtonIcons_CCmD",copyButtonIcon:"copyButtonIcon_cWY_",copyButtonSuccessIcon:"copyButtonSuccessIcon_YaqN"};var S=n(9597);function U(e){return e?(0,J.translate)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,J.translate)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"})}const G=()=>/^((?!chrome|android).)*safari/i.test(navigator.userAgent);function W({className:e}){const{copyCode:t,isCopied:n}=function(){const{metadata:{code:e}}=(0,c.Ph)(),[t,n]=(0,a.useState)(!1),s=(0,a.useRef)(void 0),o=(0,a.useCallback)(()=>{(0,T.default)(e),n(!0),s.current=window.setTimeout(()=>{n(!1)},1e3)},[e]);return(0,a.useEffect)(()=>()=>window.clearTimeout(s.current),[]),G()&&(0,S.Dk)(e),{copyCode:o,isCopied:t}}();return(0,d.jsx)(A,{"aria-label":U(n),title:(0,J.translate)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,o.A)(e,w.copyButton,n&&w.copyButtonCopied),onClick:t,children:(0,d.jsxs)("span",{className:w.copyButtonIcons,"aria-hidden":"true",children:[(0,d.jsx)(C.A,{className:w.copyButtonIcon}),(0,d.jsx)(L.A,{className:w.copyButtonSuccessIcon})]})})}var z=n(5048);const O={wordWrapButtonIcon:"wordWrapButtonIcon_zAao",wordWrapButtonEnabled:"wordWrapButtonEnabled_RxZc"};function R({className:e}){const{wordWrap:t}=(0,c.Ph)();if(!(t.isEnabled||t.isCodeScrollable))return!1;const n=(0,J.translate)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return(0,d.jsx)(A,{onClick:()=>
1t.toggle(),className:(0,o.A)(e,t.isEnabled&&O.wordWrapButtonEnabled),"aria-label":n,title:n,children:(0,d.jsx)(z.A,{className:O.wordWrapButtonIcon,"aria-hidden":"true"})})}const P={buttonGroup:"buttonGroup_VWRw"};function E({className:e}){return(0,d.jsx)(j.default,{children:()=>(0,d.jsxs)("div",{className:(0,o.A)(e,P.buttonGroup),children:[(0,d.jsx)(R,{}),(0,d.jsx)(W,{})]})})}const X={codeBlockContent:"codeBlockContent_bxn0",codeBlockTitle:"codeBlockTitle_d3dP",codeBlock:"codeBlock_tXDp"};function Z({className:e}){const{metadata:t}=(0,c.Ph)();return(0,d.jsxs)(p,{as:"div",className:(0,o.A)(e,t.className),children:[t.title&&(0,d.jsx)("div",{className:X.codeBlockTitle,children:(0,d.jsx)(f,{children:t.title})}),(0,d.jsxs)("div",{className:X.codeBlockContent,children:[(0,d.jsx)(B,{}),(0,d.jsx)(E,{})]})]})}function V(e){const t=function(e){const{prism:t}=(0,h.p)();return(0,c.mU)({code:e.children,className:e.className,metastring:e.metastring,magicComments:t.magicComments,defaultLanguage:t.defaultLanguage,language:e.language,title:e.title,showLineNumbers:e.showLineNumbers})}(e),n=(0,g.f)();return(0,d.jsx)(c.l8,{metadata:t,wordWrap:n,children:(0,d.jsx)(Z,{})})}function I({children:e,...t}){const n=(0,s.default)(),o=function(e){return a.Children.toArray(e).some(e=>(0,a.isValidElement)(e))?e:Array.isArray(e)?e.join(""):e}(e),i="string"==typeof o?V:u;return(0,d.jsx)(i,{...t,children:o},String(n))}},72390:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>y,contentTitle:()=>f,default:()=>N,frontMatter:()=>g,metadata:()=>a,toc:()=>b});const a=JSON.parse('{"id":"api/update-term","title":"Update Term","description":"Updates an existing term\'s attributes in the glossary.","source":"@site/docs/api/update-term.api.mdx","sourceDirName":"api","slug":"/api/update-term","permalink":"/docs/api/update-term","draft":false,"unlisted":false,"editUrl":null,"tags":[],"version":"current","frontMatter":{"id":"update-term","title":"Update Term","description":"Updates an existing term\'s attributes in the glossary.","sidebar_label":"Update Term","hide_title":true,"hide_table_of_contents":true,"api":"eJzlWNtu2zgQ/RViXroLKI6TZret9ym9boBiG2TTfXGDdCyOJDYUqZJUEsPwvy+GkmxZzqUtmr3mJYnEy5kzw3OGWoAknzpVBWUNTOB9JTGQF2gEXSsflMlFIFc+8gJDcGpW81tlRChI5Np6j24++mA+mHdGz+PTytlLJUn2J1wprcWMRB2Xl78IGwpy7XNHJSojapMWaHKSow/mtKBu26OXAo0UqSNkjCKoknzAshIpGmMDL1taqTJFcgQJ2IpcHHkkYQLNhue8FiRQocOSAjkPk+kCDJYEE+CX50pCAoopqDAUkICjz7VyJGESXE0J+LSgEmGygDCveJoPTpkckiGDRn2uSShJJjAoJzLrIjEtCLrGstLEEOLWOxSK8R6cJRBU0LzyKblSHElYfuXay7MGNvnw3Mo5Yx1GkVoTyAR+hVWlVRqp2v3kef1FL8jKMZFBMc6OqQWgmb/LIndDEkq8fksmDwVM9sbjBEplVv8Pw+Ds8orCZivwiaBRPkrEozfoH3GBzbRNL9IClRkNSHuDHhI4tRdk4GyZrLCYWuvIQcfjb4x6SOJdQWzCPBSSAipNUvRe9EFvAxPKCxS1UYFjeMVVTnU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zi5u0eLHux/4D37laz2Kn3q00qnjRr52O7WSs1KbV4xqYdJ+4zhIo2J8nU1gsZujpvdPLJT/+XJObN8Z+iU6x48fzJpXnvyVMMtSe7qD0h5PWNX8U9/ajN4LvvN/Me6cSkvb8diEsuZEoCCW5niC8aGDsnPIa69lbXfdaDw7TlKpw59i+CBwfnr74FRKYtR/W2JZhAg6vuF/AqwZqcwGLxyc+W4BGk9eY89hmUf75E69wc34=","sidebar_class_name":"patch api-method","info_path":"docs/api/parlant-api","custom_edit_url":null},"sidebar":"tutorialSidebar","previous":{"title":"Update Tag","permalink":"/docs/api/update-tag"},"next":{"title":"Update Variable Value","permalink":"/docs/api/update-variable-value"}}');var s=n(74848),o=n(28453),i=n(57742),r=n.n(i),c=n(78178),l=n.n(c),d=n(19624),p=n.n(d),m=n(96226),u=n.n(m),h=(n(77675),n(19365),n(51107));const g={id:"update-term",title:"Update Term",description:"Updates an existing term's attributes in the glossary.",sidebar_label:"Update Term",hide_title:!0,hide_table_of_contents:!0,api:"eJzlWNtu2zgQ/RViXroLKI6TZret9ym9boBiG2TTfXGDdCyOJDYUqZJUEsPwvy+GkmxZzqUtmr3mJYnEy5kzw3OGWoAknzpVBWUNTOB9JTGQF2gEXSsflMlFIFc+8gJDcGpW81tlRChI5Np6j24++mA+mHdGz+PTytlLJUn2J1wprcWMRB2Xl78IGwpy7XNHJ
1SojapMWaHKSow/mtKBu26OXAo0UqSNkjCKoknzAshIpGmMDL1taqTJFcgQJ2IpcHHkkYQLNhue8FiRQocOSAjkPk+kCDJYEE+CX50pCAoopqDAUkICjz7VyJGESXE0J+LSgEmGygDCveJoPTpkckiGDRn2uSShJJjAoJzLrIjEtCLrGstLEEOLWOxSK8R6cJRBU0LzyKblSHElYfuXay7MGNvnw3Mo5Yx1GkVoTyAR+hVWlVRqp2v3kef1FL8jKMZFBMc6OqQWgmb/LIndDEkq8fksmDwVM9sbjBEplVv8Pw+Ds8orCZivwiaBRPkrEozfoH3GBzbRNL9IClRkNSH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cNjdBpNYDXaPoHHR0LatC7JNKGufKmb5cldkmPxuiTnm1mPR3uj8Q7qqsDRHldpZX0o0fSOe9Nzi5u0eLHux/4D37laz2Kn3q00qnjRr52O7WSs1KbV4xqYdJ+4zhIo2J8nU1gsZujpvdPLJT/+XJObN8Z+iU6x48fzJpXnvyVMMtSe7qD0h5PWNX8U9/ajN4LvvN/Me6cSkvb8diEsuZEoCCW5niC8aGDsnPIa69lbXfdaDw7TlKpw59i+CBwfnr74FRKYtR/W2JZhAg6vuF/AqwZqcwGLxyc+W4BGk9eY89hmUf75E69wc34=",sidebar_class_name:"patch api-method",info_path:"docs/api/parlant-api",custom_edit_url:null},f=void 0,y={},b=[];function k(e){const t={p:"p",...(0,o.R)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(h.default,{as:"h1",className:"openapi__heading",children:"Update Term"}),"\n",(0,s.jsx)(r(),{method:"patch",path:"/terms/{term_id}",context:"endpoint"}),"\n",(0,s.jsx)(t.p,{children:"Updates an existing term's attributes in the glossary."}),"\n",(0,s.jsx)(t.p,{children:"Only the provided attributes will be updated; others will remain unchanged.\nThe term's ID and creation timestamp cannot be modified."}),"\n",(0,s.jsx)(h.default,{id:"request",as:"h2",className:"openapi-tabs__heading",children:"Request"}),"\n",(0,s.jsx)(l(),{parameters:[{name:"term_id",in:"path",required:!0,schema:{type:"string",description:"Unique identifier for the term",examples:["term-eth01"],title:"Term Id"},description:"Unique identifier for the term"}]}),"\n",(0,s.jsx)(p(),{title:"Body",body:{required:!0,content:{"application/json":{schema:{properties:{name:{anyOf:[{type:"string",maxLength:100,minLength:1,description:"The name of the term, e.g., 'Gas' in blockchain.",examples:["Gas","Token"]},{type:"null"}],title:"Name"},description:{anyOf:[{type:"string",description:"A detailed description of the term",examples:["Gas is a unit in Ethereum that measures the computational effort to execute transactions or smart contracts."]},{type:"null"}],title:"Description"},synonyms:{anyOf:[{items:{type:"string"},type:"array",description:"A list of synonyms for the term, including alternate contexts if applicable.",examples:[["Execution Cost","Blockchain Fuel"]]},{type:"null"}],title:"Synonyms"},tags:{anyOf:[{properties:{add:{anyOf:[{items:{type:"string"},type:"array",description:"List of tag IDs to add to the term",examples:[["tag1","tag2"]]},{type:"null"}],title:"Add"},remove:{anyOf:[{items:{type:"string"},type:"array",description:"List of tag IDs to remove from the term",examples:[["tag1","tag2"]]},{type:"null"}],title:"Remove"}},type:"object",title:"TermTagsUpdateParams",description:"Parameters for updating the tags of an existing glossary term.",example:{add:["t9a8g703f4","tag_456abc"],remove:["tag_789def","tag_012ghi"]}},{type:"null"}]}},type:"object",title:"TermUpdateParams",description:"Parameters for updating an existing glossary term including tags.\n\nAll fields are optional. Only the provided fields will be updated.",example:{description:"A unit in Ethereum that measures the computational effort to execute transactions or smart contracts",name:"Gas",synonyms:["Transaction Fee","Blockchain Fuel"],tags:{add:["tag1","tag2"],remove:["tag3","tag4"]}}}}}}}),"\n",(0,s.jsx)(u(),{id:void 0,label:void 0,responses:{200:{description:"Term successfully updated. Returns the updated term object",content:{"application/json":{schema:{properties:{id:{type:"string",title:"Id",description:"Unique identifier for the term",examples:["term-eth01"]},name:{type:"string",maxLength:100,minLength:1,title:"Name",description:"The name of the term, e.g., 'Gas' in blockchain.",examples:["Gas","Token"]},description:{type:"string",title:"Description",description:"A detailed description of the term",examples:["Gas is a unit in Ethereum that measures the computational effort to execute transactions or smart contracts."]},synonyms:{items:{type:"string"},type:"array",title:"Synonyms",description:"A list of synonyms for the term, including alternate contexts if applicable.",default:[],examples:[["Execution Cost","Blockchain Fuel"]]},tags:{items:{type:"string"},type:"array",title:"Tags",description:"List of tag IDs associated with the term",examples:[["tag1","tag2"]]}},type:"object",required:["id","name","description","tags"],title:"Term",description:"Represents a glossary term associated with an agent.\n\nUse this model for representing complete term information in API responses.",example:{description:"A unit in Ethereum that measures the computational effort to execute transactions or smart contracts",id:"term-eth01",name:"Gas",synonyms:["Transaction Fee","Blockchain Fuel"],tags:["tag1","tag2"]}},example:{name:"Gas",description:"A unit in Ethereum that measures the computational effort to execute transactions or smart contracts",synonyms:["Transaction Fee","Blockchain Fuel"],tags:{add:["tag1","tag2"],remove:["tag3","tag4"]}}}}},404:{description:"Term not found. The specified `term_id` does not exist"},422:{description:"Validation error in update parameters"}}})]})}function N(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(k,{...e})}):k(e)}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.