Sign in

Create or update repository contents

documented

Create or update a file’s contents in a repository.

PUT /repos/{owner}/{repo}/contents/{path}Repositoriesno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl 'https://api.github.com/repos/{{$owner}}/{{$repo}}/contents/{{$path}}' \
  -X PUT \
  -H 'Accept: application/vnd.github+json' \
  -H 'Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}' \
  -H 'Content-Type: application/json' \
  -H 'User-Agent: keychains' \
  -d '{"message":"{{$commit_message}}","content":"{{$base64_content}}","branch":"{{$branch}}","sha":"{{$sha}}","committer":{"name":"{{$committer_name}}","email":"{{$committer_email}}"}}'
Create or update repository contents · GitHub · OpenIntegrations