Unable to update large content in repository file through rest api

Hi,

Using the GitLab rest api documentation available, i am trying to update the contents of an existing file in repository.
Link: https://docs.gitlab.com/ee/api/repository_files.html#update-existing-file-in-repository

However, if the contents are quite large, the api is executed without any error but the changes are not getting reflected in the file in GitLab repository.

Is there any limit on the size of the content that we need to pass in the URL of the API?