{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Restore a deleted D1 database. The database is restored with the name it had when it was deleted,\nunless `new_name` is provided. The restored database counts against the account's limits.\nUndeleting a database that is not deleted succeeds without changes, unless `new_name` differs from its current name which errors.\nA database can only be undeleted within 7 days (7 * 24 hours) of its deletion.\n\nOnce a database is undeleted, Time Travel (point-in-time recovery) cannot restore it to a bookmark or\ntimestamp at or before the undeletion. Only states after the undeletion can be restored.\n","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/d1_account-identifier"},"database_id":{"$ref":"#/definitions/d1_database-identifier"}},"required":["account_id","database_id"],"additionalProperties":false},"body":{"type":"object","properties":{"new_name":{"description":"Restore the database with this name instead of the name it had when it was deleted. Required if another database in the account already uses that name.","allOf":[{"$ref":"#/definitions/d1_database-name"}]}},"additionalProperties":false}},"required":["path"],"additionalProperties":false,"definitions":{"d1_account-identifier":{"description":"Account identifier tag.","type":"string","maxLength":32,"examples":["023e105f4ecef8ad9ca31a8372d0c353"]},"d1_database-identifier":{"description":"D1 database identifier (UUID).","type":"string","examples":["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"]},"d1_database-name":{"description":"D1 database name.","type":"string","pattern":"^[a-zA-Z0-9][a-zA-Z0-9_-]*$","examples":["my-database"]}}},"name":"Undelete D1 Database","id":"cloudflare.d1-undelete-database","example":{"path":{"account_id":"023e105f4ecef8ad9ca31a8372d0c353","database_id":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}},"maxRequests":1,"summary":false}}