v4

OpenAPI 3.0.1Apache 2.02026-07-312457525.9 MB
Project API

Updates an existing file in the repository

put/workspaces/{workspace_domain}/projects/{project_name}/repository/contents/{path}

Path parameters

workspace_domainstring required
Example:my-company

The human-readable ID of the workspace

project_namestring required
Example:my-project

The human-readable ID of the project

pathstring required
Example:src/main.js

The path to the file in the repository

Request body

branchstring

The name of the branch to commit to

messagestring required

The commit message

contentstring required

The base64-encoded content of the file

Response

urlstring

API endpoint to GET this object

html_urlstring

Web URL to view this object in Buddy.works