I am trying to edit gitlab-ci.yml file using gitlab update file api. I just want to edit single line in it. Is there a way to edit the content rather than providing the new content i.e whole new data through the update file api of gitlab.
No you cannot. The API allows you only to do this: Repository files API | GitLab create a file, update a file or delete a file. No edit functionality. You update the file by replacing it in it’s entirety.
thanks for the info @iwalker