API reference · Terminal
Restore a card or folder
POST /api/v1/terminal/restoreBrings back a card or a folder removed in the last day, as it was. Needs an API key. Terminal and routines open with the new RoTerminal: on an account it isn’t open on yet, the answer is permission_denied .
This endpoint needs an API key. See Authentication.
Parameters
- id string
- A card’s ID (12 characters, from List your Terminal). Send this or folder .
- folder string
- A folder’s name or ID. Send this or id .
Example
curl -X POST https://roterminal.co/api/v1/terminal/restore \ -H "Authorization: Bearer $ROTERMINAL_API_KEY" \ -H "Content-Type: application/json" \ -d '{"id":"a1b2c3d4e5f6"}' import RoTerminal from 'roterminal' const rt = new RoTerminal ({ apiKey: process.env.ROTERMINAL_API_KEY }) const { data } = await rt.terminal. restore ({ id: 'a1b2c3d4e5f6' }) from roterminal import RoTerminal rt = RoTerminal () # reads ROTERMINAL_API_KEY data = rt.terminal. restore (id= "a1b2c3d4e5f6" )[ "data" ]Response
Every response is { data, link, as_of } . The fields of data are below.
Fields
The fields in data . A field with nothing to say is left out.
- restored string
- The card or folder’s ID.
- title string
- Its title.