How to set the "Email from(required)" field in Bitbucket server using the REST 1.0 API

Marko Schröder February 16, 2018

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:

/rest/api/1.0/admin/mail-server/sender-address {GET|DELETE|PUT}

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

1 answer

0 votes
Caterina Curti
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 2, 2018

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 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events