Skip to content

Rotate PreviewShare

Request

Re-generates the uuid and share url, and resets the expiration.

Security
basicAuth
Path
test_idstringrequired

Test to rotate

Query
url_uuidstringrequired

UUID to rotate

curl -i -X POST \
  -u '<username>:<password>' \
  'https://api.mailgun.net/v1/preview/sharing/{test_id}/rotate?url_uuid=string'

Responses

A 200 response

Bodyapplication/json
test_idstringrequired
url_uuidstringrequired
urlstringrequired
enabledbooleanrequired
expires_atstring, (date-time)required
Response
{ "test_id": "some-test-id", "url_uuid": "some-new-uuid", "url": "share.mailgun.com/email-previews/some-new-uuid", "enabled": true, "expires_at": "0001-01-01T00:00:00Z" }