Update sender address

Update a sender address

  • HTTP Method: PUT
  • URL: https://example.domain.tld/api/v1/sender_addresses/
  • Require authentication: Yes
  • Permission level required: MasterAdmin / DomainAdmin

Request parameters

Parameter Type Description Required
sender_address str Sender address Required
usernames str Comma separated list of MailUsers authorized to send emails from the sender address Required

Response parameters

Parameter Type Description
sender_address str Sender address
usernames str Comma separated list of MailUsers authorized to send emails from the sender address

Example request (Python)

import requests
import json
from pprint import pprint

url = "https://example.domain.tld/api/v1/sender_addresses/"
data = {
"sender_address" : "sa1@vonmail.com",
"usernames" : "u1@vonmail.com"
}
r = requests.put(url, json=data, auth=("admin","long-auth_token-here"))
try:
    pprint(r.json())
except: 
    print(r.text)

Example response (JSON)

{'sender_address': 'sa1@vonmail.com', 'usernames': 'u1@vonmail.com'}