Unable to edit project settings using Gitlab API

Hi Folks,

I am trying to edit the project details using API. However, getting an error saying 403 forbidden. I have used group level personal access token for this.
I am able to retrieve project details through name/ID using the same token but couldn’t able to edit the project settings.

I have used below curl command to edit the project
curl --request PUT --header “PRIVATE-TOKEN:XXXXXXX” “xxxxx.com” --data “default_branch=integration”

Can someone please help me If you have any idea?