Hi @Riya Kondody ,
If you are running Bitbucket Server, then please make sure are able to edit files from Bitbucket's UI, if not, you could check if property "feature.file.editor" can be set to "true", as described in https://confluence.atlassian.com/bitbucketserver058/bitbucket-server-config-properties-947168200.html as this will allow you to add code to a repository using cURL command PUT on http://example.com/rest/api/1.0/projects/{projectKey}/repos/{repositorySlug}/browse/{path:.*}
In Bitbucket Cloud, you could make use of https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/src
Kind regards,
Rafael
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, am using api.bitbucket.org. how will I specify folder and file path in api call
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Folder Name as Test and file as text.md. Can you share am example with this
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.