1"use strict";(self.webpackChunkspectro_cloud_docs=self.webpackChunkspectro_cloud_docs||[]).push([["15907"],{536120:function(e,t,n){n.r(t),n.d(t,{frontMatter:()=>x,toc:()=>j,default:()=>B,metadata:()=>s,assets:()=>b,contentTitle:()=>N});var s=JSON.parse('{"id":"v1/v-1-roles-clone","title":"Clone the role","description":"Clone the role","source":"@site/docs/api-content/api-docs/v1/v-1-roles-clone.api.mdx","sourceDirName":"v1","slug":"/v1/v-1-roles-clone","permalink":"/api/v1/v-1-roles-clone","draft":false,"unlisted":false,"editUrl":null,"tags":[],"version":"current","frontMatter":{"id":"v-1-roles-clone","title":"Clone the role","description":"Clone the role","sidebar_label":"Clone the role","hide_title":true,"hide_table_of_contents":true,"api":"eJyNVcFuEzEQ/RVrTiC5DUUc0B6QQsWhIERUijhEOUzsSdZk1za2N21Y7b+jsTdpmtCKHBJnPfP85s0bbw/OU8BknL3RUMH26tY1FK8bZwkkBPrdUUwfnd5B1YNyNpFNvETvG6Ny4uRXdJafRVVTi7zSFFUwnnehAoYUiiFF9KTMakyMIMEHJpAMRc5rKaHG9DLGIeg022JL/Jt2nqCCmIKxaxjGD1cTvbOxBL99c3V+ynUgTKRF7JSiGFdd0+xAQk2oKeS0aadN+mH0eW7eEZ3RYuWCSDWJUT2QR8qccZP/r+rTartC4hSwNM0E0lDNc9BC7oPc8hepBKMckVQXTNpBNe9h6s0X4uVikFxlql0wf7DUNl8MDILryJiBHcKoJ9rl5uS6XcPm8RiwpZSFm/dgOMhjqkGOncrsjvmm0NFLYi0kO6R27FTvsrIZsILJ9mqSeU36zuhhokYDRwrbPYEuNFBBnZKP1WSC3lyyG1NwqnGdvlSuBT5hL8t3plGk3otz1vLZjdjQTuCxXOK+pkBiv6fQiiWJNVmeM9JiFVwrZthQSiSUs5Gd3VlNQcyCW5mGxAfxdZcBvtCOhyRLV0z4KN5I6tBcLP8Hedq9U9aff96J5DZkT3i7ZUJjSYsuGrsWLCkH5C+yiX1JAr15ltCTY894DRLY0rePV8qnB2x9Q6eDP8IdOdrYlct+MInDYa/edHYTxYV4d/keJHCfS4HbK1aBDdKiPUI8c+gTXQ52S/SQJr5BYxkmu6YffTZnbDlOgISqGLiYbSGhZk9Wc+j7JUb6EZph4Me/Owp5tCRsMRhcchHzHrSJvNZQrbCJdMbncDHAq9txRl6LR2Gf8tyrbdkSW2w6/gcSNmzcPGnDYthfZfn4snNdDrm44/zHzLObiK+FkjFVinx6MfZ4UGffvt+BhOX4Dmmd5pyA9ywk3heWzpcXQtWXZz00aNcdrjm2YLIR2IpHnUJvNnkExgVX9U8dDrNSKtjkOXkmtu+LY4fhEF+2ns04DEKJ5n4shmH4Cx2ehX0=","sidebar_class_name":"post api-method","info_path":"api/v1/palette-apis-4-8","custom_edit_url":null,"hide_send_button":true},"sidebar":"apiSidebar","previous":{"title":"Updates the specified role","permalink":"/api/v1/v-1-roles-uid-update"},"next":{"title":"Services","permalink":"/api/v1/services"}}'),o=n(474848),i=n(884429),c=n(871174),a=n.n(c),r=n(789850),l=n.n(r),d=n(692176),u=n.n(d),p=n(733210),h=n.n(p);n(337779),n(256314);var m=n(299528),f=n(845056);let x={id:"v-1-roles-clone",title:"Clone the role",description:"Clone the role",sidebar_label:"Clone the role",hide_title:!0,hide_table_of_contents:!0,api:"eJyNVcFuEzEQ/RVrTiC5DUUc0B6QQsWhIERUijhEOUzsSdZk1za2N21Y7b+jsTdpmtCKHBJnPfP85s0bbw/OU8BknL3RUMH26tY1FK8bZwkkBPrdUUwfnd5B1YNyNpFNvETvG6Ny4uRXdJafRVVTi7zSFFUwnnehAoYUiiFF9KTMakyMIMEHJpAMRc5rKaHG9DLGIeg022JL/Jt2nqCCmIKxaxjGD1cTvbOxBL99c3V+ynUgTKRF7JSiGFdd0+xAQk2oKeS0aadN+mH0eW7eEZ3RYuWCSDWJUT2QR8qccZP/r+rTartC4hSwNM0E0lDNc9BC7oPc8hepBKMckVQXTNpBNe9h6s0X4uVikFxlql0wf7DUNl8MDILryJiBHcKoJ9rl5uS6XcPm8RiwpZSFm/dgOMhjqkGOncrsjvmm0NFLYi0kO6R27FTvsrIZsILJ9mqSeU36zuhhokYDRwrbPYEuNFBBnZKP1WSC3lyyG1NwqnGdvlSuBT5hL8t3plGk3otz1vLZjdjQTuCxXOK+pkBiv6fQiiWJNVmeM9JiFVwrZthQSiSUs5Gd3VlNQcyCW5mGxAfxdZcBvtCOhyRLV0z4KN5I6tBcLP8Hedq9U9aff96J5DZkT3i7ZUJjSYsuGrsWLCkH5C+yiX1JAr15ltCTY894DRLY0rePV8qnB2x9Q6eDP8IdOdrYlct+MInDYa/edHYTxYV4d/keJHCfS4HbK1aBDdKiPUI8c+gTXQ52S/SQJr5BYxkmu6YffTZnbDlOgISqGLiYbSGhZk9Wc+j7JUb6EZph4Me/Owp5tCRsMRhcchHzHrSJvNZQrbCJdMbncDHAq9txRl6LR2Gf8tyrbdkSW2w6/gcSNmzcPGnDYthfZfn4snNdDrm44/zHzLObiK+FkjFVinx6MfZ4UGffvt+BhOX4Dmmd5pyA9ywk3heWzpcXQtWXZz00aNcdrjm2YLIR2IpHnUJvNnkExgVX9U8dDrNSKtjkOXkmtu+LY4fhEF+2ns04DEKJ5n4shmH4Cx2ehX0=",sidebar_class_name:"post api-method",info_path:"api/v1/palette-apis-4-8",custom_edit_url:null,hide_send_button:!0},N,b={},j=[];function k(e){let t={p:"p",...(0,i.R)(),...e.components};return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(m.default,{as:"h1",className:"openapi__heading",children:"Clone the role"}),"\n",(0,o.jsx)(a(),{method:"post",path:"/v1/roles/{uid}/clone",context:"endpoint"}),"\n",(0,o.jsx)(t.p,{children:"Clone the role"}),"\n",(0,o.jsx)(m.default,{id:"request",as:"h2",className:"openapi-tabs__heading",children:(0,o.jsx)(f.default,{id:"theme.openapi.request.title",children:"Request"})}),"\n",(0,o.jsx)(l(),{...n(799894)}),"\n",(0,o.jsx)(u(),{...n(420788)}),"\n",(0,o.jsx)(h(),{...n(158990)})]})}function B(e={}){let{wrapper:t}={...(0,i.R)(),...e.components};return t?(0,o.jsx)(t,{...e,children:(0,o.jsx)(k,{...e})}):k(e)}},374901:function(e,t,n){n.d(t,{A:()=>p});var s=n(513907);n(296540);var o=n(39836),i=n(845056),c=n(491085),a=n(81178),r=n(256292),l=n(474848);let d={icon:(0,l.jsx)(function(){return(0,l.jsx)(a.gc,{icon:r.s6x})},{}),title:(0,l.jsx)(i.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."},u={icon:(0,l.jsx)(function(){return(0,l.jsx)(a.gc,{icon:r.eST})},{}),title:(0,l.jsx)(i.default,{id:"theme.admonition.review",description:"The default label used for the Further Guidance admonition (:::further)",children:"further guidance"}),defaultText:""},p={...s.A,preview:function(e){let t=e.children||d.defaultText;return(0,l.jsx)(c.A,{...d,className:(0,o.A)("alert admonition-tech-preview",e.className),children:t})},further:function(e){let t=e.children||u.defaultText;return(0,l.jsx)(c.A,{...u,className:(0,o.A)("alert admonition-further-guidance",e.className),children:t})}}},961168:function(e,t,n){n.d(t,{A:()=>i}),n(296540);var s=n(97376),o=n(474848);function i(e){return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(s.A,{...e})})}},769048:function(e,t,n){n.r(t),n.d(t,{default:()=>_});var s=n(296540),o=n(955031),i=n(39836),c=n(886626),a=n(816575),r=n(599099),l=n(474848);function d({as:e,...t}){let n=(0,c.A)(),s=(0,r.M$)(n);return(0,l.jsx)(e,{...t,style:s,className:(0,i.A)(t.className,"codeBlockContainer_APcc",a.G.common.codeBlock)})}let u={codeBlockContent:"codeBlockContent_m3Ux",codeBlockTitle:"codeBlockTitle_P25_",codeBlock:"codeBlock_qGQc",codeBlockStandalone:"codeBlockStandalone_zC50",codeBlockLines:"codeBlockLines_p187",codeBlockLinesWithNumbering:"codeBlockLinesWithNumbering_OFgW",buttonGroup:"buttonGroup_6DOT"};function p({children:e,className:t}){return(0,l.jsx)(d,{as:"pre",tabIndex:0,className:(0,i.A)(u.codeBlockStandalone,"thin-scrollbar",t),children:(0,l.jsx)("code",{className:u.codeBlockLines,children:e})})}var h=n(388478),m=n(838588),f=n(58317);function x({line:e,classNames:t,showLineNumbers:n,getLineProps:s,getTokenProps:o}){1===e.length&&"\n"===e[0].content&&(e[0].content="");let c=s({line:e,className:(0,i.A)(t,n&&"codeLine_iPqp")}),a=e.map((e,t)=>(0,l.jsx)("span",{...o({token:e,key:t})},t));return(0,l.jsxs)("span",{...c,children:[n?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("span",{className:"codeLineNumber_F4P7"}),(0,l.jsx)("span",{className:"codeLineContent_pOih",children:a})]}):a,(0,l.jsx)("br",{})]})}var N=n(23028),b=n(845056),j=n(529945),k=n(73451);let B={copyButtonCopied:"copyButtonCopied__QnY",copyButtonIcons:"copyButtonIcons_FhaS",copyButtonIcon:"copyButtonIcon_phi_",copyButtonSuccessIcon:"copyButtonSuccessIcon_FfTR"};function g({code:e,className:t}
1){let[n,o]=(0,s.useState)(!1),c=(0,s.useRef)(void 0),a=(0,s.useCallback)(()=>{(0,N.default)(e),o(!0),c.current=window.setTimeout(()=>{o(!1)},1e3)},[e]);return(0,s.useEffect)(()=>()=>window.clearTimeout(c.current),[]),(0,l.jsx)("button",{type:"button","aria-label":n?(0,b.translate)({id:"theme.CodeBlock.copied",message:"Copied",description:"The copied button label on code blocks"}):(0,b.translate)({id:"theme.CodeBlock.copyButtonAriaLabel",message:"Copy code to clipboard",description:"The ARIA label for copy code blocks button"}),title:(0,b.translate)({id:"theme.CodeBlock.copy",message:"Copy",description:"The copy button label on code blocks"}),className:(0,i.A)("clean-btn",t,B.copyButton,n&&B.copyButtonCopied),onClick:a,children:(0,l.jsxs)("span",{className:B.copyButtonIcons,"aria-hidden":"true",children:[(0,l.jsx)(j.A,{className:B.copyButtonIcon}),(0,l.jsx)(k.A,{className:B.copyButtonSuccessIcon})]})})}var v=n(113824);function C({className:e,onClick:t,isEnabled:n}){let s=(0,b.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:t,className:(0,i.A)("clean-btn",e,n&&"wordWrapButtonEnabled_gY8A"),"aria-label":s,title:s,children:(0,l.jsx)(v.A,{className:"wordWrapButtonIcon_iowe","aria-hidden":"true"})})}function y({children:e,className:t="",metastring:n,title:s,showLineNumbers:o,language:a,hideClipboard:p=!1}){var N;let{prism:{defaultLanguage:b,magicComments:j}}=(0,h.p)(),k=(N=a??(0,r.DX)(t)??b,N?.toLowerCase()),B=(0,c.A)(),v=(0,m.f)(),y=(0,r.wt)(n)||s,{lineClassNames:_,code:S}=(0,r.Li)(e,{metastring:n,language:k,magicComments:j}),T=o??(0,r._u)(n);return p=n&&n.includes("hideClipboard"),(0,l.jsxs)(d,{as:"div",className:(0,i.A)(t,k&&!t.includes(`language-${k}`)&&`language-${k}`),children:[y&&(0,l.jsx)("div",{className:u.codeBlockTitle,children:y}),(0,l.jsxs)("div",{className:u.codeBlockContent,children:[(0,l.jsx)(f.Highlight,{theme:B,code:S,language:k??"text",children:({className:e,style:t,tokens:n,getLineProps:s,getTokenProps:o})=>(0,l.jsx)("pre",{tabIndex:0,ref:v.codeBlockRef,className:(0,i.A)(e,u.codeBlock,"thin-scrollbar"),style:t,children:(0,l.jsx)("code",{className:(0,i.A)(u.codeBlockLines,T&&u.codeBlockLinesWithNumbering),children:n.map((e,t)=>(0,l.jsx)(x,{line:e,getLineProps:s,getTokenProps:o,classNames:_[t],showLineNumbers:T},t))})})}),(0,l.jsxs)("div",{className:u.buttonGroup,children:[(v.isEnabled||v.isCodeScrollable)&&(0,l.jsx)(C,{className:u.codeButton,onClick:()=>v.toggle(),isEnabled:v.isEnabled}),!p&&(0,l.jsx)(g,{className:u.codeButton,code:S})]})]})]})}function _({children:e,...t}){let n=(0,o.default)(),i=s.Children.toArray(e).some(e=>(0,s.isValidElement)(e))?e:Array.isArray(e)?e.join(""):e;return(0,l.jsx)("string"==typeof i?y:p,{...t,children:i},String(n))}},178766:function(e,t,n){n.r(t),n.d(t,{default:()=>d}),n(296540);var s=n(769048),o=n(39836),i=n(829515),c=n(494528),a=n(952242),r=n(169764),l=n(474848);let d=function({children:e,collapsible:t,name:n,qualifierMessage:d,required:u,schemaName:p,schema:h}){let m,f,x,N;h&&(m=h.deprecated,f=h.description,x=h.default,N=h.nullable);let b=(0,c.guard)(Array.isArray(u)?u.includes(n):u,()=>(0,l.jsx)("span",{className:"openapi-schema__required",children:"required"})),j=(0,c.guard)(m,()=>(0,l.jsx)("span",{className:"openapi-schema__deprecated",children:"deprecated"})),k=(0,c.guard)(N,()=>(0,l.jsx)("span",{className:"openapi-schema__nullable",children:"nullable"})),B=(0,c.guard)(f,e=>(0,l.jsx)("div",{children:(0,l.jsx)(a.oz,{children:(0,i.createDescription)(e),components:{pre:"div",code({node:e,inline:t,className:n,children:o,...i}){let c=/language-(\w+)/.exec(n||"");return t?(0,l.jsx)("code",{children:o}):t||null==c?(0,l.jsx)(s.default,{children:o}):(0,l.jsx)(s.default,{className:n,children:o})}},rehypePlugins:[r.A]})})),g=(0,c.guard)(d,e=>(0,l.jsx)("div",{children:(0,l.jsx)(a.oz,{children:(0,i.createDescription)(e),rehypePlugins:[r.A]})})),v=(0,c.guard)("boolean"==typeof x?x.toString():x,e=>(0,l.jsx)("div",{className:"",children:(0,l.jsx)(a.oz,{children:`**Default value:** \`${e}\``})})),C=(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:n}),(0,l.jsx)("span",{className:"openapi-schema__name",children:"object"==typeof p?JSON.stringify(p):p}),(N||u||m)&&(0,l.jsx)("span",{className:"openapi-schema__divider"}),k,!m&&b,j]}),g,v,B,e??e]});return(0,l.jsx)("div",{className:"openapi-schema__list-item",children:t?e:C})}},799894:function(e){e.exports=JSON.parse('{"parameters":[{"in":"path","name":"uid","required":true,"schema":{"type":"string"}}]}')},420788:function(e){e.exports=JSON.parse('{"title":"Body","body":{"content":{"application/json":{"schema":{"description":"Role clone specifications","properties":{"metadata":{"description":"Role clone metadata","properties":{"name":{"type":"string"}}}}}}}}}')},158990:function(e){e.exports=JSON.parse('{"responses":{"201":{"description":"Created successfully","headers":{"AuditUid":{"description":"Audit uid for the request","schema":{"type":"string"}}},"content":{"application/json":{"schema":{"properties":{"uid":{"type":"string"}},"required":["uid"],"type":"object"}}}}}}')}}]);
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.