Sets the numeric order of the specified table on a NocoDB server via its
POST /api/v2/meta/tables/{id_tbl}/reorder
API endpoint.
Usage
reorder_tbl(
id_tbl,
order = 1L,
hostname = pal::pkg_config_val("hostname"),
email = pal::pkg_config_val("email"),
password = pal::pkg_config_val("password"),
api_token = pal::pkg_config_val("api_token")
)
Arguments
- id_tbl
NocoDB table identifier as returned by
tbl_id()
. A character scalar.- order
A number to assign as the table's NocoDB-specific order "weight".
- hostname
NocoDB server hostname. A character scalar.
E-mail address of the NocoDB user to authenticate with.
- password
Password of the NocoDB user to authenticate with.
- api_token
NocoDB API token. Takes precedence over
email
andpassword
if provided.
Details
Lower numbers place the table higher up in the UI and vice versa. The current order of all the tables in a base can be determined via tbls()
.
See also
Other functions to manage NocoDB tables:
create_data_src_tbl()
,
create_tbl()
,
data_src_tbls()
,
delete_tbl()
,
set_tbl_metadata()
,
tbl
,
tbl_id()
,
tbls()
,
update_tbl()