Sign in

Update domain

documented

Update settings for the given domain.

PUT /v4/domains/{name}Domainsno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.mailgun.net/v4/domains/{{$name}}" \
  -X PUT \
  -u "api:{{MAILGUN_API_KEY}}" \
  -H "Accept: application/json" \
  -H "Content-Type: multipart/form-data" \
  -F "archive_to={{$archive_to}}" \
  -F "mailfrom_host={{$mailfrom_host}}" \
  -F "message_ttl={{$message_ttl}}" \
  -F "domain.require_tls={{$domain_require_tls}}" \
  -F "domain.skip_verification={{$domain_skip_verification}}" \
  -F "domain.smtp_login={{$domain_smtp_login}}" \
  -F "domain.smtp_password={{$domain_smtp_password}}" \
  -F "domain.spam_action={{$domain_spam_action}}" \
  -F "domain.subaccount_id={{$domain_subaccount_id}}" \
  -F "domain.state={{$domain_state}}" \
  -F "domain.type={{$domain_type}}" \
  -F "domain.tracking_host={{$domain_tracking_host}}"