Create or update a file in a repository
One step with GitHub. We can help you get access.
Get something done
Create or update a file in a repository
with GitHub · Software Construction Management
Use GitHub: its GitHub v3 REST Repos API lets you create or update a file in a repository in a single step (PUT /repos/{owner}/{repo}/contents/{path}). capabilities.work can help you get signed up and connected.
- Can I commit a new file to a repository through the API?
- What do I need to supply to overwrite an existing file, like its blob SHA?
Say it to your AI assistant
- Create {path} in {owner}/{repo} with content {content} and commit message {message}.
- Update {path} on branch {branch} of {owner}/{repo} replacing blob {sha} with {content}, message {message}.
For your developer
PUT /repos/{owner}/{repo}/contents/{path} in GitHub v3 REST Repos API. Full spec on APIs.io.