Create Symlinks via API

Is there a way to create symlinks via Rest API?
I only found a way to create executable files:
POST /projects/:id/repository/commits

{
  "branch": "main",
  "commit_message": "some commit message",
  "actions": [
    {
      "action": "create",
      "file_path": "foo/bar",
      "content": "some content"
    },
    {
      "action": "chmod",
      "file_path": "foo/bar",
      "execute_filemode": true
    }
  ]
}

Is there somthing similar for symlinks?

I could not find anything in the docs. Created a feature proposal: Add `symlink` action to commits endpoint in the REST API (#426728) · Issues · GitLab.org / GitLab · GitLab Suggest commenting/upvoting :slight_smile:

1 Like