Skip to content

Update a limit for an account given the metric name in the path

Request

Security
basicAuth
Path
metricstringrequired

The metric that identifies this limit

Bodyapplication/jsonrequired
metricstring(github.com-mailgun-thresholds-api-LimitMetric)required

The metric being monitored.

Enum ValueDescription
email_preview_success_count

The number of successful email previews

seed_test_count

The number of inbox placement tests

limitstringrequired

The threshold limit.

subaccount_idstringrequired

Subaccount to set the limit on if using parent account

curl -i -X PUT \
  -u '<username>:<password>' \
  'https://api.mailgun.net/v2/thresholds/limits/{metric}' \
  -H 'Content-Type: application/json' \
  -d '{
    "metric": "email_preview_success_count",
    "limit": "2500",
    "subaccount_id": "67890"
  }'

Responses

A 200 response

Bodyapplication/json
messagestringrequired

Response message

Response
{ "message": "string" }