{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"To revert a secret to a prior version, send a POST request to\n`/v2/security/secrets/{secret}/versions/{version}/revert`.\n\n`region` is required. `current_version` must be the secret's current version.\nIf it does not match, the request returns a `409` response. A successful\nrevert creates a new version with the contents of the target version.","properties":{"path":{"type":"object","properties":{"secret":{"type":"string","examples":["my-database-password"],"description":"The name of the secret."},"version":{"type":"integer","minimum":1,"examples":[1],"description":"The target version to revert to. Reverting creates a new version with the contents of this version."}},"required":["secret","version"],"additionalProperties":false},"query":{"type":"object","properties":{"region":{"type":"string","examples":["nyc3"],"description":"The region where the secret is stored."}},"required":["region"],"additionalProperties":false},"body":{"type":"object","required":["current_version"],"properties":{"current_version":{"type":"integer","minimum":1,"description":"The current version of the secret. Used to reject the request if the secret changed.","examples":[3]}}}},"required":["path","query","body"],"additionalProperties":false},"name":"Revert Secret","id":"digitalocean.security_revert_secret","example":{"path":{"secret":"my-database-password","version":1},"query":{"region":"nyc3"},"body":{"current_version":3}},"maxRequests":1,"summary":false}}