Zum Hauptinhalt springen

rotate a License's key, i.e. revoke the old and generate a new one

POST/licenses/{licenseId}/actions/rotate-key/
v2
POST
license-rotate-license-key

Request

  • licenseIdstring (uuid)
    required

    ID if the License to rotate the key of.

Responses

application/json

OK

  • keyReferenceone of 2 alternatives
    • Alternativeobject
      • keystring
        required
    • Alternativeobject
      • externalKeystring
        required

Usage examples

$ curl \
--fail \
--location \
-X POST \
-d '{"externalKey":"string"}' \
-H "Authorization: Bearer $MITTWALD_API_TOKEN" \
-H 'Content-Type: application/json' \
https://api.mittwald.de/v2/licenses/f0f86186-0a5a-45b2-aa33-502777496347/actions/rotate-key