Update a repository
Update an existing repository. The authenticated user must have update permissions.
Path Parameters
- repo string required
The name of the repository. The name is not case sensitive.
- application/json
Request Body
- name string
Name of the repository.
- description string
Description of the repository.
- archived boolean
Archived status of the repository.
Responses
- 200
- 409
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
- success boolean required
data object required
name string requiredRepository name
description string requiredRepository description
created_at date-time requiredCreation date
updated_at date-time requiredLast update date
archived boolean requiredRepository archived state (no longer receiving updates)
{
"success": true,
"data": {
"name": "repo-name",
"description": "An example repository.",
"created_at": "2023-02-26T21:24:33.044Z",
"updated_at": "2023-02-26T21:24:33.044Z",
"archived": false
}
}
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
- success boolean required
- error string required
{
"success": false,
"error": "repository already exists"
}
Loading...