Set contact email address(es)

Use this function to set an account's contact email address(es).

To unset all contact email addresses, call unset_email_addresses.

SecurityBasicAuth
Request
query Parameters
address
required
Array of strings <email>

The account’s new contact email addresses.

Example: address=foo@example.com&address=bar@example.com
old_address
required
Array of strings <email>

The account’s existing contact email addresses.

If this list does not match the account’s current current email address(es), then the request will fail. This control is here to prevent race conditions.

Example: old_address=old1@example.com
password
required
string

The account’s password.

Example: password=q1df%D9<z0ShqdxRP%^
Responses
200

Request was successful.

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object
get/ContactInformation/set_email_addresses
Request samples
uapi --output=jsonpretty \
  --user=username \
  ContactInformation \
  set_email_addresses \
  address='foo@example.com' address='bar@example.com' \
  old_address='old1@example.com' \
  password='q1df%D9<z0ShqdxRP%^'
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "set_email_addresses",
  • "module": "ContactInformation",
  • "result": {
    • "errors": null,
    • "messages": null,
    • "status": 1,
    • "warnings": null
    }
}