1"use strict";(self.webpackChunkspectro_cloud_docs=self.webpackChunkspectro_cloud_docs||[]).push([["12142"],{531838:function(e,s,t){t.r(s),t.d(s,{frontMatter:()=>f,toc:()=>j,default:()=>y,metadata:()=>n,assets:()=>g,contentTitle:()=>b});var n=JSON.parse('{"id":"v1/v-1-users-workspace-roles-put","title":"Updates the workspace roles for user","description":"User is updated with workspace roles","source":"@site/docs/api-content/api-docs/v1/v-1-users-workspace-roles-put.api.mdx","sourceDirName":"v1","slug":"/v1/v-1-users-workspace-roles-put","permalink":"/api/v1/v-1-users-workspace-roles-put","draft":false,"unlisted":false,"editUrl":null,"tags":[],"version":"current","frontMatter":{"id":"v-1-users-workspace-roles-put","title":"Updates the workspace roles for user","description":"User is updated with workspace roles","sidebar_label":"Updates the workspace roles for user","hide_title":true,"hide_table_of_contents":true,"api":"eJzFVT2P4zYQ/SvEVAmgXWWDKwIVATYfxeYQwNiscYXhgpbGFs8SySOH9jmC/nswpCTL9vqQVGlskZwhH9+8N+ygQl86ZUkZDQUsPTqhvAi2koSVOCqqxdG4vbeyROFMgx4yMBad5JSXCgo4PHGa/zSGvXLUIhBkYKWTLRI6D8WquzrsWVhnPmNJYvnyG5/q8EtQDiuxNW5ce/ClsVgJh94EV6IXUlfC1yY0ldigMK2iiLRGLUi6HZLSO0Gopb5NhgwUH12jrNBBBlq2CAUs0mFLVUEGvqyxlVB0QCfLq56c0jvo+6xL6VZSfU4OHl3KHC8ABbmA39ppnYLR0y+mOnFEaTShJv6U1jaqjATnnz1z1c22so7pJ4WeR1Nx4kgRtv42KNVtvn6FJxsnpHPyxOOgqncZGGfMhgm7zbyN4KlLYuKEt0b7hOrHHz7w36U63mqc6iaO8qxJH8oSvd+GpknneSyDU3SKEnu26iPy55qr9RyoNk79LdOmqzUTT3LHcpxTt86gRaoNy9kOyqUaCsgPT/k5LudS+7wbKt7noyE8usMo8uAaVhiR9UWeS6sevcWSnCkbE6rH0rTAKEbUf3FhEw8j9hujLF7EHk9Czm/DincoxrVSarbDDjVbkz3kTCsWskEiFKXR3jQogq7QiYUzW9Wg+Fn8eYobfMTTXWsMoM51TuM+uyb3GvUfn94EmT3qK9xmQ1JprETw7FRmmAPiD2pi4aOQVt0FdHHsDa4+A/bM69ldv3+VrW3w2i2ryRerUd/rQfeT3tc9g9iaaAVFTewVA6fPixcvHsSHx58gA65+uvbhibmxxlMrIysD7GW
1UrxdU43VHjf2ONQXZJYezrvBvW/PABuFXym0jlY5mZkl2g6ZXDDGbU5HFFsb/xayXxQ3XGdTGE2d13UZ6XLqm73n6S0AXfZbBQTolN0wO93jl+buCYisbj9+40XevQ1f4XtwDPtZWswAPsgk8ggz2bJOp8cYyDTL5bxD+nyfo3aumK108RNOFuZWl9V8T9Ic33uIccfNi9POOtli+QQab4aFpTcUpTh65yvKYGDWRnfRa8FwHjdS7IHccm7Zka7FJZ++CtGofm8Pwwey/W7Opi6Rr7GMHuRPbdcnLfT/Fp6W7GVOLSNFM6Lrv+38AHkQS+Q==","sidebar_class_name":"put api-method","info_path":"api/v1/palette-apis-4-8","custom_edit_url":null,"hide_send_button":true},"sidebar":"apiSidebar","previous":{"title":"Returns the specified User workspaces and Roles information","permalink":"/api/v1/v-1-users-workspace-get-roles"},"next":{"title":"Validates the workspace name","permalink":"/api/v1/v-1-workspaces-validate-name"}}'),o=t(474848),a=t(884429),r=t(871174),i=t.n(r),c=t(789850),l=t.n(c),d=t(692176),p=t.n(d),u=t(733210),h=t.n(u);t(337779),t(256314);var m=t(299528),x=t(845056);let f={id:"v-1-users-workspace-roles-put",title:"Updates the workspace roles for user",description:"User is updated with workspace roles",sidebar_label:"Updates the workspace roles for user",hide_title:!0,hide_table_of_contents:!0,api:"eJzFVT2P4zYQ/SvEVAmgXWWDKwIVATYfxeYQwNiscYXhgpbGFs8SySOH9jmC/nswpCTL9vqQVGlskZwhH9+8N+ygQl86ZUkZDQUsPTqhvAi2koSVOCqqxdG4vbeyROFMgx4yMBad5JSXCgo4PHGa/zSGvXLUIhBkYKWTLRI6D8WquzrsWVhnPmNJYvnyG5/q8EtQDiuxNW5ce/ClsVgJh94EV6IXUlfC1yY0ldigMK2iiLRGLUi6HZLSO0Gopb5NhgwUH12jrNBBBlq2CAUs0mFLVUEGvqyxlVB0QCfLq56c0jvo+6xL6VZSfU4OHl3KHC8ABbmA39ppnYLR0y+mOnFEaTShJv6U1jaqjATnnz1z1c22so7pJ4WeR1Nx4kgRtv42KNVtvn6FJxsnpHPyxOOgqncZGGfMhgm7zbyN4KlLYuKEt0b7hOrHHz7w36U63mqc6iaO8qxJH8oSvd+GpknneSyDU3SKEnu26iPy55qr9RyoNk79LdOmqzUTT3LHcpxTt86gRaoNy9kOyqUaCsgPT/k5LudS+7wbKt7noyE8usMo8uAaVhiR9UWeS6sevcWSnCkbE6rH0rTAKEbUf3FhEw8j9hujLF7EHk9Czm/DincoxrVSarbDDjVbkz3kTCsWskEiFKXR3jQogq7QiYUzW9Wg+Fn8eYobfMTTXWsMoM51TuM+uyb3GvUfn94EmT3qK9xmQ1JprETw7FRmmAPiD2pi4aOQVt0FdHHsDa4+A/bM69ldv3+VrW3w2i2ryRerUd/rQfeT3tc9g9iaaAVFTewVA6fPixcvHsSHx58gA65+uvbhibmxxlMrIysD7GW
1UrxdU43VHjf2ONQXZJYezrvBvW/PABuFXym0jlY5mZkl2g6ZXDDGbU5HFFsb/xayXxQ3XGdTGE2d13UZ6XLqm73n6S0AXfZbBQTolN0wO93jl+buCYisbj9+40XevQ1f4XtwDPtZWswAPsgk8ggz2bJOp8cYyDTL5bxD+nyfo3aumK108RNOFuZWl9V8T9Ic33uIccfNi9POOtli+QQab4aFpTcUpTh65yvKYGDWRnfRa8FwHjdS7IHccm7Zka7FJZ++CtGofm8Pwwey/W7Opi6Rr7GMHuRPbdcnLfT/Fp6W7GVOLSNFM6Lrv+38AHkQS+Q==",sidebar_class_name:"put api-method",info_path:"api/v1/palette-apis-4-8",custom_edit_url:null,hide_send_button:!0},b,g={},j=[];function k(e){let s={p:"p",...(0,a.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(m.default,{as:"h1",className:"openapi__heading",children:"Updates the workspace roles for user"}),"\n",(0,o.jsx)(i(),{method:"put",path:"/v1/workspaces/users/{userUid}/roles",context:"endpoint"}),"\n",(0,o.jsx)(s.p,{children:"User is updated with workspace roles"}),"\n",(0,o.jsx)(m.default,{id:"request",as:"h2",className:"openapi-tabs__heading",children:(0,o.jsx)(x.default,{id:"theme.openapi.request.title",children:"Request"})}),"\n",(0,o.jsx)(l(),{...t(318135)}),"\n",(0,o.jsx)(p(),{...t(976381)}),"\n",(0,o.jsx)(h(),{...t(556563)})]})}function y(e={}){let{wrapper:s}={...(0,a.R)(),...e.components};return s?(0,o.jsx)(s,{...e,children:(0,o.jsx)(k,{...e})}):k(e)}},374901:function(e,s,t){t.d(s,{A:()=>u});var n=t(513907);t(296540);var o=t(39836),a=t(845056),r=t(491085),i=t(81178),c=t(256292),l=t(474848);let d={icon:(0,l.jsx)(function(){return(0,l.jsx)(i.gc,{icon:c.s6x})},{}),title:(0,l.jsx)(a.default,{id:"theme.admonition.review",description:"The default label used for the Tech Preview admonition (:::preview)",children:"tech preview"}),defaultText:"This is a Tech Preview feature and is subject to change. Do not use this feature in production workloads."},p={icon:(0,l.jsx)(function(){return(0,l.jsx)(i.gc,{icon:c.eST})},{}),title:(0,l.jsx)(a.default,{id:"theme.admonition.review",description:"The default label used for the Further Guidance admonition (:::further)",children:"further guidance"}),defaultText:""},u={...n.A,preview:function(e){let s=e.children||d.defaultText;return(0,l.jsx)(r.A,{...d,className:(0,o.A)("alert admonition-tech-preview",e.className),children:s})},further:function(e){let s=e.children||p.defaultText;return(0,l.jsx)(r.A,{...p,className:(0,o.A)("alert admonition-further-guidance",e.className),children:s})}}},961168:function(e,s,t){t.d(s,{A:()=>a}),t(296540);var n=t(97376),o=t(474848);function a(e){return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(n.A,{...e})})}},769048:function(e,s,t){t.r(s),t.d(s,{default:()=>A});var n=t(296540),o=t(955031),a=t(39836),r=t(886626),i=t(816575),c=t(599099),l=t(474848);function d({as:e,...s}){let t=(0,r.A)(),n=(0,c.M$)(t);return(0,l.jsx)(e,{...s,style:n,className:(0,a.A)(s.className,"codeBlockContainer_APcc",i.G.common.codeBlock)})}let p={codeBlockContent:"codeBlockContent_m3Ux",codeBlockTitle:"codeBlockTitle_P25_",codeBlock:"codeBlock_qGQc",codeBlockStandalone:"codeBlockStandalone_zC50",codeBlockLines:"codeBlockLines_p187",codeBlockLinesWithNumbering:"codeBlockLinesWithNumbering_OFgW",buttonGroup:"buttonGroup_6DOT"};function u({children:e,className:s}){return(0,l.jsx)(d,{as:"pre",tabIndex:0,className:(0,a.A)(p.codeBlockStandalone,"thin-scrollbar",s),children:(0,l.jsx)("code",{className:p.codeBlockLines,children:e})})}var h=t(388478),m=t(838588),x=t(58317);function f({line:e,classNames:s,showLineNumbers:t,getLineProps:n,getTokenProps:o}){1===e.length&&"\n"===e[0].content&&(e[0].content="");let r=n({line:e,className:(0,a.A)(s,t&&"codeLine_iPqp")}),i=e.map((e,s)=>(0,l.jsx)("span",{...o({token:e,key:s})},s));return(0,l.jsxs)("span",{...r,children:[t?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"codeLineNumber_F4P7"}),(0,l.jsx)("span",{className:"codeLineContent_pOih",children:i})]}):i,(0,l.jsx)("br",{})]})}var b=t(23028),g=t(845056),j=t(529945),k=t(73451);let y={copyButtonCopied:"copyButtonCopied__QnY",copyButtonIcons:"copyButtonIcons_FhaS",copyButtonIcon:"copyButtonIcon_phi_",copyButtonSuccessIcon:"copyButtonSuccessIcon_FfTR"};function v({code:e,className:s}){let[t,o]=(0,n.useState)(!1),r=(0,n.useRef)(void 0),i=(0,n.useCallback)(()=>{(0,b.default)(e),o(!0),r.current=window.setTimeout(()=>{o(!1)},1e3)},[e]);return(0,n.useEffect)(()=>()=>window.clearTimeout(r.current),[]),(0,l.jsx)("button",{type:"button","aria-label":t?(0,g.translate)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,g.translate)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,g.translate)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,a.A)("clean-btn",s,y.copyButton,t&&y.copyButtonCopied),onClick:i,children:(0,l.jsxs)("span",{className:y.copyButtonIcons,"aria-hidden":"true",children:[(0,l.jsx)(j.A,{className:y.copyButtonIcon}),(0,l.jsx)(k.A,{className:y.copyButtonSuccessIcon})]})})}var w=t(113824);function N({className:e,onClick:s,isEnabled:t}){let n=(0,g.translate)({id:"theme.CodeBlock.wordWrapToggle",message:"Toggle word wrap",description:"The title attribute for toggle word wrapping button of code block lines"});return(0,l.jsx)("button",{type:"button",onClick:s,className:(0,a.A)("clean-btn",e,t&&"wordWrapButtonEnabled_gY8A"),"aria-label":n,title:n,children:(0,l.jsx)(w.A,{className:"wordWrapButtonIcon_iowe","aria-hidden":"true"})})}function T({children:e,className:s="",metastring:t,title:n,showLineNumbers:o,language:i,hideClipboard:u=!1}){var b;let{prism:{defaultLanguage:g,magicComments:j}}=(0,h.p)(),k=(b=i??(0,c.DX)(s)??g,b?.toLowerCase()),y=(0,r.A)(),w=(0,m.f)(),T=(0,c.wt)(t)||n,{lineClassNames:A,code:_}=(0,c.Li)(e,{metastring:t,language:k,magicComments:j}),B=o??(0,c._u)(t);return u=t&&t.includes("hideClipboard"),(0,l.jsxs)(d,{as:"div",className:(0,a.A)(s,k&&!s.includes(`language-${k}`)&&`language-${k}`),children:[T&&(0,l.jsx)("div",{className:p.codeBlockTitle,children:T}),(0,l.jsxs)("div",{className:p.codeBlockContent,children:[(0,l.jsx)(x.Highlight,{theme:y,code:_,language:k??"text",children:({className:e,style:s,tokens:t,getLineProps:n,getTokenProps:o})=>(0,l.jsx)("pre",{tabIndex:0,ref:w.codeBlockRef,className:(0,a.A)(e,p.codeBlock,"thin-scrollbar"),style:s,children:(0,l.jsx)("code",{className:(0,a.A)(p.codeBlockLines,B&&p.codeBlockLinesWithNumbering),children:t.map((e,s)=>(0,l.jsx)(f,{line:e,getLineProps:n,getTokenProps:o,classNames:A[s],showLineNumbers:B},s))})})}),(0,l.jsxs)("div",{className:p.buttonGroup,children:[(w.isEnabled||w.isCodeScrollable)&&(0,l.jsx)(N,{className:p.codeButton,onClick:()=>w.toggle(),isEnabled:w.isEnabled}),!u&&(0,l.jsx)(v,{className:p.codeButton,code:_})]})]})]})}function A({children:e,...s}){let t=(0,o.default)(),a=n.Children.toArray(e).some(e=>(0,n.isValidElement)(e))?e:Array.isArray(e)?e.join(""):e;
1return(0,l.jsx)("string"==typeof a?T:u,{...s,children:a},String(t))}},178766:function(e,s,t){t.r(s),t.d(s,{default:()=>d}),t(296540);var n=t(769048),o=t(39836),a=t(829515),r=t(494528),i=t(952242),c=t(169764),l=t(474848);let d=function({children:e,collapsible:s,name:t,qualifierMessage:d,required:p,schemaName:u,schema:h}){let m,x,f,b;h&&(m=h.deprecated,x=h.description,f=h.default,b=h.nullable);let g=(0,r.guard)(Array.isArray(p)?p.includes(t):p,()=>(0,l.jsx)("span",{className:"openapi-schema__required",children:"required"})),j=(0,r.guard)(m,()=>(0,l.jsx)("span",{className:"openapi-schema__deprecated",children:"deprecated"})),k=(0,r.guard)(b,()=>(0,l.jsx)("span",{className:"openapi-schema__nullable",children:"nullable"})),y=(0,r.guard)(x,e=>(0,l.jsx)("div",{children:(0,l.jsx)(i.oz,{children:(0,a.createDescription)(e),components:{pre:"div",code({node:e,inline:s,className:t,children:o,...a}){let r=/language-(\w+)/.exec(t||"");return s?(0,l.jsx)("code",{children:o}):s||null==r?(0,l.jsx)(n.default,{children:o}):(0,l.jsx)(n.default,{className:t,children:o})}},rehypePlugins:[c.A]})})),v=(0,r.guard)(d,e=>(0,l.jsx)("div",{children:(0,l.jsx)(i.oz,{children:(0,a.createDescription)(e),rehypePlugins:[c.A]})})),w=(0,r.guard)("boolean"==typeof f?f.toString():f,e=>(0,l.jsx)("div",{className:"",children:(0,l.jsx)(i.oz,{children:`**Default value:** \`${e}\``})})),N=(0,l.jsxs)("div",{children:[(0,l.jsxs)("span",{className:"openapi-schema__container",children:[(0,l.jsx)("strong",{className:(0,o.A)("openapi-schema__property",{"openapi-schema__strikethrough":m}),children:t}),(0,l.jsx)("span",{className:"openapi-schema__name",children:"object"==typeof u?JSON.stringify(u):u}),(b||p||m)&&(0,l.jsx)("span",{className:"openapi-schema__divider"}),k,!m&&g,j]}),v,w,y,e??e]});return(0,l.jsx)("div",{className:"openapi-schema__list-item",children:s?e:N})}},318135:function(e){e.exports=JSON.parse('{"parameters":[{"description":"A project UID is required for project-scoped resources and should be omitted when targeting tenant-scoped resources","in":"header","name":"ProjectUid","schema":{"type":"string"}},{"in":"path","name":"userUid","required":true,"schema":{"type":"string"}}]}')},976381:function(e){e.exports=JSON.parse('{"title":"Body","body":{"content":{"application/json":{"schema":{"properties":{"workspaces":{"items":{"properties":{"roles":{"items":{"type":"string"},"type":"array"},"uid":{"type":"string"}},"type":"object"},"type":"array"}},"type":"object"}}},"required":true}}')},556563:function(e){e.exports=JSON.parse('{"responses":{"204":{"description":"The resource was updated successfully"}}}')}}]);
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.