{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Gogs: A painless self-hosted Git service","colors":{"primary":"#e45858","light":"#e45858","dark":"#e53170"},"logo":{"light":"https://mintcdn.com/unknwon/1qPeEBLv6hZbp8n_/images/logo-light.svg?fit=max\u0026auto=format\u0026n=1qPeEBLv6hZbp8n_\u0026q=85\u0026s=7e1d72349a34c955edaba48edea98bab","dark":"https://mintcdn.com/unknwon/1qPeEBLv6hZbp8n_/images/logo-dark.svg?fit=max\u0026auto=format\u0026n=1qPeEBLv6hZbp8n_\u0026q=85\u0026s=cab901260270ca61bec2376bd61007f5"},"favicon":"https://mintcdn.com/unknwon/1qPeEBLv6hZbp8n_/images/favicon.svg?fit=max\u0026auto=format\u0026n=1qPeEBLv6hZbp8n_\u0026q=85\u0026s=0901179dc3f328005672b7e91d0c6364","api":{"playground":{"display":"simple"},"examples":{"languages":["curl"]}},"navbar":{"links":[{"href":"https://try.gogs.io","label":"Demo"}],"primary":{"type":"github","href":"https://github.com/gogs/gogs"}},"footer":{"socials":{"x":"https://x.com/GogsHQ","github":"https://github.com/gogs/gogs"}},"fonts":{"family":"Geist"},"integrations":{"plausible":{"domain":"gogs.io"}},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"unknwon","hasAudioNarration":false,"actualSubdomain":"unknwon","customDomains":["gogs.io"],"gitSource":{"type":"github","owner":"gogs","repo":"gogs","deployBranch":"main","contentDirectory":"docs","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":false},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af613cf2605b19aec5e8f39","clientVersion":"0.0.4117","searchFilterCounts":[{"language":"default","tag":"API reference","count":105},{"language":"default","tag":"Issues","count":25},{"language":"default","tag":"Repositories","count":23},{"language":"default","tag":"Users","count":21},{"language":"default","tag":"Docs","count":14},{"language":"default","tag":"Administration","count":12},{"language":"default","tag":"Collaborators and deploy keys","count":8},{"language":"default","tag":"Advancing","count":6},{"language":"default","tag":"Organizations","count":6},{"language":"default","tag":"Miscellaneous","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":true},"customCss":[{"filePath":"styles/style.css","content":"/* cyrillic-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrodmgPn.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrMdmgPn.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFg08vz7ehw.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrgdmgPn.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrkdmgPn.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 400;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrcdmg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* cyrillic-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrodmgPn.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrMdmgPn.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFg08vz7ehw.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrgdmgPn.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrkdmgPn.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 500;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrcdmg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\n/* cyrillic-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrodmgPn.woff2) format('woff2');\n unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;\n}\n/* cyrillic */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrMdmgPn.woff2) format('woff2');\n unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;\n}\n/* symbols2 */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFg08vz7ehw.woff2) format('woff2');\n unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;\n}\n/* vietnamese */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrgdmgPn.woff2) format('woff2');\n unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;\n}\n/* latin-ext */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrkdmgPn.woff2) format('woff2');\n unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;\n}\n/* latin */\n@font-face {\n font-family: 'Geist Mono';\n font-style: normal;\n font-weight: 600;\n font-display: swap;\n src: url(/_mintlify/assets/fonts/google/s/geistmono/v6/or3nQ6H-1_WfwkMZI_qYFrcdmg.woff2) format('woff2');\n unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;\n}\ncode,kbd,samp,pre,.font-mono{font-family:'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace!important}.method-nav-pill{width:2.5rem!important}#gogs-carbon-ad{margin-top:1rem;border-top:1px solid hsl(0 0% 90%)}.dark #gogs-carbon-ad{border-top-color:hsl(0 0% 22%)}#carbonads{margin-top:1.5rem;display:block;padding:0.75rem;border-radius:6px;background:hsl(0 0% 98%);font-size:0.8125rem;line-height:1.4}.dark #carbonads{color:darkgray;background:hsl(0 0% 12%)}#carbonads .carbon-img{display:flex;justify-content:center;margin-bottom:0.5rem}#carbonads .carbon-img img{max-width:100%;border-radius:4px}#gogs-wwads{margin-top:-1.5rem;margin-bottom:1.5rem;padding-bottom:1.5rem;border-bottom:1px solid hsl(0 0% 90%)}.dark .wwads-cn{background:hsl(0 0% 12%);border-bottom-color:hsl(0 0% 22%)}.dark .wwads-cn .wwads-text{color:darkgray}"}],"page":{"pagePath":"api-reference/administration/create-a-repository-for-a-user","slug":"/api-reference/administration/create-a-repository-for-a-user","pageMetadata":{"title":"Create a repository for a user","openapi":"POST /admin/users/{username}/repos","description":"Requires the authenticated user to be a site administrator.","href":"/api-reference/administration/create-a-repository-for-a-user"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Requires the authenticated user to be a site administrator.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create a repository for a user","openapi":"POST /admin/users/{username}/repos","description":"Requires the authenticated user to be a site administrator.","href":"/api-reference/administration/create-a-repository-for-a-user"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/unknwon/bbca1bba34dc910e/scripts/ads.js","/_mintlify/custom/unknwon/d4d955dc3329a4e1/scripts/title.js"],"openApiReferenceData":{"operation":{"operationId":"adminCreateRepo","summary":"Create a repository for a user","tags":["Administration"],"responses":{"201":"952e611c-70d6-4009-a394-c88e65dce66e","404":"37734f82-54dd-465d-88c2-90104fcb6495","422":"5415c6a3-731c-438a-9894-68338cf1038e"},"parameters":["78dbe4d8-ffee-4257-a442-ccf66d9840dd"],"requestBody":"568d1193-c5f8-4310-8724-d5f2b44ff33a","description":"Requires the authenticated user to be a site administrator.","method":"post","type":"path","servers":["ec36ef88-18a8-4cf6-9a49-9984670d7d8d"],"security":["3b2e1e19-1bed-45f3-af58-8c2df2db7288"],"path":"/admin/users/{username}/repos","baseUrlOptions":["https://gogs.example.com/api/v1"],"title":"Create a repository for a user","codeSamples":[],"requestExampleLanguages":["bash"],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{"78dbe4d8-ffee-4257-a442-ccf66d9840dd":{"name":"username","in":"path","required":true,"schema":{"type":"string","isRequired":true,"description":"Username","uniqueKey":"","typeLabel":"string"},"description":"Username"}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","isRequired":true,"uniqueKey":"name","typeLabel":"string"},"description":{"type":"string","uniqueKey":"description","typeLabel":"string"},"private":{"type":"boolean","default":false,"uniqueKey":"private","typeLabel":"boolean"},"auto_init":{"type":"boolean","default":false,"uniqueKey":"auto_init","typeLabel":"boolean"},"gitignores":{"type":"string","uniqueKey":"gitignores","typeLabel":"string"},"license":{"type":"string","uniqueKey":"license","typeLabel":"string"},"readme":{"type":"string","default":"Default","uniqueKey":"readme","typeLabel":"string"}},"required":["name"],"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"name":"\u003cstring>","description":"\u003cstring>","private":false,"auto_init":false,"gitignores":"\u003cstring>","license":"\u003cstring>","readme":"Default"}}},"exampleType":"generated"}},"exampleType":"generated"},"responses":{"952e611c-70d6-4009-a394-c88e65dce66e":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","uniqueKey":"id","typeLabel":"integer"},"owner":{"type":"object","properties":{"id":{"type":"integer","uniqueKey":"owner.id","typeLabel":"integer"},"username":{"type":"string","uniqueKey":"owner.username","typeLabel":"string"},"login":{"type":"string","description":"Alias of username for GitHub API compatibility","uniqueKey":"owner.login","typeLabel":"string"},"full_name":{"type":"string","uniqueKey":"owner.full_name","typeLabel":"string"},"email":{"type":"string","format":"email","uniqueKey":"owner.email","typeLabel":"string\u003cemail>"},"avatar_url":{"type":"string","uniqueKey":"owner.avatar_url","typeLabel":"string"}},"uniqueKey":"owner","typeLabel":"object"},"name":{"type":"string","uniqueKey":"name","typeLabel":"string"},"full_name":{"type":"string","uniqueKey":"full_name","typeLabel":"string"},"description":{"type":"string","uniqueKey":"description","typeLabel":"string"},"private":{"type":"boolean","uniqueKey":"private","typeLabel":"boolean"},"fork":{"type":"boolean","uniqueKey":"fork","typeLabel":"boolean"},"parent":{"$circularRef":"24cd7be0-23db-486b-ae3e-0d2ce903a7a9","nullable":true,"description":"Present when fork is true","uniqueKey":"parent","typeLabel":"any"},"empty":{"type":"boolean","uniqueKey":"empty","typeLabel":"boolean"},"mirror":{"type":"boolean","uniqueKey":"mirror","typeLabel":"boolean"},"size":{"type":"integer","uniqueKey":"size","typeLabel":"integer"},"html_url":{"type":"string","uniqueKey":"html_url","typeLabel":"string"},"ssh_url":{"type":"string","uniqueKey":"ssh_url","typeLabel":"string"},"clone_url":{"type":"string","uniqueKey":"clone_url","typeLabel":"string"},"website":{"type":"string","uniqueKey":"website","typeLabel":"string"},"stars_count":{"type":"integer","uniqueKey":"stars_count","typeLabel":"integer"},"forks_count":{"type":"integer","uniqueKey":"forks_count","typeLabel":"integer"},"watchers_count":{"type":"integer","uniqueKey":"watchers_count","typeLabel":"integer"},"open_issues_count":{"type":"integer","uniqueKey":"open_issues_count","typeLabel":"integer"},"default_branch":{"type":"string","uniqueKey":"default_branch","typeLabel":"string"},"created_at":{"type":"string","format":"date-time","uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"updated_at":{"type":"string","format":"date-time","uniqueKey":"updated_at","typeLabel":"string\u003cdate-time>"},"permissions":{"type":"object","properties":{"admin":{"type":"boolean","uniqueKey":"permissions.admin","typeLabel":"boolean"},"push":{"type":"boolean","uniqueKey":"permissions.push","typeLabel":"boolean"},"pull":{"type":"boolean","uniqueKey":"permissions.pull","typeLabel":"boolean"}},"uniqueKey":"permissions","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"id":123,"owner":{"id":123,"username":"\u003cstring>","login":"\u003cstring>","full_name":"\u003cstring>","email":"jsmith@example.com","avatar_url":"\u003cstring>"},"name":"\u003cstring>","full_name":"\u003cstring>","description":"\u003cstring>","private":true,"fork":true,"parent":"\u003cunknown>","empty":true,"mirror":true,"size":123,"html_url":"\u003cstring>","ssh_url":"\u003cstring>","clone_url":"\u003cstring>","website":"\u003cstring>","stars_count":123,"forks_count":123,"watchers_count":123,"open_issues_count":123,"default_branch":"\u003cstring>","created_at":"2023-11-07T05:31:56Z","updated_at":"2023-11-07T05:31:56Z","permissions":{"admin":true,"push":true,"pull":true}}}},"exampleType":"generated"}},"exampleType":"generated"},"37734f82-54dd-465d-88c2-90104fcb6495":{"description":"Resource not found.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"5415c6a3-731c-438a-9894-68338cf1038e":{"description":"Validation error.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"3b2e1e19-1bed-45f3-af58-8c2df2db7288":{"AccessToken":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token. Use format: token {YOUR_ACCESS_TOKEN}","scopes":[]}}},"servers":{"ec36ef88-18a8-4cf6-9a49-9984670d7d8d":{"url":"https://gogs.example.com/api/v1"}},"schemas":{"24cd7be0-23db-486b-ae3e-0d2ce903a7a9":{"type":"object","properties":{"id":{"type":"integer"},"owner":{"type":"object","properties":{"id":{"type":"integer"},"username":{"type":"string"},"login":{"type":"string","description":"Alias of username for GitHub API compatibility"},"full_name":{"type":"string"},"email":{"type":"string","format":"email"},"avatar_url":{"type":"string"}}},"name":{"type":"string"},"full_name":{"type":"string"},"description":{"type":"string"},"private":{"type":"boolean"},"fork":{"type":"boolean"},"parent":{"$circularRef":"24cd7be0-23db-486b-ae3e-0d2ce903a7a9","nullable":true,"description":"Present when fork is true"},"empty":{"type":"boolean"},"mirror":{"type":"boolean"},"size":{"type":"integer"},"html_url":{"type":"string"},"ssh_url":{"type":"string"},"clone_url":{"type":"string"},"website":{"type":"string"},"stars_count":{"type":"integer"},"forks_count":{"type":"integer"},"watchers_count":{"type":"integer"},"open_issues_count":{"type":"integer"},"default_branch":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"permissions":{"type":"object","properties":{"admin":{"type":"boolean"},"push":{"type":"boolean"},"pull":{"type":"boolean"}}}}}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"apiKey","in":"header","name":"Authorization","description":"Personal access token. Use format: token {YOUR_ACCESS_TOKEN}","scopes":[]},"schema":{"title":"Authorization","type":"string","description":"Personal access token. Use format: token {YOUR_ACCESS_TOKEN}","isRequired":true,"typeLabel":"string","deprecated":false},"schemeName":"AccessToken","name":"Authorization"}],"title":"AccessToken"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"unknwon","siteName":"Gogs: A painless self-hosted Git service","title":"Create a repository for a user - Gogs: A painless self-hosted Git service","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-02-06T15:47:50.362Z","originalFileLocation":"api-reference/administration/create-a-repository-for-a-user.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Requires the authenticated user to be a site administrator.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Gogs: A painless self-hosted Git service\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/unknwon/QW55vOu9whFz9uXZ/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/unknwon/QW55vOu9whFz9uXZ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/unknwon/QW55vOu9whFz9uXZ/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/unknwon/QW55vOu9whFz9uXZ/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/unknwon/QW55vOu9whFz9uXZ/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/unknwon/QW55vOu9whFz9uXZ/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/unknwon/QW55vOu9whFz9uXZ/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/unknwon/QW55vOu9whFz9uXZ/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/unknwon/QW55vOu9whFz9uXZ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create a repository for a user - Gogs: A painless self-hosted Git service\">\u003cmeta data-mint-head property=\"og:description\" content=\"Requires the authenticated user to be a site administrator.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Gogs: A painless self-hosted Git service\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://gogs.io/api-reference/administration/create-a-repository-for-a-user\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://unknwon.mintlify.site/_mintlify/api/og/v2?division=Administration\u0026amp;title=Create+a+repository+for+a+user\u0026amp;description=Requires+the+authenticated+user+to+be+a+site+administrator.\u0026amp;theme=bcf856f35add35ffdb3fb4c0\u0026amp;signature=2759e589c54c8084595ecb9dca21713a5f981e2bde6f12d3e92ff662411c48c6\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create a repository for a user - Gogs: A painless self-hosted Git service\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Requires the authenticated user to be a site administrator.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://unknwon.mintlify.site/_mintlify/api/og/v2?division=Administration\u0026amp;title=Create+a+repository+for+a+user\u0026amp;description=Requires+the+authenticated+user+to+be+a+site+administrator.\u0026amp;theme=bcf856f35add35ffdb3fb4c0\u0026amp;signature=2759e589c54c8084595ecb9dca21713a5f981e2bde6f12d3e92ff662411c48c6\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/unknwon/QW55vOu9whFz9uXZ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Gogs: A painless self-hosted Git service\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#e45858\">\u003clink data-mint-head rel=\"canonical\" href=\"https://gogs.io/api-reference/administration/create-a-repository-for-a-user\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/administration/create-a-repository-for-a-user.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://gogs.io/#organization\",\"name\":\"Gogs: A painless self-hosted Git service\",\"url\":\"https://gogs.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/unknwon/1qPeEBLv6hZbp8n_/images/logo-light.svg?fit=max\u0026auto=format\u0026n=1qPeEBLv6hZbp8n_\u0026q=85\u0026s=7e1d72349a34c955edaba48edea98bab\"}},{\"@type\":\"WebSite\",\"@id\":\"https://gogs.io#website\",\"name\":\"Gogs: A painless self-hosted Git service\",\"url\":\"https://gogs.io\",\"publisher\":{\"@id\":\"https://gogs.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://gogs.io/api-reference/administration/create-a-repository-for-a-user#webpage\",\"url\":\"https://gogs.io/api-reference/administration/create-a-repository-for-a-user\",\"name\":\"Create a repository for a user\",\"description\":\"Requires the authenticated user to be a site administrator.\",\"dateModified\":\"2026-02-06T15:47:50.362Z\",\"isPartOf\":{\"@id\":\"https://gogs.io#website\"},\"breadcrumb\":{\"@id\":\"https://gogs.io/api-reference/administration/create-a-repository-for-a-user#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://gogs.io/api-reference/administration/create-a-repository-for-a-user#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Administration\",\"item\":\"https://gogs.io/api-reference/administration/create-a-new-user\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a repository for a user\",\"item\":\"https://gogs.io/api-reference/administration/create-a-repository-for-a-user\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://gogs.io/api-reference/administration/create-a-repository-for-a-user#apireference\",\"headline\":\"Create a repository for a user\",\"name\":\"Create a repository for a user\",\"description\":\"Requires the authenticated user to be a site administrator.\",\"url\":\"https://gogs.io/api-reference/administration/create-a-repository-for-a-user\",\"mainEntityOfPage\":{\"@id\":\"https://gogs.io/api-reference/administration/create-a-repository-for-a-user#webpage\"},\"dateModified\":\"2026-02-06T15:47:50.362Z\",\"publisher\":{\"@id\":\"https://gogs.io/#organization\"},\"isPartOf\":{\"@id\":\"https://gogs.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Gogs: A painless self-hosted Git service\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Gogs: A painless self-hosted Git service\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/administration/create-a-repository-for-a-user.md","siteName":"Gogs: A painless self-hosted Git service","nav":{"global":null,"tabs":[{"tab":"Docs","pages":[{"title":"Docs","href":"/getting-started/introduction"}]},{"tab":"API reference","groups":[{"group":"Overview","pages":[{"title":"Introduction","sidebarTitle":"Introduction","href":"/api-reference/introduction"}]},{"group":"Repositories","pages":[{"title":"Search repositories","openapi":"GET /repos/search","href":"/api-reference/repositories/search-repositories"},{"title":"List your repositories","openapi":"GET /user/repos","href":"/api-reference/repositories/list-your-repositories"},{"title":"Create a repository","openapi":"POST /user/repos","href":"/api-reference/repositories/create-a-repository"},{"title":"List user repositories","openapi":"GET /users/{username}/repos","href":"/api-reference/repositories/list-user-repositories"},{"title":"List organization repositories","openapi":"GET /orgs/{orgname}/repos","href":"/api-reference/repositories/list-organization-repositories"},{"title":"Create a repository in an organization","openapi":"POST /org/{org}/repos","href":"/api-reference/repositories/create-a-repository-in-an-organization"},{"title":"Migrate a repository","openapi":"POST /repos/migrate","href":"/api-reference/repositories/migrate-a-repository"},{"title":"Get a repository","openapi":"GET /repos/{owner}/{repo}","href":"/api-reference/repositories/get-a-repository"},{"title":"Delete a repository","openapi":"DELETE /repos/{owner}/{repo}","href":"/api-reference/repositories/delete-a-repository"},{"title":"Edit issue tracker settings","openapi":"PATCH /repos/{owner}/{repo}/issue-tracker","href":"/api-reference/repositories/edit-issue-tracker-settings"},{"title":"Mirror sync","openapi":"POST /repos/{owner}/{repo}/mirror-sync","href":"/api-reference/repositories/mirror-sync"},{"title":"List branches","openapi":"GET /repos/{owner}/{repo}/branches","href":"/api-reference/repositories/list-branches"},{"title":"Get a branch","openapi":"GET /repos/{owner}/{repo}/branches/{branch}","href":"/api-reference/repositories/get-a-branch"},{"title":"Get a single commit","openapi":"GET /repos/{owner}/{repo}/commits/{sha}","href":"/api-reference/repositories/get-a-single-commit"},{"title":"Download raw content","openapi":"GET /repos/{owner}/{repo}/raw/{ref}/{filepath}","href":"/api-reference/repositories/download-raw-content"},{"title":"Download archive","openapi":"GET /repos/{owner}/{repo}/archive/{archive}","href":"/api-reference/repositories/download-archive"},{"title":"Get contents","openapi":"GET /repos/{owner}/{repo}/contents/{path}","href":"/api-reference/repositories/get-contents"},{"title":"Create or update a file","openapi":"PUT /repos/{owner}/{repo}/contents/{path}","href":"/api-reference/repositories/create-or-update-a-file"},{"title":"List forks","openapi":"GET /repos/{owner}/{repo}/forks","href":"/api-reference/repositories/list-forks"},{"title":"List tags","openapi":"GET /repos/{owner}/{repo}/tags","href":"/api-reference/repositories/list-tags"},{"title":"List all commits","openapi":"GET /repos/{owner}/{repo}/commits","href":"/api-reference/repositories/list-all-commits"},{"title":"Edit wiki settings","openapi":"PATCH /repos/{owner}/{repo}/wiki","href":"/api-reference/repositories/edit-wiki-settings"},{"title":"Get editorconfig definition","openapi":"GET /repos/{owner}/{repo}/editorconfig/{filename}","href":"/api-reference/repositories/get-editorconfig-definition"}]},{"group":"Collaborators and deploy keys","pages":[{"title":"List collaborators","openapi":"GET /repos/{owner}/{repo}/collaborators","href":"/api-reference/collaborators-and-deploy-keys/list-collaborators"},{"title":"Check if a user is a collaborator","openapi":"GET /repos/{owner}/{repo}/collaborators/{collaborator}","href":"/api-reference/collaborators-and-deploy-keys/check-if-user-is-collaborator"},{"title":"Add a collaborator","openapi":"PUT /repos/{owner}/{repo}/collaborators/{collaborator}","href":"/api-reference/collaborators-and-deploy-keys/add-a-collaborator"},{"title":"Remove a collaborator","openapi":"DELETE /repos/{owner}/{repo}/collaborators/{collaborator}","href":"/api-reference/collaborators-and-deploy-keys/remove-a-collaborator"},{"title":"List deploy keys","openapi":"GET /repos/{owner}/{repo}/keys","href":"/api-reference/collaborators-and-deploy-keys/list-deploy-keys"},{"title":"Add a deploy key","openapi":"POST /repos/{owner}/{repo}/keys","href":"/api-reference/collaborators-and-deploy-keys/add-a-deploy-key"},{"title":"Get a deploy key","openapi":"GET /repos/{owner}/{repo}/keys/{id}","href":"/api-reference/collaborators-and-deploy-keys/get-a-deploy-key"},{"title":"Remove a deploy key","openapi":"DELETE /repos/{owner}/{repo}/keys/{id}","href":"/api-reference/collaborators-and-deploy-keys/remove-a-deploy-key"}]},{"group":"Releases","pages":[{"title":"List releases","openapi":"GET /repos/{owner}/{repo}/releases","href":"/api-reference/releases/list-releases"}]},{"group":"Webhooks","pages":[{"title":"List hooks","openapi":"GET /repos/{owner}/{repo}/hooks","href":"/api-reference/webhooks/list-hooks"},{"title":"Create a hook","openapi":"POST /repos/{owner}/{repo}/hooks","href":"/api-reference/webhooks/create-a-hook"},{"title":"Edit a hook","openapi":"PATCH /repos/{owner}/{repo}/hooks/{id}","href":"/api-reference/webhooks/edit-a-hook"},{"title":"Delete a hook","openapi":"DELETE /repos/{owner}/{repo}/hooks/{id}","href":"/api-reference/webhooks/delete-a-hook"}]},{"group":"Issues","pages":[{"title":"List user issues","openapi":"GET /user/issues","href":"/api-reference/issues/list-user-issues"},{"title":"List issues for a repository","openapi":"GET /repos/{owner}/{repo}/issues","href":"/api-reference/issues/list-issues-for-a-repository"},{"title":"Create an issue","openapi":"POST /repos/{owner}/{repo}/issues","href":"/api-reference/issues/create-an-issue"},{"title":"Get a single issue","openapi":"GET /repos/{owner}/{repo}/issues/{index}","href":"/api-reference/issues/get-a-single-issue"},{"title":"Edit an issue","openapi":"PATCH /repos/{owner}/{repo}/issues/{index}","href":"/api-reference/issues/edit-an-issue"},{"title":"List comments on an issue","openapi":"GET /repos/{owner}/{repo}/issues/{index}/comments","href":"/api-reference/issues/list-comments-on-an-issue"},{"title":"Create a comment","openapi":"POST /repos/{owner}/{repo}/issues/{index}/comments","href":"/api-reference/issues/create-a-comment"},{"title":"List comments in a repository","openapi":"GET /repos/{owner}/{repo}/issues/comments","href":"/api-reference/issues/list-comments-in-a-repository"},{"title":"Edit a comment","openapi":"PATCH /repos/{owner}/{repo}/issues/{index}/comments/{id}","href":"/api-reference/issues/edit-a-comment"},{"title":"Delete a comment","openapi":"DELETE /repos/{owner}/{repo}/issues/{index}/comments/{id}","href":"/api-reference/issues/delete-a-comment"},{"title":"List all labels for a repository","openapi":"GET /repos/{owner}/{repo}/labels","href":"/api-reference/issues/list-all-labels-for-a-repository"},{"title":"Create a label","openapi":"POST /repos/{owner}/{repo}/labels","href":"/api-reference/issues/create-a-label"},{"title":"Get a single label","openapi":"GET /repos/{owner}/{repo}/labels/{id}","href":"/api-reference/issues/get-a-single-label"},{"title":"Update a label","openapi":"PATCH /repos/{owner}/{repo}/labels/{id}","href":"/api-reference/issues/update-a-label"},{"title":"Delete a label","openapi":"DELETE /repos/{owner}/{repo}/labels/{id}","href":"/api-reference/issues/delete-a-label"},{"title":"List labels on an issue","openapi":"GET /repos/{owner}/{repo}/issues/{index}/labels","href":"/api-reference/issues/list-labels-on-an-issue"},{"title":"Add labels to an issue","openapi":"POST /repos/{owner}/{repo}/issues/{index}/labels","href":"/api-reference/issues/add-labels-to-an-issue"},{"title":"Replace all labels for an issue","openapi":"PUT /repos/{owner}/{repo}/issues/{index}/labels","href":"/api-reference/issues/replace-all-labels-for-an-issue"},{"title":"Remove all labels from an issue","openapi":"DELETE /repos/{owner}/{repo}/issues/{index}/labels","href":"/api-reference/issues/remove-all-labels-from-an-issue"},{"title":"Remove a label from an issue","openapi":"DELETE /repos/{owner}/{repo}/issues/{index}/labels/{id}","href":"/api-reference/issues/remove-a-label-from-an-issue"},{"title":"List milestones for a repository","openapi":"GET /repos/{owner}/{repo}/milestones","href":"/api-reference/issues/list-milestones-for-a-repository"},{"title":"Create a milestone","openapi":"POST /repos/{owner}/{repo}/milestones","href":"/api-reference/issues/create-a-milestone"},{"title":"Get a single milestone","openapi":"GET /repos/{owner}/{repo}/milestones/{id}","href":"/api-reference/issues/get-a-single-milestone"},{"title":"Edit a milestone","openapi":"PATCH /repos/{owner}/{repo}/milestones/{id}","href":"/api-reference/issues/edit-a-milestone"},{"title":"Delete a milestone","openapi":"DELETE /repos/{owner}/{repo}/milestones/{id}","href":"/api-reference/issues/delete-a-milestone"}]},{"group":"Users","pages":[{"title":"Search for users","openapi":"GET /users/search","href":"/api-reference/users/search-for-users"},{"title":"Get a single user","openapi":"GET /users/{username}","href":"/api-reference/users/get-a-single-user"},{"title":"Get the authenticated user","openapi":"GET /user","href":"/api-reference/users/get-the-authenticated-user"},{"title":"List access tokens","openapi":"GET /users/{username}/tokens","href":"/api-reference/users/list-access-tokens"},{"title":"Create an access token","openapi":"POST /users/{username}/tokens","href":"/api-reference/users/create-an-access-token"},{"title":"List email addresses","openapi":"GET /user/emails","href":"/api-reference/users/list-email-addresses"},{"title":"Add email addresses","openapi":"POST /user/emails","href":"/api-reference/users/add-email-addresses"},{"title":"Delete email addresses","openapi":"DELETE /user/emails","href":"/api-reference/users/delete-email-addresses"},{"title":"List followers of a user","openapi":"GET /users/{username}/followers","href":"/api-reference/users/list-followers-of-a-user"},{"title":"List your followers","openapi":"GET /user/followers","href":"/api-reference/users/list-your-followers"},{"title":"List users followed by a user","openapi":"GET /users/{username}/following","href":"/api-reference/users/list-users-followed-by-a-user"},{"title":"List who you are following","openapi":"GET /user/following","href":"/api-reference/users/list-who-you-are-following"},{"title":"Check if you follow a user","openapi":"GET /user/following/{target}","href":"/api-reference/users/check-if-you-follow-a-user"},{"title":"Follow a user","openapi":"PUT /user/following/{target}","href":"/api-reference/users/follow-a-user"},{"title":"Unfollow a user","openapi":"DELETE /user/following/{target}","href":"/api-reference/users/unfollow-a-user"},{"title":"Check if a user follows another","openapi":"GET /users/{username}/following/{target}","href":"/api-reference/users/check-if-a-user-follows-another"},{"title":"List public keys for a user","openapi":"GET /users/{username}/keys","href":"/api-reference/users/list-public-keys-for-a-user"},{"title":"Get a single public key","openapi":"GET /user/keys/{id}","href":"/api-reference/users/get-a-single-public-key"},{"title":"Delete a public key","openapi":"DELETE /user/keys/{id}","href":"/api-reference/users/delete-a-public-key"},{"title":"List your public keys","openapi":"GET /user/keys","href":"/api-reference/users/list-your-public-keys"},{"title":"Create a public key","openapi":"POST /user/keys","href":"/api-reference/users/create-a-public-key"}]},{"group":"Organizations","pages":[{"title":"Create an organization","openapi":"POST /user/orgs","href":"/api-reference/organizations/create-an-organization-for-user"},{"title":"List your organizations","openapi":"GET /user/orgs","href":"/api-reference/organizations/list-your-organizations"},{"title":"List user organizations","openapi":"GET /users/{username}/orgs","href":"/api-reference/organizations/list-user-organizations"},{"title":"Get an organization","openapi":"GET /orgs/{orgname}","href":"/api-reference/organizations/get-an-organization"},{"title":"Edit an organization","openapi":"PATCH /orgs/{orgname}","href":"/api-reference/organizations/edit-an-organization"},{"title":"List teams of an organization","openapi":"GET /orgs/{orgname}/teams","href":"/api-reference/organizations/list-teams-of-an-organization"}]},{"group":"Administration","pages":[{"title":"Create a new user","openapi":"POST /admin/users","href":"/api-reference/administration/create-a-new-user"},{"title":"Edit an existing user","openapi":"PATCH /admin/users/{username}","href":"/api-reference/administration/edit-an-existing-user"},{"title":"Delete a user","openapi":"DELETE /admin/users/{username}","href":"/api-reference/administration/delete-a-user"},{"title":"Create a public key for a user","openapi":"POST /admin/users/{username}/keys","description":"Requires the authenticated user to be a site administrator.","href":"/api-reference/administration/create-a-public-key-for-a-user"},{"title":"Create a repository for a user","openapi":"POST /admin/users/{username}/repos","href":"/api-reference/administration/create-a-repository-for-a-user"},{"title":"Create an organization","openapi":"POST /admin/users/{username}/orgs","description":"Requires the authenticated user to be a site administrator.","href":"/api-reference/administration/create-an-organization"},{"title":"Create a team","openapi":"POST /admin/orgs/{orgname}/teams","href":"/api-reference/administration/create-a-team"},{"title":"List all members of a team","openapi":"GET /admin/teams/{teamid}/members","href":"/api-reference/administration/list-all-members-of-a-team"},{"title":"Add team membership","openapi":"PUT /admin/teams/{teamid}/members/{username}","href":"/api-reference/administration/add-team-membership"},{"title":"Remove team membership","openapi":"DELETE /admin/teams/{teamid}/members/{username}","href":"/api-reference/administration/remove-team-membership"},{"title":"Add or update team repository","openapi":"PUT /admin/teams/{teamid}/repos/{reponame}","href":"/api-reference/administration/add-or-update-team-repository"},{"title":"Remove team repository","openapi":"DELETE /admin/teams/{teamid}/repos/{reponame}","href":"/api-reference/administration/remove-team-repository"}]},{"group":"Miscellaneous","pages":[{"title":"Render a Markdown document","openapi":"POST /markdown","href":"/api-reference/miscellaneous/render-a-markdown-document"},{"title":"Render a Markdown document in raw mode","openapi":"POST /markdown/raw","href":"/api-reference/miscellaneous/render-a-markdown-document-in-raw-mode"},{"title":"Get a tree","openapi":"GET /repos/{owner}/{repo}/git/trees/{sha}","href":"/api-reference/miscellaneous/get-a-tree"},{"title":"Get a git blob","openapi":"GET /repos/{owner}/{repo}/git/blobs/{sha}","href":"/api-reference/miscellaneous/get-a-git-blob"}]}]}]},"basePath":"","title":"Create a repository for a user - Gogs: A painless self-hosted Git service","buildId":"dpl_41S5Z2jG9QnfDRwN1KZrLdBwj7DM","deploymentId":"dpl_41S5Z2jG9QnfDRwN1KZrLdBwj7DM","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-DDP9JXtj.js","utils-8yQyvEtx.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-CBCFR8Sn.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-rQaXkUHa.js","snippetPresets-J5KpBTgV.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BVxVH4Cj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BxdQ2vIi.js","shallow-BjV2tFiD.js","getApiPlaygroundDisplay-C_55tL4O.js","CodeSnippet-C0JpiCOC.js","CodeSnippets-w9Ps7djG.js","Page-DTNSD-0M.js","getPastedJson-BDfB-H8d.js","icon-g-kUkkO9.js","MethodPill-v4l6fq0h.js","DuplicateIcon-CvLo-CfU.js","createIcon-165clrrV.js","DynamicMarkdown-D3RQ-fEj.js","SectionHeading-vvo-3yLf.js","axios-vUo_bRtp.js","Markdown-CMT1uFWQ.js","clsx-C8f2yC9R.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CI2D8R2Y.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-k78Wrw_e.js"]}