API reference · Terminal
File cards in a folder
POST /api/v1/terminal/filePuts cards in a folder. 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
- ids list Required
- Cards’ IDs, from List your Terminal.
- folder string Required
- The folder’s name or ID.
Example
curl -X POST https://roterminal.co/api/v1/terminal/file \ -H "Authorization: Bearer $ROTERMINAL_API_KEY" \ -H "Content-Type: application/json" \ -d '{"folder":"Rivals"}' import RoTerminal from 'roterminal' const rt = new RoTerminal ({ apiKey: process.env.ROTERMINAL_API_KEY }) const { data } = await rt.terminal. file ({ folder: 'Rivals' }) from roterminal import RoTerminal rt = RoTerminal () # reads ROTERMINAL_API_KEY data = rt.terminal. file (folder= "Rivals" )[ "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.
- folder object
- The folder: its ID and name. 2 fields
- id string
- name string
- Its name.
- added integer
- How many cards went in.