v4

latestOpenAPI 3.0.1Apache 2.02026-07-312457525.9 MB
Project API

Creates a new file in the repository

post/workspaces/{workspace_domain}/projects/{project_name}/repository/contents

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

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

pathstring required

The path where the new file should be created

Response

urlstring

API endpoint to GET this object

html_urlstring

Web URL to view this object in Buddy.works