Repositories
Create or update a file
Creates or updates a file in the repository. The content must be base64 encoded.
put/repos/{owner}/{repo}/contents/{path}
Request
- Base URLhttps://gogs.example.com/api/v1
- AuthAPI key in header Authorization
Path parameters
ownerstring required
Owner of the repository
repostring required
Name of the repository
pathstring required
Path of the file to create or update
Request body
Response
File created or updated successfully.
Changes
No recorded changes to this operation across all 3 revisions of this API.