Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions content/reference/api/hub/latest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -818,6 +818,36 @@ paths:
$ref: "#/components/responses/Forbidden"
"404":
$ref: "#/components/responses/NotFound"
/v2/namespaces/{namespace}/repositories:
parameters:
- $ref: "#/components/parameters/namespace"
post:
summary: Creates a new repository
description: |
PAT scope: `repo:admin`

Legacy endpoint: `/v2/repositories/`
tags:
- repositories
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/create_repository"
responses:
"200":
description: Repository created
content:
application/json:
schema:
$ref: "#/components/schemas/repository_info"
"400":
$ref: "#/components/responses/bad_request"
"403":
$ref: "#/components/responses/forbidden"
"404":
$ref: "#/components/responses/not_found"
/v2/namespaces/{namespace}/repositories/{repository}/tags:
parameters:
- $ref: "#/components/parameters/namespace"
Expand Down