Projects REST API
View a project
⚠️ Breaking Changes: The Bencher API is in beta and under active development. We may introduce breaking changes in future releases. We will announce any breaking changes in the release notes.
View a project. If the user is not authenticated, then only a public project is available. If the user is authenticated, then any public project and any private project where the user has `view` permissions is available. A valid project key for the project may also be used for authentication.
Headers
Content-Typestring
Set to application/json.
Authorizationstring
Set to Bearer BENCHER_API_KEY, where BENCHER_API_KEY is a valid Bencher API key (or a deprecated API token).
Path Parameters
projectThe slug or UUID for a project.
/v0/projects/{project}| Bencher Cloud | https://api.bencher.dev |
| Bencher Self-Hosted | http://localhost:6610 |
Bencher CLI
bencher project view PROJECTView OpenAPI Spec
Update a project
⚠️ Breaking Changes: The Bencher API is in beta and under active development. We may introduce breaking changes in future releases. We will announce any breaking changes in the release notes.
Update a project. The user must have `edit` permissions for the project. Setting the `bmf_version` field requires a server admin.
Headers
Content-Typestring
Set to application/json.
Authorizationstring
Set to Bearer BENCHER_API_KEY, where BENCHER_API_KEY is a valid Bencher API key (or a deprecated API token).
Path Parameters
projectThe slug or UUID for a project.
Body Parameters
bmf_versioninteger
Server admin only: Set the default BMF version for the project.
namestring
The new name of the project. Maximum length is 64 characters.
slugThe preferred new slug for the project. Maximum length is 64 characters.
urlstring
The new URL of the project. It must use http or https. Set to `null` to remove the current URL.
visibilitystring
➕ Bencher Plus: Set the new visibility of the project. Moving to a `private` project requires a valid Bencher Plus subscription.
One of: public, private
/v0/projects/{project}| Bencher Cloud | https://api.bencher.dev |
| Bencher Self-Hosted | http://localhost:6610 |
Bencher CLI
bencher project update PROJECTView OpenAPI Spec
Delete a project
⚠️ Breaking Changes: The Bencher API is in beta and under active development. We may introduce breaking changes in future releases. We will announce any breaking changes in the release notes.
Delete a project. The user must have `manage` permissions for the project. By default, projects are soft-deleted. Set the `hard` query parameter to `true` to permanently delete the project (requires server admin).
Headers
Content-Typestring
Set to application/json.
Authorizationstring
Set to Bearer BENCHER_API_KEY, where BENCHER_API_KEY is a valid Bencher API key (or a deprecated API token).
Path Parameters
projectThe slug or UUID for a project.
Query Parameters
hardboolean
Hard delete the project (requires server admin).
/v0/projects/{project}| Bencher Cloud | https://api.bencher.dev |
| Bencher Self-Hosted | http://localhost:6610 |
Bencher CLI
bencher project delete PROJECTView OpenAPI Spec