{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Generates a new Client Secret for a service token and revokes the old one.","properties":{"path":{"type":"object","properties":{"service_token_id":{"$ref":"#/definitions/access_uuid"},"account_id":{"$ref":"#/definitions/access_identifier"}},"required":["service_token_id","account_id"],"additionalProperties":false},"body":{"type":"object","properties":{"previous_client_secret_expires_at":{"description":"The expiration of the previous `client_secret`. If not provided, it defaults to the current timestamp in order to immediately expire the previous secret. If the service token was reported as leaked, this must not be in the future; the leaked secret is discarded immediately.","type":"string","format":"date-time","examples":["2014-01-01T05:20:00.12345Z"]}}}},"required":["path"],"additionalProperties":false,"definitions":{"access_uuid":{"description":"UUID.","type":"string","maxLength":36,"examples":["f174e90a-fafe-4643-bbbc-4a0ed4fc8415"]},"access_identifier":{"description":"Identifier.","type":"string","maxLength":32,"examples":["023e105f4ecef8ad9ca31a8372d0c353"]}}},"name":"Rotate a service token","id":"cloudflare.access-service-tokens-rotate-a-service-token","example":{"path":{"service_token_id":"f174e90a-fafe-4643-bbbc-4a0ed4fc8415","account_id":"023e105f4ecef8ad9ca31a8372d0c353"}},"maxRequests":1,"summary":false}}