1"use strict";(globalThis.webpackChunkdocs_temp=globalThis.webpackChunkdocs_temp||[]).push([[1731],{58077(e,t,r){r.r(t),r.d(t,{assets:()=>f,contentTitle:()=>g,default:()=>x,frontMatter:()=>b,metadata:()=>n,toc:()=>N});const n=JSON.parse('{"id":"reference/repository-controller-update","title":"Update a project repository by ID","description":"Updates repository settings (branch, integration, metadata), re-validating the integration token if changed. Required permission: `project:repository:update`","source":"@site/api-docs/reference/repository-controller-update.api.mdx","sourceDirName":"reference","slug":"/reference/repository-controller-update","permalink":"/api-docs/reference/repository-controller-update","draft":false,"unlisted":false,"editUrl":null,"tags":[],"version":"current","frontMatter":{"id":"repository-controller-update","title":"Update a project repository by ID","description":"Updates repository settings (branch, integration, metadata), re-validating the integration token if changed. Required permission: `project:repository:update`","sidebar_label":"Update a project repository by ID","hide_title":true,"hide_table_of_contents":true,"api":"eJzNWNty2zYQ/RUMnmwPaTU3p2U7nVGc1HHSiT22MnlwPNGKXIqwSYABQNuKRjP5iH5DPyxf0lmAEqGLEydNL3qiiN3F7tkLDjjlGZpUi9oKJXnCX9cZWDRMY62MsEpPmEFrhRwbtjXSINMiYkJaHGsglYhVaCEDC9sR0xhfQSkyIHlmCwwlmVWXKJnIWVqAHGO2y07wfSM0ZqxGXQljhJIJG9ZaXWBqk86FpHFeDXnEVY3e3GHGE96J7CtptSpL1O+8MI94DRoqtKgNT86mXEKFPOE3sUUJ0sYi4xEXFHSBkKHm0QoWAyfHDp/yiOvWVZ5Y3WDETVpgBTyZcjupyayxWsgxn82ixU5ug1VFt2ENtuCfM3LuFdHYJyqbkMSqnVRJi9LSEtR1KVKHSu/CkOvTddNqRKASKpowtAINrXpXVx2IeCXk7yjHtuDJvVkUAP1al1+Sj7hsyhJGJXpnZ25T2p6Stq6bK12B5QlvGpHxWcR9gg672jF3UdywrS/YV3eIcYOyxhw1yhRfCrlxe5RNxZMz/uSk/2r/OY/4oH/Az52mUY1OcbPXX9zWK38b0PNu3JT5ZeGI38QSjb0w7z6o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K9x7Gjx7fexw/fLR3Px49yNP4fvrT3oN8bw9y2Lvt6LuzdkjeQv+WOFpHxUIKFooHTCtglh2h2kBrHHUJuVDLF4TMPelpz8TnkF6KohmxfVc+lM21RC9kKNWm0TmkyOAKhCMbNGU9SgyySkjDQGasMagN2+qKMihZJcvJNo84HZN+h3u7Pzjir4ytQAY59XcXBqxNXfi9ZDTxnwyWnJ12d5X//TeWtvss3theXYJw/LTxfNoTjbN5yZqlsuYRT+i4j3hBtCQ549PpCAxVyGxGr983qIk1nEf8CrTwnPBsyjNh6Dlb1Met2G3N49lmt3k6Hx6S/HED1HNNN1uIRM7oWtFOk2/ePfw4tNENv93y16aFN/SVyAvse+PxgGx0EmvX2U6j78bPZ2VDhnh8dEpH46j9jlQ5DsU1XFPq4Npjo1ywjsy4d1Neghw3MCZZb5N+fwGB1wYY","sidebar_class_name":"post api-method","info_path":"api-docs/reference/hackihub-client-api","custom_edit_url":null},"sidebar":"apiDocsSidebar","previous":{"title":"List repositories for a project (paginated)","permalink":"/api-docs/reference/repository-controller-list"},"next":{"title":"Get a result by ID including evidence","permalink":"/api-docs/reference/results-controller-find-by-id"}}');var i=r(74848),o=r(28453),s=r(57742),a=r.n(s),p=r(78178),l=r.n(p),d=r(19624),c=r.n(d),u=r(96226),y=r.n(u),h=(r(77675),r(19365),r(51107)),m=r(21312);const b={id:"repository-controller-update",title:"Update a project repository by ID",description:"Updates repository settings (branch, integration, metadata), re-validating the integration token if changed. Required permission: `project:repository:update`",sidebar_label:"Update a project repository by ID",hide_title:!0,hide_table_of_contents:!0,api:"eJzNWNty2zYQ/RUMnmwPaTU3p2U7nVGc1HHSiT22MnlwPNGKXIqwSYABQNuKRjP5iH5DPy
1xf0lmAEqGLEydNL3qiiN3F7tkLDjjlGZpUi9oKJXnCX9cZWDRMY62MsEpPmEFrhRwbtjXSINMiYkJaHGsglYhVaCEDC9sR0xhfQSkyIHlmCwwlmVWXKJnIWVqAHGO2y07wfSM0ZqxGXQljhJIJG9Za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J2DixOcTcJnUFqX/fw2/zsO+4Pegf9AV8MFsrlWg0fozZKQsnaJAxcgFvH/cE2U5odlGq0tnjQH3gAT1FmDoEWls/DwbYMVDj/A2aeqRdvBtufhcpZ92B5D66gbNCwFLSeMGAVyAzcpazWmIsbui2Bfffp459DlitN9ygfozNkIjYch8vtxedaZG0ghn36+IdPgTdICS/asvADg2XCUG00whRoaKFiuVZVEJNxEB3JchKk18J4jBnb2ekG187OF5N+iZNgHEAtXuJk7ZbWXq/6tYj98nKiTwugOyXNrEucuMArSAshMbYqbh87T3eZS+6wNTdkWylIJUUK5fbPbHgTt34NCRsojWqDQPJ6FnEimyfdXe3ZDVCXdXerjnuskKxuISCW/EEOPz7K9x7Gjx7fexw/fLR3Px49yNP4fvrT3oN8bw9y2Lvt6LuzdkjeQv+WOFpHxUIKFooHTCtglh2h2kBrHHUJuVDLF4TMPelpz8TnkF6KohmxfVc+lM21RC9kKNWm0TmkyOAKhCMbNGU9SgyySkjDQGasMagN2+qKMihZJcvJNo84HZN+h3u7Pzjir4ytQAY59XcXBqxNXfi9ZDTxnwyWnJ12d5X//TeWtvss3theXYJw/LTxfNoTjbN5yZqlsuYRT+i4j3hBtCQ549PpCAxVyGxGr983qIk1nEf8CrTwnPBsyjNh6Dlb1Met2G3N49lmt3k6Hx6S/HED1HNNN1uIRM7oWtFOk2/ePfw4tNENv93y16aFN/SVyAvse+PxgGx0EmvX2U6j78bPZ2VDhnh8dEpH46j9jlQ5DsU1XFPq4Npjo1ywjsy4d1Neghw3MCZZb5N+fwGB1wYY",sidebar_class_name:"post api-method",info_path:"api-docs/reference/hackihub-client-api",custom_edit_url:null},g=void 0,f={},N=[];function j(e){const t={code:"code",p:"p",...(0,o.R)(),...e.components};return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(h.default,{as:"h1",className:"openapi__heading",children:"Update a project repository by ID"}),"\n",(0,i.jsx)(a(),{method:"post",path:"/projects/repository/{id}",context:"endpoint"}),"\n",(0,i.jsxs)(t.p,{children:["Updates repository settings (branch, integration, metadata), re-validating the integration token if changed. Required permission: ",(0,i.jsx)(t.code,{children:"project:repository:update"})]}),"\n",(0,i.jsx)(h.default,{id:"request",as:"h2",className:"openapi-tabs__heading",children:(0,i.jsx)(m.default,{id:"theme.openapi.request.title",children:"Request"})}),"\n",(0,i.jsx)(l(),{...r(17720)}),"\n",(0,i.jsx)(c(),{...r(72058)}),"\n",(0,i.jsx)(y(),{...r(40368)})]})}function x(e={}){const{wrapper:t}={...(0,o.R)(),...e.components};return t?(0,i.jsx)(t,{...e,children:(0,i.jsx)(j,{...e})}):j(e)}},17720(e){e.exports=JSON.parse('{"parameters":[{"name":"x-tenant-id","in":"header","description":"Tenant ID","required":true,"schema":{"type":"string"}},{"name":"id","required":true,"in":"path","schema":{"type":"string"}}]}')},72058(e){e.exports=JSON.parse('{"title":"Body","body":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"repositoryUrl":{"type":"string","minLength":1,"nullable":true},"projectId":{"type":"string","format":"uuid"},"tenantIntegrationsId":{"type":"string","format":"uuid","nullable":true},"branchName":{"type":"string","minLength":1,"nullable":true},"referenceKind":{"type":"string","enum":["BRANCH","TAG"]},"resourceId":{"type":"string","minLength":1,"nullable":true},"resourceUrl":{"type":"string","minLength":1,"nullable":true},"metadata":{"type":"object","nullable":true,"x-nestjs_zod-self-required":false},"isTemplateRepo":{"type":"boolean","default":false},"isActive":{"type":"boolean"}},"title":"UpdateRepositoryDto"}}}}}')},40368(e){e.exports=JSON.parse('{"responses":{"default":{"description":"","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"projectId":{"type":"string","format":"uuid"},"tenantIntegrationsId":{"type":"string","format":"uuid","nullable":true},"tenantId":{"type":"string","format":"uuid","nullable":true},"name":{"type":"string","minLength":1},"repositoryUrl":{"type":"string","nullable":true},"branchName":{"type":"string","nullable":true},"referenceKind":{"type":"string","enum":["BRANCH","TAG"]}
1,"resourceId":{"type":"string","nullable":true},"resourceUrl":{"type":"string","nullable":true},"metadata":{"type":"object","nullable":true,"x-nestjs_zod-self-required":true},"score":{"type":"integer"},"isActive":{"type":"boolean"},"isTemplateRepo":{"type":"boolean","default":false},"authorId":{"type":"string"},"createdAt":{"type":"","x-nestjs_zod-empty-type":true},"updatedAt":{"nullable":true,"type":"","x-nestjs_zod-empty-type":true},"deletedAt":{"nullable":true,"type":"","x-nestjs_zod-empty-type":true}},"required":["id","projectId","tenantIntegrationsId","tenantId","name","repositoryUrl","branchName","referenceKind","resourceId","resourceUrl","metadata","score","isActive","authorId","createdAt","updatedAt","deletedAt"],"title":"ResponseRepositoryDto"}}}}}}')}}]);
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.