{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Restore a D1 database to a previous point in time either via a bookmark or a timestamp.\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},"query":{"type":"object","properties":{"bookmark":{"$ref":"#/definitions/d1_time-travel-bookmark","description":"A bookmark to restore the database to. Required if `timestamp` is not provided."},"timestamp":{"$ref":"#/definitions/d1_time-travel-timestamp","description":"An ISO 8601 timestamp to restore the database to. Required if `bookmark` is not provided."}},"required":[],"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_time-travel-bookmark":{"description":"A bookmark representing a specific state of the database at a specific point in time.","type":"string","examples":["00000001-00000002-00004e2f-0a83ea2fceebc654de0640c422be4653"]},"d1_time-travel-timestamp":{"description":"An ISO 8601 timestamp used for time travel operations. The database will be restored to the nearest available bookmark at or before this timestamp.","type":"string","format":"date-time","examples":["2024-01-15T12:00:00Z"]}}},"name":"Restore D1 Database to a bookmark or point in time","id":"cloudflare.d1-time-travel-restore","example":{"path":{"account_id":"023e105f4ecef8ad9ca31a8372d0c353","database_id":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}},"maxRequests":1,"summary":false}}