Skip to contents

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,
  origin = pal::pkg_config_val("origin"),
  email = pal::pkg_config_val("email"),
  password = pal::pkg_config_val("password"),
  api_token = pal::pkg_config_val("api_token")
)

Arguments

id_tbl

character(1)
NocoDB table identifier as returned by tbl_id().

order

integer(1)
A number to assign as the table's NocoDB-specific order "weight".

origin

character(1)
NocoDB server origin.

email

character(1)
E-mail address of the NocoDB user to authenticate with.

password

character(1)
Password of the NocoDB user to authenticate with.

api_token

character(1)
NocoDB API token. Takes precedence over email and password if provided.

Value

id_tbl, invisibly.

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()