Skip to content

Tags New

Mailgun allows you to tag your email with unique identifiers. Tags are visible via our analytics tags API endpoint.

Update account tag

Request

Updates the tag description for an account

Security
basicAuth
Bodyapplication/jsonrequired
tagstring

The tag to update.

descriptionstring

The updated tag description.

curl -i -X PUT \
  -u '<username>:<password>' \
  https://api.mailgun.net/v1/analytics/tags \
  -H 'Content-Type: application/json' \
  -d '{
    "tag": "name-of-tag-to-update",
    "description": "updated tag description"
  }'

Responses

A 200 response

Bodyapplication/json
messagestringrequired

Response message

Response
{ "message": "Tag updated" }