Skip to content

Update click tracking settings

Request

Use to turn on/off the click tracking at the domain level.

Security
basicAuth
Path
namestringrequired

The name of the domain you want to update

Bodymultipart/form-datarequired
activestring

Set param to htmlonly, true, or false. Omit this param to make no change to the active status. Click tracking is consider as active if it's in the 'htmlonly' or 'true' state

curl -i -X PUT \
  -u '<username>:<password>' \
  'https://api.mailgun.net/v3/domains/{name}/tracking/click' \
  -H 'Content-Type: multipart/form-data' \
  -F active=string

Responses

A 200 response

Bodyapplication/json
messagestringrequired

A message indicating success

clickobject(github.com-mailgun-domains-httpapi-clickSettings)required

Click settings

Response
{ "message": "Domain tracking settings have been updated", "click": { "active": true } }