Sign in

Create repository file

documented

Create a new file in the repository.

POST /projects/:id/repository/files/:file_pathProjectsno implementation yet0 runs

Input

project_id*
GitLab project ID or URL-encoded path
12345
file_path*
URL-encoded full path to the file
path%2Fto%2Ffile.txt
branch*
Target branch name
main
commit_message*
Commit message
Add file
content*
File content
File contents
encoding
Encoding (text or base64)
text
author_email
Author email (optional)
author@example.com
author_name
Author name (optional)
Your Name
start_branch
Start branch for new branch (optional)
main
Calls GitLab as you (your API key is your account); keychains.dev holds the credentials.
Create repository file · GitLab · OpenIntegrations