# Codebahn Repository API

**Canonical:** https://apis.io/apis/codebahn-net/codebahn-net-repository-api/  
**Provider:** Codebahn — https://apis.io/providers/codebahn-net/  
**Base URL:** https://codebahn.net/api/v1  
**Documentation:** https://codebahn.net/api/swagger

Codebahn Repository API is one of 10 APIs that [Codebahn](https://apis.io/providers/codebahn-net/) publishes on the [APIs.io](https://apis.io/) network, described by a machine-readable OpenAPI specification. Tagged areas include Repository. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

The repository API from Codebahn — 118 operation(s) for repository.

## Operations (60 of 188)

| Method | Path | Summary |
|---|---|---|
| POST | `/repos/migrate` | Migrate a remote git repository |
| GET | `/repos/search` | Search for repositories |
| GET | `/repos/{owner}/{repo}` | Get a repository |
| DELETE | `/repos/{owner}/{repo}` | Delete a repository |
| PATCH | `/repos/{owner}/{repo}` | Edit a repository's properties. Only fields that are set will be changed |
| GET | `/repos/{owner}/{repo}/actions/runners` | Get runners belonging to the repository |
| POST | `/repos/{owner}/{repo}/actions/runners` | Register a new repository-level runner |
| GET | `/repos/{owner}/{repo}/actions/runners/jobs` | Search for repository's action jobs according filter conditions |
| GET | `/repos/{owner}/{repo}/actions/runners/registration-token` | Get a repository's runner registration token |
| GET | `/repos/{owner}/{repo}/actions/runners/{runner_id}` | Get a particular runner that belongs to the repository |
| DELETE | `/repos/{owner}/{repo}/actions/runners/{runner_id}` | Delete a particular runner that belongs to a repository |
| GET | `/repos/{owner}/{repo}/actions/runs` | List a repository's action runs |
| GET | `/repos/{owner}/{repo}/actions/runs/{run_id}` | Get an action run |
| GET | `/repos/{owner}/{repo}/actions/secrets` | List an repo's actions secrets |
| PUT | `/repos/{owner}/{repo}/actions/secrets/{secretname}` | Create or Update a secret value in a repository |
| DELETE | `/repos/{owner}/{repo}/actions/secrets/{secretname}` | Delete a secret in a repository |
| GET | `/repos/{owner}/{repo}/actions/tasks` | List a repository's action tasks |
| GET | `/repos/{owner}/{repo}/actions/variables` | Get repo-level variables list |
| GET | `/repos/{owner}/{repo}/actions/variables/{variablename}` | Get a repo-level variable |
| PUT | `/repos/{owner}/{repo}/actions/variables/{variablename}` | Update a repo-level variable |
| POST | `/repos/{owner}/{repo}/actions/variables/{variablename}` | Create a repo-level variable |
| DELETE | `/repos/{owner}/{repo}/actions/variables/{variablename}` | Delete a repo-level variable |
| POST | `/repos/{owner}/{repo}/actions/workflows/{workflowfilename}/dispatches` | Dispatches a workflow |
| GET | `/repos/{owner}/{repo}/activities/feeds` | List a repository's activity feeds |
| GET | `/repos/{owner}/{repo}/archive/{archive}` | Get an archive of a repository |
| GET | `/repos/{owner}/{repo}/assignees` | Return all users that have write access and can be assigned to issues |
| POST | `/repos/{owner}/{repo}/avatar` | Update a repository's avatar |
| DELETE | `/repos/{owner}/{repo}/avatar` | Delete a repository's avatar |
| GET | `/repos/{owner}/{repo}/branch_protections` | List branch protections for a repository |
| POST | `/repos/{owner}/{repo}/branch_protections` | Create a branch protections for a repository |
| GET | `/repos/{owner}/{repo}/branch_protections/{name}` | Get a specific branch protection for the repository |
| DELETE | `/repos/{owner}/{repo}/branch_protections/{name}` | Delete a specific branch protection for the repository |
| PATCH | `/repos/{owner}/{repo}/branch_protections/{name}` | Edit a branch protections for a repository. |
| GET | `/repos/{owner}/{repo}/branches` | List a repository's branches |
| POST | `/repos/{owner}/{repo}/branches` | Create a branch |
| GET | `/repos/{owner}/{repo}/branches/{branch}` | Retrieve a specific branch from a repository, including its effective branch… |
| DELETE | `/repos/{owner}/{repo}/branches/{branch}` | Delete a specific branch from a repository |
| PATCH | `/repos/{owner}/{repo}/branches/{branch}` | Update a branch |
| GET | `/repos/{owner}/{repo}/collaborators` | List a repository's collaborators |
| GET | `/repos/{owner}/{repo}/collaborators/{collaborator}` | Check if a user is a collaborator of a repository |
| PUT | `/repos/{owner}/{repo}/collaborators/{collaborator}` | Add a collaborator to a repository |
| DELETE | `/repos/{owner}/{repo}/collaborators/{collaborator}` | Delete a collaborator from a repository |
| GET | `/repos/{owner}/{repo}/collaborators/{collaborator}/permission` | Get repository permissions for a user |
| GET | `/repos/{owner}/{repo}/commits` | Get a list of all commits from a repository |
| GET | `/repos/{owner}/{repo}/commits/{ref}/status` | Get a commit's combined status, by branch/tag/commit reference |
| GET | `/repos/{owner}/{repo}/commits/{ref}/statuses` | Get a commit's statuses, by branch/tag/commit reference |
| GET | `/repos/{owner}/{repo}/commits/{sha}/pull` | Get the pull request of the commit |
| GET | `/repos/{owner}/{repo}/compare/{basehead}` | Get commit comparison information |
| GET | `/repos/{owner}/{repo}/contents` | Gets the metadata of all the entries of the root dir |
| POST | `/repos/{owner}/{repo}/contents` | Modify multiple files in a repository |
| GET | `/repos/{owner}/{repo}/contents/{filepath}` | Gets the metadata and contents (if a file) of an entry in a repository, or a… |
| PUT | `/repos/{owner}/{repo}/contents/{filepath}` | Update a file in a repository |
| POST | `/repos/{owner}/{repo}/contents/{filepath}` | Create a file in a repository |
| DELETE | `/repos/{owner}/{repo}/contents/{filepath}` | Delete a file in a repository |
| POST | `/repos/{owner}/{repo}/convert` | Convert a mirror repo to a normal repo |
| POST | `/repos/{owner}/{repo}/diffpatch` | Apply diff patch to repository |
| GET | `/repos/{owner}/{repo}/editorconfig/{filepath}` | Get the EditorConfig definitions of a file in a repository |
| GET | `/repos/{owner}/{repo}/flags` | List a repository's flags |
| PUT | `/repos/{owner}/{repo}/flags` | Replace all flags of a repository |
| DELETE | `/repos/{owner}/{repo}/flags` | Remove all flags from a repository |

…and 128 more operations. They are listed in full on the page.

## Machine-readable artifacts (2)

- **OpenAPI** — https://artifacts.apis.io/codebahn-net/openapi/codebahn-net-repository-api-openapi.yml
- **Documentation** — https://codebahn.net/docs/

## Other Codebahn APIs (9)

- [Codebahn Activitypub API](https://apis.io/apis/codebahn-net/codebahn-net-activitypub-api/)
- [Codebahn Admin API](https://apis.io/apis/codebahn-net/codebahn-net-admin-api/)
- [Codebahn Issue API](https://apis.io/apis/codebahn-net/codebahn-net-issue-api/)
- [Codebahn Miscellaneous API](https://apis.io/apis/codebahn-net/codebahn-net-miscellaneous-api/)
- [Codebahn Notification API](https://apis.io/apis/codebahn-net/codebahn-net-notification-api/)
- [Codebahn Organization API](https://apis.io/apis/codebahn-net/codebahn-net-organization-api/)
- [Codebahn Package API](https://apis.io/apis/codebahn-net/codebahn-net-package-api/)
- [Codebahn Settings API](https://apis.io/apis/codebahn-net/codebahn-net-settings-api/)
- [Codebahn User API](https://apis.io/apis/codebahn-net/codebahn-net-user-api/)

## Tags

Repository

---

Profiled by [API Evangelist](https://apievangelist.com) and published on [APIs.io](https://apis.io/apis/codebahn-net/codebahn-net-repository-api/). The API's provider profile, Kin Score and agent-readiness rating are at https://apis.io/providers/codebahn-net/.
