Hi folks
I'd like to set the the Bitbucket Server Field "Email from(required)" using the REST 1.0 API. In https://docs.atlassian.com/bitbucket-server/rest/4.12.1/bitbucket-rest.html the following doc can be found:
GET works fine and reports expected results. Unfortunately item name for PUT is missing in documentation and I tried several item names but nothing worked. Did someone of you set the Email from field per REST request sucessfully? Could you please share this REST call?
Thank you
Marko
Hi Marko,
The following should cover your needs:
curl -v -H "Content-Type: application/json" -X PUT -u <username>:<password> <Bitbucket URL>/bitbucket/rest/api/latest/admin/mail-server/sender-address -d "hello@admin.com"
This is the request for the documentation update.
Cheers, Caterina - Atlassian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.