I'm trying to use the REST interface to update my watched projects, and it keeps throwing an error. Have I missed something, or is this a reportable bug? Gerrit release is 2.14.3
Querying the existing watched projects works ok:
)]}'
[
{
"project": "gda/gda-legacy",
"notify_submitted_changes": true
}
]
But an attempt to update the list gives a 404:
$ cat ~/gerrit-command.txt
{
"project": "gda/gda-core",
"notify_submitted_changes": true
}
$ curl --basic -K passwords/http-password_Gerrit_for-curl.txt -X PUT -H "Content-Type: application/json" -d @gerrit-command.txt https://gerrit.DOMAIN/a/accounts/self/watched.projects Not found: watched.projects
Gerrit is running behind an Nginx reverse proxy. The Gerrit httpd_log shows that the request is making it through to Gerrit ok. There's nothing in error_log.
I've used curl in a similar way to PUT to other resources, and it's always worked.
A quick look at the Gerrit source code shows that there's definitely code there to handle watched.projects. Maybe it's buggy, or have I done something wrong?
Thanks
Matthew