Create
- POST
- /workspaces
- /:workspace
- /projects
- /:project_name
- /repository
- /contents
Creates a new file in the repository
Request example
curl -X POST "https://api.buddy.works/workspaces/:workspace/projects/:project_name/repository/contents" \
-H "Authorization: Bearer <YOUR-TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"path": "docs/API.md",
"content": "IyBBUEkgRG9jdW1lbnRhdGlvbgoKVGhpcyBkb2N1bWVudCBkZXNjcmliZXMgdGhlIEFQSS4=",
"message": "Add API documentation",
"branch": "main"
}'