List all users in the given base.
baseId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Base ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
{- "users": {
- "list": [
- {
- "email": "user@example.com",
- "email_verified": true,
- "firstname": "Alice",
- "id": "us_8kugj628ebjngs",
- "lastname": "Smith",
- "roles": "org-level-viewer"
}
], - "pageInfo": {
- "isFirstPage": true,
- "isLastPage": true,
- "page": 1,
- "pageSize": 10,
- "totalRows": 1
}
}
}
Create a user and add it to the given base
baseId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Base ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
email required | string <email> Base User Email |
roles required | string Enum: "no-access" "commenter" "editor" "guest" "owner" "viewer" "creator" Base User Role |
{- "email": "user@example.com",
- "roles": "owner"
}
{- "msg": "The user has been invited successfully"
}
Update a given user in a given base. Exclusive for Super Admin. Access with API Tokens will be blocked.
baseId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Base ID |
userId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique User ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
email required | string <email> Base User Email |
roles required | string Enum: "no-access" "commenter" "editor" "guest" "owner" "viewer" "creator" Base User Role |
{- "email": "user@example.com",
- "roles": "owner"
}
{- "msg": "The user has been updated successfully"
}
Delete a given user in a given base. Exclusive for Super Admin. Access with API Tokens will be blocked.
baseId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Base ID |
userId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique User ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
{- "msg": "The user has been updated successfully"
}
Resend Invitation to a specific user
baseId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Base ID |
userId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique User ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
{- "msg": "The invitation has been sent to the user"
}
Upload attachment
path required | string Example: path=download/noco/jango_fett/Table1/attachment/uVbjPVQxC_SSfs8Ctx.jpg Target File Path |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
mimetype | string The mimetype of the attachment |
path | string The file path of the attachment |
size | number The size of the attachment |
title | string The title of the attachment used in UI |
url | string Attachment URL to be uploaded via upload-by-url |
{ "mimetype": "image/jpeg", "path": "download/noco/jango_fett/Table1/attachment/uVbjPVQxC_SSfs8Ctx.jpg", "size": 13052, "title": "22bc-kavypmq4869759 (1).jpg" }
Get the source details of a given base
baseId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Base ID |
sourceId required | stringds_j04jmxh5xg10lu Unique Source ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
{- "alias": null,
- "config": "<ENCRYPTED>",
- "enabled": 1,
- "id": "ds_krsappzu9f8vmo",
- "inflection_column": "camelize",
- "inflection_table": "camelize",
- "is_meta": 1,
- "meta": null,
- "order": 1,
- "base_id": "p_01clqvzik3izk6",
- "type": "mysql2"
}
Delete the source details of a given base
baseId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Base ID |
sourceId required | stringds_j04jmxh5xg10lu Unique Source ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
true
Update the source details of a given base
baseId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Base ID |
sourceId required | stringds_j04jmxh5xg10lu Unique Source ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
{- "alias": "sakila",
- "type": "mysql2",
- "config": {
- "client": "mysql2",
- "connection": {
- "host": "localhost",
- "port": "3306",
- "user": "root",
- "password": "password",
- "database": "sakila"
}
}, - "inflection_column": "camelize",
- "inflection_table": "camelize"
}
{- "id": "ds_rrplkgy0pq1f3c",
- "base_id": "p_63b4q0qengen1x",
- "alias": "sakila",
- "meta": null,
- "is_meta": null,
- "type": "mysql2",
- "inflection_column": "camelize",
- "inflection_table": "camelize",
- "created_at": "2023-03-11T10:31:15.341Z",
- "updated_at": "2023-03-11T10:32:25.763Z",
- "enabled": true,
- "order": 2
}
baseId required | string |
sourceId required | string |
view_name | string |
view_definition | string |
{- "view_name": "string",
- "view_definition": "string"
}
{ }
Get base source list
baseId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Base ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
{- "list": [
- {
- "alias": null,
- "config": "<ENCRYPTED>",
- "enabled": 1,
- "id": "ds_krsappzu9f8vmo",
- "inflection_column": "camelize",
- "inflection_table": "camelize",
- "is_meta": 1,
- "meta": null,
- "order": 1,
- "base_id": "p_01clqvzik3izk6",
- "type": "mysql2"
}
], - "pageInfo": {
- "isFirstPage": true,
- "isLastPage": true,
- "page": 1,
- "pageSize": 10,
- "totalRows": 1
}
}
Create a new source on a given base
baseId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Base ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) | |
config | any Source Configuration |
Bool Model (integer) or Bool Model (boolean) or Bool Model (null) (Bool) | |
id | string Unique Source ID |
inflection_column | string Inflection for columns |
inflection_table | string Inflection for tables |
Bool Model (integer) or Bool Model (boolean) or Bool Model (null) (Bool) | |
Bool Model (integer) or Bool Model (boolean) or Bool Model (null) (Bool) | |
order | number The order of the list of sources |
base_id | string The base ID that this source belongs to |
type | string Enum: "mssql" "mysql" "mysql2" "oracledb" "pg" "snowflake" "sqlite3" DB Type |
external | boolean Default: false |
{- "alias": null,
- "config": "<ENCRYPTED>",
- "enabled": 1,
- "id": "ds_krsappzu9f8vmo",
- "inflection_column": "camelize",
- "inflection_table": "camelize",
- "is_meta": 1,
- "meta": null,
- "order": 1,
- "base_id": "p_01clqvzik3izk6",
- "type": "mysql2",
- "external": false
}
{- "alias": null,
- "config": "<ENCRYPTED>",
- "enabled": 1,
- "id": "ds_krsappzu9f8vmo",
- "inflection_column": "camelize",
- "inflection_table": "camelize",
- "is_meta": 1,
- "meta": null,
- "order": 1,
- "base_id": "p_01clqvzik3izk6",
- "type": "mysql2"
}
List all tables in a given Base and Source
baseId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Base ID |
sourceId required | stringds_j04jmxh5xg10lu Unique Source ID |
page | number |
pageSize | number |
sort | string |
includeM2M | boolean |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
{- "list": [
- {
- "id": "md_5hua2iqloqirhd",
- "source_id": "ds_jxuewivwbxeum2",
- "base_id": "p_tbhl1hnycvhe5l",
- "table_name": "nc_b84e___Sheet-1",
- "title": "Sheet-1",
- "type": "table",
- "meta": null,
- "schema": null,
- "enabled": true,
- "mm": false,
- "tags": null,
- "pinned": null,
- "deleted": null,
- "order": 1,
- "created_at": "2023-03-11T09:11:45.907Z",
- "updated_at": "2023-03-11T09:11:45.907Z"
}
], - "pageInfo": {
- "isFirstPage": true,
- "isLastPage": true,
- "page": 1,
- "pageSize": 10,
- "totalRows": 1
}
}
Create a new table in a given Base and Source
baseId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Base ID |
sourceId required | stringds_j04jmxh5xg10lu Unique Source ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
required | Array of objects (Normal Column Request Model) The column models in this table |
Meta Model (null) or Meta Model (object) or Meta Model (string) (Meta) | |
order | number The order of table list |
table_name required | string [ 1 .. 255 ] characters Table name |
title | string [ 0 .. 255 ] characters Table title |
{- "columns": [
- {
- "ai": false,
- "altered": 1,
- "cdf": "CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP",
- "ck": false,
- "clen": 45,
- "column_name": "updated_at",
- "ct": "varchar(45)",
- "dt": "timestamp",
- "dtx": "specificType",
- "dtxp": "",
- "dtxs": "",
- "np": null,
- "nrqd": true,
- "ns": null,
- "pk": false,
- "rqd": false,
- "title": "UpdatedAt",
- "uicn": "",
- "uidt": "DateTime",
- "uip": "",
- "un": false
}, - {
- "ai": false,
- "altered": 1,
- "cdf": "CURRENT_TIMESTAMP",
- "ck": false,
- "clen": 45,
- "column_name": "created_at",
- "ct": "varchar(45)",
- "dt": "timestamp",
- "dtx": "specificType",
- "dtxp": "",
- "dtxs": "",
- "np": null,
- "nrqd": true,
- "ns": null,
- "pk": false,
- "rqd": false,
- "title": "CreatedAt",
- "uicn": "",
- "uidt": "DateTime",
- "uip": "",
- "un": false
}, - {
- "ai": false,
- "altered": 1,
- "cdf": null,
- "ck": false,
- "clen": 45,
- "column_name": "title",
- "ct": "varchar(45)",
- "dt": "varchar",
- "dtx": "specificType",
- "dtxp": "45",
- "dtxs": "",
- "np": null,
- "nrqd": true,
- "ns": null,
- "pk": false,
- "rqd": false,
- "title": "Title",
- "uicn": "",
- "uidt": "SingleLineText",
- "uip": "",
- "un": false
}, - {
- "ai": true,
- "altered": 1,
- "cdf": null,
- "ck": false,
- "clen": null,
- "column_name": "id",
- "ct": "int(11)",
- "dt": "int",
- "dtx": "integer",
- "dtxp": "11",
- "dtxs": "",
- "np": 11,
- "nrqd": false,
- "ns": 0,
- "pk": true,
- "rqd": true,
- "title": "Id",
- "uicn": "",
- "uidt": "ID",
- "uip": "",
- "un": true
}
], - "table_name": "Sheet-1",
- "title": "Sheet-1"
}
{- "source_id": "ds_g4ccx6e77h1dmi",
- "columns": [
- {
- "ai": 0,
- "au": 0,
- "source_id": "ds_g4ccx6e77h1dmi",
- "cc": "",
- "cdf": "CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP",
- "clen": null,
- "column_name": "updated_at",
- "cop": "4",
- "created_at": "2023-03-02 17:04:06",
- "csn": null,
- "ct": "timestamp",
- "deleted": null,
- "dt": "timestamp",
- "dtx": "specificType",
- "dtxp": "0",
- "dtxs": null,
- "fk_model_id": "md_rsu68aqjsbyqtl",
- "id": "cl_m4wkaqgqqjzoeh",
- "meta": null,
- "np": null,
- "ns": null,
- "order": 4,
- "pk": 0,
- "base_id": "p_xm3thidrblw4n7",
- "pv": null,
- "rqd": 0,
- "system": 0,
- "title": "UpdatedAt",
- "uidt": "DateTime",
- "un": 0,
- "unique": 0,
- "updated_at": "2023-03-02 17:04:06",
- "validate": null,
- "virtual": null
}, - {
- "ai": 0,
- "au": 0,
- "source_id": "ds_g4ccx6e77h1dmi",
- "cc": "",
- "cdf": "CURRENT_TIMESTAMP",
- "clen": null,
- "column_name": "created_at",
- "cop": "3",
- "created_at": "2023-03-02 17:04:06",
- "csn": null,
- "ct": "timestamp",
- "deleted": null,
- "dt": "timestamp",
- "dtx": "specificType",
- "dtxp": "0",
- "dtxs": null,
- "fk_model_id": "md_rsu68aqjsbyqtl",
- "id": "cl_jpl0qu4gj4rexq",
- "meta": null,
- "np": null,
- "ns": null,
- "order": 3,
- "pk": 0,
- "base_id": "p_xm3thidrblw4n7",
- "pv": null,
- "rqd": 0,
- "system": 0,
- "title": "CreatedAt",
- "uidt": "DateTime",
- "un": 0,
- "unique": 0,
- "updated_at": "2023-03-02 17:04:06",
- "validate": null,
- "virtual": null
}, - {
- "ai": 0,
- "au": 0,
- "source_id": "ds_g4ccx6e77h1dmi",
- "cc": "",
- "cdf": null,
- "clen": "45",
- "column_name": "title",
- "cop": "2",
- "created_at": "2023-03-02 17:04:06",
- "csn": "utf8mb4",
- "ct": "varchar(45)",
- "deleted": null,
- "dt": "varchar",
- "dtx": "specificType",
- "dtxp": "45",
- "dtxs": null,
- "fk_model_id": "md_rsu68aqjsbyqtl",
- "id": "cl_c5knoi4xs4sfpt",
- "meta": null,
- "np": null,
- "ns": null,
- "order": 2,
- "pk": 0,
- "base_id": "p_xm3thidrblw4n7",
- "pv": 1,
- "rqd": 0,
- "system": 0,
- "title": "Title",
- "uidt": "SingleLineText",
- "un": 0,
- "unique": 0,
- "updated_at": "2023-03-02 17:04:06",
- "validate": null,
- "virtual": null
}, - {
- "ai": 1,
- "au": 0,
- "source_id": "ds_g4ccx6e77h1dmi",
- "cc": "",
- "cdf": null,
- "clen": null,
- "column_name": "id",
- "cop": "1",
- "created_at": "2023-03-02 17:04:06",
- "csn": null,
- "ct": "int unsigned",
- "deleted": null,
- "dt": "int",
- "dtx": "specificType",
- "dtxp": "",
- "dtxs": "0",
- "fk_model_id": "md_rsu68aqjsbyqtl",
- "id": "cl_phvuuwjrzcdo0g",
- "meta": null,
- "np": "10",
- "ns": "0",
- "order": 1,
- "pk": 1,
- "base_id": "p_xm3thidrblw4n7",
- "pv": null,
- "rqd": 1,
- "system": 0,
- "title": "Id",
- "uidt": "ID",
- "un": 1,
- "unique": 0,
- "updated_at": "2023-03-02 17:04:06",
- "validate": null,
- "virtual": null
}
], - "columnsById": {
- "cl_c5knoi4xs4sfpt": {
- "ai": 0,
- "au": 0,
- "source_id": "ds_g4ccx6e77h1dmi",
- "cc": "",
- "cdf": null,
- "clen": "45",
- "column_name": "title",
- "cop": "2",
- "created_at": "2023-03-02 17:04:06",
- "csn": "utf8mb4",
- "ct": "varchar(45)",
- "deleted": null,
- "dt": "varchar",
- "dtx": "specificType",
- "dtxp": "45",
- "dtxs": null,
- "fk_model_id": "md_rsu68aqjsbyqtl",
- "id": "cl_c5knoi4xs4sfpt",
- "meta": null,
- "np": null,
- "ns": null,
- "order": 2,
- "pk": 0,
- "base_id": "p_xm3thidrblw4n7",
- "pv": 1,
- "rqd": 0,
- "system": 0,
- "title": "Title",
- "uidt": "SingleLineText",
- "un": 0,
- "unique": 0,
- "updated_at": "2023-03-02 17:04:06",
- "validate": null,
- "virtual": null
}, - "cl_jpl0qu4gj4rexq": {
- "ai": 0,
- "au": 0,
- "source_id": "ds_g4ccx6e77h1dmi",
- "cc": "",
- "cdf": "CURRENT_TIMESTAMP",
- "clen": null,
- "column_name": "created_at",
- "cop": "3",
- "created_at": "2023-03-02 17:04:06",
- "csn": null,
- "ct": "timestamp",
- "deleted": null,
- "dt": "timestamp",
- "dtx": "specificType",
- "dtxp": "0",
- "dtxs": null,
- "fk_model_id": "md_rsu68aqjsbyqtl",
- "id": "cl_jpl0qu4gj4rexq",
- "meta": null,
- "np": null,
- "ns": null,
- "order": 3,
- "pk": 0,
- "base_id": "p_xm3thidrblw4n7",
- "pv": null,
- "rqd": 0,
- "system": 0,
- "title": "CreatedAt",
- "uidt": "DateTime",
- "un": 0,
- "unique": 0,
- "updated_at": "2023-03-02 17:04:06",
- "validate": null,
- "virtual": null
}, - "cl_m4wkaqgqqjzoeh": {
- "ai": 0,
- "au": 0,
- "source_id": "ds_g4ccx6e77h1dmi",
- "cc": "",
- "cdf": "CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP",
- "clen": null,
- "column_name": "updated_at",
- "cop": "4",
- "created_at": "2023-03-02 17:04:06",
- "csn": null,
- "ct": "timestamp",
- "deleted": null,
- "dt": "timestamp",
- "dtx": "specificType",
- "dtxp": "0",
- "dtxs": null,
- "fk_model_id": "md_rsu68aqjsbyqtl",
- "id": "cl_m4wkaqgqqjzoeh",
- "meta": null,
- "np": null,
- "ns": null,
- "order": 4,
- "pk": 0,
- "base_id": "p_xm3thidrblw4n7",
- "pv": null,
- "rqd": 0,
- "system": 0,
- "title": "UpdatedAt",
- "uidt": "DateTime",
- "un": 0,
- "unique": 0,
- "updated_at": "2023-03-02 17:04:06",
- "validate": null,
- "virtual": null
}, - "cl_phvuuwjrzcdo0g": {
- "ai": 1,
- "au": 0,
- "source_id": "ds_g4ccx6e77h1dmi",
- "cc": "",
- "cdf": null,
- "clen": null,
- "column_name": "id",
- "cop": "1",
- "created_at": "2023-03-02 17:04:06",
- "csn": null,
- "ct": "int unsigned",
- "deleted": null,
- "dt": "int",
- "dtx": "specificType",
- "dtxp": "",
- "dtxs": "0",
- "fk_model_id": "md_rsu68aqjsbyqtl",
- "id": "cl_phvuuwjrzcdo0g",
- "meta": null,
- "np": "10",
- "ns": "0",
- "order": 1,
- "pk": 1,
- "base_id": "p_xm3thidrblw4n7",
- "pv": null,
- "rqd": 1,
- "system": 0,
- "title": "Id",
- "uidt": "ID",
- "un": 1,
- "unique": 0,
- "updated_at": "2023-03-02 17:04:06",
- "validate": null,
- "virtual": null
}
}, - "created_at": "2023-03-02 17:04:06",
- "deleted": null,
- "enabled": 1,
- "id": "md_rsu68aqjsbyqtl",
- "meta": null,
- "mm": 0,
- "order": 1,
- "pinned": null,
- "base_id": "p_xm3thidrblw4n7",
- "schema": null,
- "table_name": "nc_vm5q___Table1",
- "tags": null,
- "title": "Table1",
- "type": "table",
- "updated_at": "2023-03-02 17:04:08",
- "views": [
- {
- "_ptn": "Table1",
- "_tn": "Table1",
- "source_id": "ds_g4ccx6e77h1dmi",
- "created_at": "2023-03-02 17:04:06",
- "disabled": {
- "commenter": false,
- "creator": false,
- "editor": false,
- "guest": false,
- "owner": false,
- "viewer": false
}, - "fk_model_id": "md_rsu68aqjsbyqtl",
- "id": "vw_p2jcatxz4mvcfw",
- "is_default": 1,
- "lock_type": "collaborative",
- "meta": { },
- "order": 1,
- "password": null,
- "base_id": "p_xm3thidrblw4n7",
- "ptn": "nc_vm5q___Table1",
- "ptype": "table",
- "show": 1,
- "show_system_fields": null,
- "table_meta": null,
- "title": "Table1",
- "tn": "Table1",
- "type": 3,
- "updated_at": "2023-03-02 17:04:06",
- "uuid": null,
- "view": {
- "source_id": "ds_g4ccx6e77h1dmi",
- "created_at": "2023-03-02 17:04:06",
- "fk_view_id": "vw_p2jcatxz4mvcfw",
- "meta": null,
- "base_id": "p_xm3thidrblw4n7",
- "row_height": null,
- "updated_at": "2023-03-02 17:04:06",
- "uuid": null
}
}
]
}
Synchronise the meta data difference between NC_DB and external data sources in a given Source
baseId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Base ID |
sourceId required | stringds_j04jmxh5xg10lu Unique Source ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
{- "msg": "The source meta has been synchronized successfully"
}
Get the meta data difference between NC_DB and external data sources in a given Source
baseId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Base ID |
sourceId required | stringds_j04jmxh5xg10lu Unique Source ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
[- {
- "table_name": "_nc_m2m_uuv_xzru3m",
- "source_id": "ds_rrplkgy0pq1f3c",
- "type": "table",
- "detectedChanges": [
- {
- "type": "TABLE_NEW",
- "msg": "New table"
}, - {
- "type": "TABLE_RELATION_ADD",
- "tn": "_nc_m2m_uuv_xzru3m",
- "rtn": "Sheet-1",
- "cn": "table1_id",
- "rcn": "id",
- "msg": "New relation added",
- "relationType": "bt",
- "cstn": "_nc_m2m_uuv_xzru3m_table1_id_foreign"
}, - {
- "type": "TABLE_RELATION_ADD",
- "tn": "_nc_m2m_uuv_xzru3m",
- "rtn": "address",
- "cn": "table2_id",
- "rcn": "address_id",
- "msg": "New relation added",
- "relationType": "bt",
- "cstn": "_nc_m2m_uuv_xzru3m_table2_id_foreign"
}
]
}
]
Create a new table in a given base
baseId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Base ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
required | Array of objects (Normal Column Request Model) The column models in this table |
Meta Model (null) or Meta Model (object) or Meta Model (string) (Meta) | |
order | number The order of table list |
table_name required | string [ 1 .. 255 ] characters Table name |
title | string [ 0 .. 255 ] characters Table title |
{- "columns": [
- {
- "ai": false,
- "altered": 1,
- "cdf": "CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP",
- "ck": false,
- "clen": 45,
- "column_name": "updated_at",
- "ct": "varchar(45)",
- "dt": "timestamp",
- "dtx": "specificType",
- "dtxp": "",
- "dtxs": "",
- "np": null,
- "nrqd": true,
- "ns": null,
- "pk": false,
- "rqd": false,
- "title": "UpdatedAt",
- "uicn": "",
- "uidt": "DateTime",
- "uip": "",
- "un": false
}, - {
- "ai": false,
- "altered": 1,
- "cdf": "CURRENT_TIMESTAMP",
- "ck": false,
- "clen": 45,
- "column_name": "created_at",
- "ct": "varchar(45)",
- "dt": "timestamp",
- "dtx": "specificType",
- "dtxp": "",
- "dtxs": "",
- "np": null,
- "nrqd": true,
- "ns": null,
- "pk": false,
- "rqd": false,
- "title": "CreatedAt",
- "uicn": "",
- "uidt": "DateTime",
- "uip": "",
- "un": false
}, - {
- "ai": false,
- "altered": 1,
- "cdf": null,
- "ck": false,
- "clen": 45,
- "column_name": "title",
- "ct": "varchar(45)",
- "dt": "varchar",
- "dtx": "specificType",
- "dtxp": "45",
- "dtxs": "",
- "np": null,
- "nrqd": true,
- "ns": null,
- "pk": false,
- "rqd": false,
- "title": "Title",
- "uicn": "",
- "uidt": "SingleLineText",
- "uip": "",
- "un": false
}, - {
- "ai": true,
- "altered": 1,
- "cdf": null,
- "ck": false,
- "clen": null,
- "column_name": "id",
- "ct": "int(11)",
- "dt": "int",
- "dtx": "integer",
- "dtxp": "11",
- "dtxs": "",
- "np": 11,
- "nrqd": false,
- "ns": 0,
- "pk": true,
- "rqd": true,
- "title": "Id",
- "uicn": "",
- "uidt": "ID",
- "uip": "",
- "un": true
}
], - "table_name": "Sheet-1",
- "title": "Sheet-1"
}
{- "source_id": "ds_g4ccx6e77h1dmi",
- "columns": [
- {
- "ai": 0,
- "au": 0,
- "source_id": "ds_g4ccx6e77h1dmi",
- "cc": "",
- "cdf": "CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP",
- "clen": null,
- "column_name": "updated_at",
- "cop": "4",
- "created_at": "2023-03-02 17:04:06",
- "csn": null,
- "ct": "timestamp",
- "deleted": null,
- "dt": "timestamp",
- "dtx": "specificType",
- "dtxp": "0",
- "dtxs": null,
- "fk_model_id": "md_rsu68aqjsbyqtl",
- "id": "cl_m4wkaqgqqjzoeh",
- "meta": null,
- "np": null,
- "ns": null,
- "order": 4,
- "pk": 0,
- "base_id": "p_xm3thidrblw4n7",
- "pv": null,
- "rqd": 0,
- "system": 0,
- "title": "UpdatedAt",
- "uidt": "DateTime",
- "un": 0,
- "unique": 0,
- "updated_at": "2023-03-02 17:04:06",
- "validate": null,
- "virtual": null
}, - {
- "ai": 0,
- "au": 0,
- "source_id": "ds_g4ccx6e77h1dmi",
- "cc": "",
- "cdf": "CURRENT_TIMESTAMP",
- "clen": null,
- "column_name": "created_at",
- "cop": "3",
- "created_at": "2023-03-02 17:04:06",
- "csn": null,
- "ct": "timestamp",
- "deleted": null,
- "dt": "timestamp",
- "dtx": "specificType",
- "dtxp": "0",
- "dtxs": null,
- "fk_model_id": "md_rsu68aqjsbyqtl",
- "id": "cl_jpl0qu4gj4rexq",
- "meta": null,
- "np": null,
- "ns": null,
- "order": 3,
- "pk": 0,
- "base_id": "p_xm3thidrblw4n7",
- "pv": null,
- "rqd": 0,
- "system": 0,
- "title": "CreatedAt",
- "uidt": "DateTime",
- "un": 0,
- "unique": 0,
- "updated_at": "2023-03-02 17:04:06",
- "validate": null,
- "virtual": null
}, - {
- "ai": 0,
- "au": 0,
- "source_id": "ds_g4ccx6e77h1dmi",
- "cc": "",
- "cdf": null,
- "clen": "45",
- "column_name": "title",
- "cop": "2",
- "created_at": "2023-03-02 17:04:06",
- "csn": "utf8mb4",
- "ct": "varchar(45)",
- "deleted": null,
- "dt": "varchar",
- "dtx": "specificType",
- "dtxp": "45",
- "dtxs": null,
- "fk_model_id": "md_rsu68aqjsbyqtl",
- "id": "cl_c5knoi4xs4sfpt",
- "meta": null,
- "np": null,
- "ns": null,
- "order": 2,
- "pk": 0,
- "base_id": "p_xm3thidrblw4n7",
- "pv": 1,
- "rqd": 0,
- "system": 0,
- "title": "Title",
- "uidt": "SingleLineText",
- "un": 0,
- "unique": 0,
- "updated_at": "2023-03-02 17:04:06",
- "validate": null,
- "virtual": null
}, - {
- "ai": 1,
- "au": 0,
- "source_id": "ds_g4ccx6e77h1dmi",
- "cc": "",
- "cdf": null,
- "clen": null,
- "column_name": "id",
- "cop": "1",
- "created_at": "2023-03-02 17:04:06",
- "csn": null,
- "ct": "int unsigned",
- "deleted": null,
- "dt": "int",
- "dtx": "specificType",
- "dtxp": "",
- "dtxs": "0",
- "fk_model_id": "md_rsu68aqjsbyqtl",
- "id": "cl_phvuuwjrzcdo0g",
- "meta": null,
- "np": "10",
- "ns": "0",
- "order": 1,
- "pk": 1,
- "base_id": "p_xm3thidrblw4n7",
- "pv": null,
- "rqd": 1,
- "system": 0,
- "title": "Id",
- "uidt": "ID",
- "un": 1,
- "unique": 0,
- "updated_at": "2023-03-02 17:04:06",
- "validate": null,
- "virtual": null
}
], - "columnsById": {
- "cl_c5knoi4xs4sfpt": {
- "ai": 0,
- "au": 0,
- "source_id": "ds_g4ccx6e77h1dmi",
- "cc": "",
- "cdf": null,
- "clen": "45",
- "column_name": "title",
- "cop": "2",
- "created_at": "2023-03-02 17:04:06",
- "csn": "utf8mb4",
- "ct": "varchar(45)",
- "deleted": null,
- "dt": "varchar",
- "dtx": "specificType",
- "dtxp": "45",
- "dtxs": null,
- "fk_model_id": "md_rsu68aqjsbyqtl",
- "id": "cl_c5knoi4xs4sfpt",
- "meta": null,
- "np": null,
- "ns": null,
- "order": 2,
- "pk": 0,
- "base_id": "p_xm3thidrblw4n7",
- "pv": 1,
- "rqd": 0,
- "system": 0,
- "title": "Title",
- "uidt": "SingleLineText",
- "un": 0,
- "unique": 0,
- "updated_at": "2023-03-02 17:04:06",
- "validate": null,
- "virtual": null
}, - "cl_jpl0qu4gj4rexq": {
- "ai": 0,
- "au": 0,
- "source_id": "ds_g4ccx6e77h1dmi",
- "cc": "",
- "cdf": "CURRENT_TIMESTAMP",
- "clen": null,
- "column_name": "created_at",
- "cop": "3",
- "created_at": "2023-03-02 17:04:06",
- "csn": null,
- "ct": "timestamp",
- "deleted": null,
- "dt": "timestamp",
- "dtx": "specificType",
- "dtxp": "0",
- "dtxs": null,
- "fk_model_id": "md_rsu68aqjsbyqtl",
- "id": "cl_jpl0qu4gj4rexq",
- "meta": null,
- "np": null,
- "ns": null,
- "order": 3,
- "pk": 0,
- "base_id": "p_xm3thidrblw4n7",
- "pv": null,
- "rqd": 0,
- "system": 0,
- "title": "CreatedAt",
- "uidt": "DateTime",
- "un": 0,
- "unique": 0,
- "updated_at": "2023-03-02 17:04:06",
- "validate": null,
- "virtual": null
}, - "cl_m4wkaqgqqjzoeh": {
- "ai": 0,
- "au": 0,
- "source_id": "ds_g4ccx6e77h1dmi",
- "cc": "",
- "cdf": "CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP",
- "clen": null,
- "column_name": "updated_at",
- "cop": "4",
- "created_at": "2023-03-02 17:04:06",
- "csn": null,
- "ct": "timestamp",
- "deleted": null,
- "dt": "timestamp",
- "dtx": "specificType",
- "dtxp": "0",
- "dtxs": null,
- "fk_model_id": "md_rsu68aqjsbyqtl",
- "id": "cl_m4wkaqgqqjzoeh",
- "meta": null,
- "np": null,
- "ns": null,
- "order": 4,
- "pk": 0,
- "base_id": "p_xm3thidrblw4n7",
- "pv": null,
- "rqd": 0,
- "system": 0,
- "title": "UpdatedAt",
- "uidt": "DateTime",
- "un": 0,
- "unique": 0,
- "updated_at": "2023-03-02 17:04:06",
- "validate": null,
- "virtual": null
}, - "cl_phvuuwjrzcdo0g": {
- "ai": 1,
- "au": 0,
- "source_id": "ds_g4ccx6e77h1dmi",
- "cc": "",
- "cdf": null,
- "clen": null,
- "column_name": "id",
- "cop": "1",
- "created_at": "2023-03-02 17:04:06",
- "csn": null,
- "ct": "int unsigned",
- "deleted": null,
- "dt": "int",
- "dtx": "specificType",
- "dtxp": "",
- "dtxs": "0",
- "fk_model_id": "md_rsu68aqjsbyqtl",
- "id": "cl_phvuuwjrzcdo0g",
- "meta": null,
- "np": "10",
- "ns": "0",
- "order": 1,
- "pk": 1,
- "base_id": "p_xm3thidrblw4n7",
- "pv": null,
- "rqd": 1,
- "system": 0,
- "title": "Id",
- "uidt": "ID",
- "un": 1,
- "unique": 0,
- "updated_at": "2023-03-02 17:04:06",
- "validate": null,
- "virtual": null
}
}, - "created_at": "2023-03-02 17:04:06",
- "deleted": null,
- "enabled": 1,
- "id": "md_rsu68aqjsbyqtl",
- "meta": null,
- "mm": 0,
- "order": 1,
- "pinned": null,
- "base_id": "p_xm3thidrblw4n7",
- "schema": null,
- "table_name": "nc_vm5q___Table1",
- "tags": null,
- "title": "Table1",
- "type": "table",
- "updated_at": "2023-03-02 17:04:08",
- "views": [
- {
- "_ptn": "Table1",
- "_tn": "Table1",
- "source_id": "ds_g4ccx6e77h1dmi",
- "created_at": "2023-03-02 17:04:06",
- "disabled": {
- "commenter": false,
- "creator": false,
- "editor": false,
- "guest": false,
- "owner": false,
- "viewer": false
}, - "fk_model_id": "md_rsu68aqjsbyqtl",
- "id": "vw_p2jcatxz4mvcfw",
- "is_default": 1,
- "lock_type": "collaborative",
- "meta": { },
- "order": 1,
- "password": null,
- "base_id": "p_xm3thidrblw4n7",
- "ptn": "nc_vm5q___Table1",
- "ptype": "table",
- "show": 1,
- "show_system_fields": null,
- "table_meta": null,
- "title": "Table1",
- "tn": "Table1",
- "type": 3,
- "updated_at": "2023-03-02 17:04:06",
- "uuid": null,
- "view": {
- "source_id": "ds_g4ccx6e77h1dmi",
- "created_at": "2023-03-02 17:04:06",
- "fk_view_id": "vw_p2jcatxz4mvcfw",
- "meta": null,
- "base_id": "p_xm3thidrblw4n7",
- "row_height": null,
- "updated_at": "2023-03-02 17:04:06",
- "uuid": null
}
}
]
}
List all tables in a given base
baseId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Base ID |
page | number |
pageSize | number |
sort | string |
includeM2M | boolean |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
{- "list": [
- {
- "id": "md_5hua2iqloqirhd",
- "source_id": "ds_jxuewivwbxeum2",
- "base_id": "p_tbhl1hnycvhe5l",
- "table_name": "nc_b84e___Sheet-1",
- "title": "Sheet-1",
- "type": "table",
- "meta": null,
- "schema": null,
- "enabled": true,
- "mm": false,
- "tags": null,
- "pinned": null,
- "deleted": null,
- "order": 1,
- "created_at": "2023-03-11T09:11:45.907Z",
- "updated_at": "2023-03-11T09:11:45.907Z"
}
], - "pageInfo": {
- "isFirstPage": true,
- "isLastPage": true,
- "page": 1,
- "pageSize": 10,
- "totalRows": 1
}
}
Read the table meta data by the given table ID
tableId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Table ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
{- "id": "md_rsu68aqjsbyqtl",
- "source_id": "ds_g4ccx6e77h1dmi",
- "base_id": "p_xm3thidrblw4n7",
- "table_name": "nc_vm5q___Table1",
- "title": "Table1",
- "type": "table",
- "meta": null,
- "schema": null,
- "enabled": 1,
- "mm": 0,
- "tags": null,
- "pinned": null,
- "deleted": null,
- "order": 1,
- "created_at": "2023-03-02 17:04:06",
- "updated_at": "2023-03-02 17:04:08",
- "columns": [
- {
- "id": "cl_phvuuwjrzcdo0g",
- "source_id": "ds_g4ccx6e77h1dmi",
- "base_id": "p_xm3thidrblw4n7",
- "fk_model_id": "md_rsu68aqjsbyqtl",
- "title": "Id",
- "column_name": "id",
- "uidt": "ID",
- "dt": "int",
- "np": "10",
- "ns": "0",
- "clen": null,
- "cop": "1",
- "pk": 1,
- "pv": null,
- "rqd": 1,
- "un": 1,
- "ct": "int unsigned",
- "ai": 1,
- "unique": 0,
- "cdf": null,
- "cc": "",
- "csn": null,
- "dtx": "specificType",
- "dtxp": "",
- "dtxs": "0",
- "au": 0,
- "validate": null,
- "virtual": null,
- "deleted": null,
- "system": 0,
- "order": 1,
- "created_at": "2023-03-02 17:04:06",
- "updated_at": "2023-03-02 17:04:06",
- "meta": null
}, - {
- "id": "cl_c5knoi4xs4sfpt",
- "source_id": "ds_g4ccx6e77h1dmi",
- "base_id": "p_xm3thidrblw4n7",
- "fk_model_id": "md_rsu68aqjsbyqtl",
- "title": "Title",
- "column_name": "title",
- "uidt": "SingleLineText",
- "dt": "varchar",
- "np": null,
- "ns": null,
- "clen": "45",
- "cop": "2",
- "pk": 0,
- "pv": 1,
- "rqd": 0,
- "un": 0,
- "ct": "varchar(45)",
- "ai": 0,
- "unique": 0,
- "cdf": null,
- "cc": "",
- "csn": "utf8mb4",
- "dtx": "specificType",
- "dtxp": "45",
- "dtxs": null,
- "au": 0,
- "validate": null,
- "virtual": null,
- "deleted": null,
- "system": 0,
- "order": 2,
- "created_at": "2023-03-02 17:04:06",
- "updated_at": "2023-03-02 17:04:06",
- "meta": null
}, - {
- "id": "cl_jpl0qu4gj4rexq",
- "source_id": "ds_g4ccx6e77h1dmi",
- "base_id": "p_xm3thidrblw4n7",
- "fk_model_id": "md_rsu68aqjsbyqtl",
- "title": "CreatedAt",
- "column_name": "created_at",
- "uidt": "DateTime",
- "dt": "timestamp",
- "np": null,
- "ns": null,
- "clen": null,
- "cop": "3",
- "pk": 0,
- "pv": null,
- "rqd": 0,
- "un": 0,
- "ct": "timestamp",
- "ai": 0,
- "unique": 0,
- "cdf": "CURRENT_TIMESTAMP",
- "cc": "",
- "csn": null,
- "dtx": "specificType",
- "dtxp": "0",
- "dtxs": null,
- "au": 0,
- "validate": null,
- "virtual": null,
- "deleted": null,
- "system": 0,
- "order": 3,
- "created_at": "2023-03-02 17:04:06",
- "updated_at": "2023-03-02 17:04:06",
- "meta": null
}, - {
- "id": "cl_m4wkaqgqqjzoeh",
- "source_id": "ds_g4ccx6e77h1dmi",
- "base_id": "p_xm3thidrblw4n7",
- "fk_model_id": "md_rsu68aqjsbyqtl",
- "title": "UpdatedAt",
- "column_name": "updated_at",
- "uidt": "DateTime",
- "dt": "timestamp",
- "np": null,
- "ns": null,
- "clen": null,
- "cop": "4",
- "pk": 0,
- "pv": null,
- "rqd": 0,
- "un": 0,
- "ct": "timestamp",
- "ai": 0,
- "unique": 0,
- "cdf": "CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP",
- "cc": "",
- "csn": null,
- "dtx": "specificType",
- "dtxp": "0",
- "dtxs": null,
- "au": 0,
- "validate": null,
- "virtual": null,
- "deleted": null,
- "system": 0,
- "order": 4,
- "created_at": "2023-03-02 17:04:06",
- "updated_at": "2023-03-02 17:04:06",
- "meta": null
}
], - "views": [
- {
- "ptn": "nc_vm5q___Table1",
- "_ptn": "Table1",
- "ptype": "table",
- "tn": "Table1",
- "_tn": "Table1",
- "table_meta": null,
- "id": "vw_p2jcatxz4mvcfw",
- "source_id": "ds_g4ccx6e77h1dmi",
- "base_id": "p_xm3thidrblw4n7",
- "fk_model_id": "md_rsu68aqjsbyqtl",
- "title": "Table1",
- "type": 3,
- "is_default": 1,
- "show_system_fields": null,
- "lock_type": "collaborative",
- "uuid": null,
- "password": null,
- "show": 1,
- "order": 1,
- "created_at": "2023-03-02 17:04:06",
- "updated_at": "2023-03-02 17:04:06",
- "meta": { },
- "view": {
- "fk_view_id": "vw_p2jcatxz4mvcfw",
- "source_id": "ds_g4ccx6e77h1dmi",
- "base_id": "p_xm3thidrblw4n7",
- "uuid": null,
- "created_at": "2023-03-02 17:04:06",
- "updated_at": "2023-03-02 17:04:06",
- "meta": null,
- "row_height": null
}, - "disabled": {
- "owner": false,
- "creator": false,
- "viewer": false,
- "editor": false,
- "commenter": false,
- "guest": false
}
}
], - "columnsById": {
- "cl_phvuuwjrzcdo0g": {
- "id": "cl_phvuuwjrzcdo0g",
- "source_id": "ds_g4ccx6e77h1dmi",
- "base_id": "p_xm3thidrblw4n7",
- "fk_model_id": "md_rsu68aqjsbyqtl",
- "title": "Id",
- "column_name": "id",
- "uidt": "ID",
- "dt": "int",
- "np": "10",
- "ns": "0",
- "clen": null,
- "cop": "1",
- "pk": 1,
- "pv": null,
- "rqd": 1,
- "un": 1,
- "ct": "int unsigned",
- "ai": 1,
- "unique": 0,
- "cdf": null,
- "cc": "",
- "csn": null,
- "dtx": "specificType",
- "dtxp": "",
- "dtxs": "0",
- "au": 0,
- "validate": null,
- "virtual": null,
- "deleted": null,
- "system": 0,
- "order": 1,
- "created_at": "2023-03-02 17:04:06",
- "updated_at": "2023-03-02 17:04:06",
- "meta": null
}, - "cl_c5knoi4xs4sfpt": {
- "id": "cl_c5knoi4xs4sfpt",
- "source_id": "ds_g4ccx6e77h1dmi",
- "base_id": "p_xm3thidrblw4n7",
- "fk_model_id": "md_rsu68aqjsbyqtl",
- "title": "Title",
- "column_name": "title",
- "uidt": "SingleLineText",
- "dt": "varchar",
- "np": null,
- "ns": null,
- "clen": "45",
- "cop": "2",
- "pk": 0,
- "pv": 1,
- "rqd": 0,
- "un": 0,
- "ct": "varchar(45)",
- "ai": 0,
- "unique": 0,
- "cdf": null,
- "cc": "",
- "csn": "utf8mb4",
- "dtx": "specificType",
- "dtxp": "45",
- "dtxs": null,
- "au": 0,
- "validate": null,
- "virtual": null,
- "deleted": null,
- "system": 0,
- "order": 2,
- "created_at": "2023-03-02 17:04:06",
- "updated_at": "2023-03-02 17:04:06",
- "meta": null
}, - "cl_jpl0qu4gj4rexq": {
- "id": "cl_jpl0qu4gj4rexq",
- "source_id": "ds_g4ccx6e77h1dmi",
- "base_id": "p_xm3thidrblw4n7",
- "fk_model_id": "md_rsu68aqjsbyqtl",
- "title": "CreatedAt",
- "column_name": "created_at",
- "uidt": "DateTime",
- "dt": "timestamp",
- "np": null,
- "ns": null,
- "clen": null,
- "cop": "3",
- "pk": 0,
- "pv": null,
- "rqd": 0,
- "un": 0,
- "ct": "timestamp",
- "ai": 0,
- "unique": 0,
- "cdf": "CURRENT_TIMESTAMP",
- "cc": "",
- "csn": null,
- "dtx": "specificType",
- "dtxp": "0",
- "dtxs": null,
- "au": 0,
- "validate": null,
- "virtual": null,
- "deleted": null,
- "system": 0,
- "order": 3,
- "created_at": "2023-03-02 17:04:06",
- "updated_at": "2023-03-02 17:04:06",
- "meta": null
}, - "cl_m4wkaqgqqjzoeh": {
- "id": "cl_m4wkaqgqqjzoeh",
- "source_id": "ds_g4ccx6e77h1dmi",
- "base_id": "p_xm3thidrblw4n7",
- "fk_model_id": "md_rsu68aqjsbyqtl",
- "title": "UpdatedAt",
- "column_name": "updated_at",
- "uidt": "DateTime",
- "dt": "timestamp",
- "np": null,
- "ns": null,
- "clen": null,
- "cop": "4",
- "pk": 0,
- "pv": null,
- "rqd": 0,
- "un": 0,
- "ct": "timestamp",
- "ai": 0,
- "unique": 0,
- "cdf": "CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP",
- "cc": "",
- "csn": null,
- "dtx": "specificType",
- "dtxp": "0",
- "dtxs": null,
- "au": 0,
- "validate": null,
- "virtual": null,
- "deleted": null,
- "system": 0,
- "order": 4,
- "created_at": "2023-03-02 17:04:06",
- "updated_at": "2023-03-02 17:04:06",
- "meta": null
}
}
}
Update the table meta data by the given table ID
tableId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Table ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
table_name | string Table name |
title | string Table title |
base_id | string Base ID |
Meta Model (null) or Meta Model (object) or Meta Model (string) (Meta) |
{- "table_name": "users",
- "title": "Users",
- "base_id": "p_124hhlkbeasewh",
- "meta": null
}
{- "msg": "The table has been updated successfully"
}
Delete the table meta data by the given table ID
tableId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Table ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
true
Duplicate a table
baseId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Base ID |
tableId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Table ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
object |
{- "excludeData": true,
- "excludeViews": true
}
{- "name": "string",
- "id": "string"
}
Update the order of the given Table
tableId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Table ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
order | number |
{- "order": 0
}
true
Create a new column in a given Table
tableId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Table ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
formula | string Formula with column ID replaced |
formula_raw | string Original Formula inputted in UI |
title required | string [ 1 .. 255 ] characters Formula Title |
uidt | string Value: "Formula" UI Data Type |
column_name | string |
object Column order in a specific view |
{- "ai": 0,
- "au": 0,
- "source_id": "ds_krsappzu9f8vmo",
- "cc": "",
- "cdf": null,
- "clen": "45",
- "column_name": "title",
- "cop": "2",
- "csn": "utf8mb4",
- "ct": "varchar(45)",
- "deleted": null,
- "dt": "varchar",
- "dtx": "specificType",
- "dtxp": "45",
- "dtxs": null,
- "fk_model_id": "md_yvwvbt2i78rgcm",
- "id": "cl_0j9gv0oi8vjy46",
- "meta": null,
- "np": null,
- "ns": null,
- "order": 2,
- "pk": 0,
- "base_id": "p_01clqvzik3izk6",
- "pv": 1,
- "rqd": 0,
- "system": 0,
- "title": "Title",
- "uidt": "SingleLineText",
- "un": 0,
- "unique": 0,
- "validate": null,
- "virtual": null
}
{- "msg": "BadRequest [Error]: <ERROR MESSAGE>"
}
Update the existing column by the given column ID
columnId required | string |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
formula | string Formula with column ID replaced |
formula_raw | string Original Formula inputted in UI |
title required | string [ 1 .. 255 ] characters Formula Title |
uidt | string Value: "Formula" UI Data Type |
column_name | string |
object Column order in a specific view |
{- "formula": "CONCAT(\"FOO\", {{cl_c5knoi4xs4sfpt}})",
- "formula_raw": "CONCAT(\"FOO\", {Title})",
- "title": "Formula",
- "uidt": "Formula"
}
{- "ai": 0,
- "au": 0,
- "source_id": "ds_krsappzu9f8vmo",
- "cc": "",
- "cdf": null,
- "clen": "45",
- "column_name": "title",
- "cop": "2",
- "created_at": "2023-03-02 13:14:16",
- "csn": "utf8mb4",
- "ct": "varchar(45)",
- "deleted": null,
- "dt": "varchar",
- "dtx": "specificType",
- "dtxp": "45",
- "dtxs": null,
- "fk_model_id": "md_yvwvbt2i78rgcm",
- "id": "cl_0j9gv0oi8vjy46",
- "meta": null,
- "np": null,
- "ns": null,
- "order": 2,
- "pk": 0,
- "base_id": "p_01clqvzik3izk6",
- "pv": 1,
- "rqd": 0,
- "system": 0,
- "title": "Title",
- "uidt": "SingleLineText",
- "un": 0,
- "unique": 0,
- "updated_at": "2023-03-02 13:14:16",
- "validate": null,
- "virtual": null
}
Delete the existing column by the given column ID
columnId required | string |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
{- "msg": "BadRequest [Error]: <ERROR MESSAGE>"
}
Get the existing column by the given column ID
columnId required | string |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
{- "msg": "BadRequest [Error]: <ERROR MESSAGE>"
}
Set a primary value on a given column
columnId required | string |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
true
Get columns hash for table
tableId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Table ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
{- "hash": "string"
}
Bulk create-update-delete columns
tableId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Table ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
hash | string Columns hash |
ops | Array of any |
{- "hash": "string",
- "ops": [
- null
]
}
{- "failedOps": [
- null
]
}
Get the filter data in a given View
viewId required | string Example: vw_wtdg2meyig5l4q Unique View ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
{- "list": [
- {
- "source_id": "ds_g4ccx6e77h1dmi",
- "comparison_op": "eq",
- "comparison_sub_op": null,
- "created_at": "2023-03-02 18:18:05",
- "fk_column_id": "cl_d7ah9n2qfupgys",
- "fk_hook_id": null,
- "fk_parent_id": null,
- "fk_view_id": "vw_b739e29vqmrxnf",
- "id": "fi_xn647tpmdq8fu8",
- "is_group": null,
- "logical_op": "and",
- "order": 1,
- "base_id": "p_xm3thidrblw4n7",
- "updated_at": "2023-03-02 18:18:05",
- "value": "foo"
}
], - "pageInfo": {
- "isFirstPage": true,
- "isLastPage": true,
- "page": 1,
- "pageSize": 10,
- "totalRows": 1
}
}
Update the filter data in a given View
viewId required | string Example: vw_wtdg2meyig5l4q Unique View ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
string or null Comparison Operator | |
string or null Comparison Sub-Operator | |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) | |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) | |
Bool Model (integer) or Bool Model (boolean) or Bool Model (null) (Bool) | |
logical_op | string Enum: "and" "not" "or" Logical Operator |
value | any The filter value. Can be NULL for some operators. |
{- "comparison_op": "eq",
- "comparison_sub_op": null,
- "fk_column_id": "cl_d7ah9n2qfupgys",
- "is_group": false,
- "logical_op": "and",
- "value": "foo"
}
{- "source_id": "ds_g4ccx6e77h1dmi",
- "comparison_op": "eq",
- "comparison_sub_op": null,
- "created_at": "2023-03-02 18:18:05",
- "fk_column_id": "cl_d7ah9n2qfupgys",
- "fk_hook_id": null,
- "fk_parent_id": null,
- "fk_view_id": "vw_b739e29vqmrxnf",
- "id": "fi_xn647tpmdq8fu8",
- "is_group": null,
- "logical_op": "and",
- "order": 1,
- "base_id": "p_xm3thidrblw4n7",
- "updated_at": "2023-03-02 18:18:05",
- "value": "foo"
}
Get the filter data with a given Filter ID
filterId required | string (Id) [ 0 .. 20 ] characters fi_pgfuo11uhn2xeo Examples: string Unique Filter ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
{- "source_id": "ds_g4ccx6e77h1dmi",
- "comparison_op": "eq",
- "comparison_sub_op": null,
- "created_at": "2023-03-02 18:18:05",
- "fk_column_id": "cl_d7ah9n2qfupgys",
- "fk_hook_id": null,
- "fk_parent_id": null,
- "fk_view_id": "vw_b739e29vqmrxnf",
- "id": "fi_xn647tpmdq8fu8",
- "is_group": null,
- "logical_op": "and",
- "order": 1,
- "base_id": "p_xm3thidrblw4n7",
- "updated_at": "2023-03-02 18:18:05",
- "value": "foo"
}
Update the filter data with a given Filter ID
filterId required | string (Id) [ 0 .. 20 ] characters fi_pgfuo11uhn2xeo Examples: string Unique Filter ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
string or null Comparison Operator | |
string or null Comparison Sub-Operator | |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) | |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) | |
Bool Model (integer) or Bool Model (boolean) or Bool Model (null) (Bool) | |
logical_op | string Enum: "and" "not" "or" Logical Operator |
value | any The filter value. Can be NULL for some operators. |
{- "comparison_op": "eq",
- "comparison_sub_op": null,
- "fk_column_id": "cl_d7ah9n2qfupgys",
- "is_group": false,
- "logical_op": "and",
- "value": "foo"
}
1
Delete the filter data with a given Filter ID
filterId required | string (Id) [ 0 .. 20 ] characters fi_pgfuo11uhn2xeo Examples: string Unique Filter ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
true
Get Filter Group Children of a given group ID
filterGroupId required | string (Id) [ 0 .. 20 ] characters Examples: string Filter Group ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
{- "list": [
- {
- "source_id": "ds_g4ccx6e77h1dmi",
- "comparison_op": "eq",
- "comparison_sub_op": null,
- "created_at": "2023-03-02 18:18:05",
- "fk_column_id": "cl_d7ah9n2qfupgys",
- "fk_hook_id": null,
- "fk_parent_id": null,
- "fk_view_id": "vw_b739e29vqmrxnf",
- "id": "fi_xn647tpmdq8fu8",
- "is_group": null,
- "logical_op": "and",
- "order": 1,
- "base_id": "p_xm3thidrblw4n7",
- "updated_at": "2023-03-02 18:18:05",
- "value": "foo"
}
], - "pageInfo": {
- "isFirstPage": true,
- "isLastPage": true,
- "page": 1,
- "pageSize": 10,
- "totalRows": 1
}
}
List all the sort data in a given View
viewId required | string Example: vw_wtdg2meyig5l4q Unique View ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
{- "list": [
- {
- "id": "so_xd4t51uv60ghzl",
- "fk_column_id": "cl_l11b769pe2j1ce",
- "fk_model_id": "md_ehn5izr99m7d45",
- "source_id": "ds_3l9qx8xqksenrl",
- "direction": "desc",
- "order": 1,
- "base_id": "p_9sx43moxhqtjm3"
}
], - "pageInfo": {
- "isFirstPage": true,
- "isLastPage": true,
- "page": 1,
- "pageSize": 10,
- "totalRows": 1
}
}
Update the sort data in a given View
viewId required | string Example: vw_wtdg2meyig5l4q Unique View ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
fk_column_id | string (Id) [ 0 .. 20 ] characters Foreign Key to Column |
direction | string Enum: "asc" "desc" Sort direction |
push_to_top | boolean Push the sort to the top of the list |
{- "direction": "asc",
- "fk_column_id": "cl_l11b769pe2j1ce",
- "push_to_top": true
}
1
Get the sort data by Sort ID
sortId required | string Example: so_xd4t51uv60ghzl Unique Sort ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
{- "id": "so_xd4t51uv60ghzl",
- "fk_column_id": "cl_l11b769pe2j1ce",
- "fk_model_id": "md_ehn5izr99m7d45",
- "source_id": "ds_3l9qx8xqksenrl",
- "direction": "desc",
- "order": 1,
- "base_id": "p_9sx43moxhqtjm3"
}
Update the sort data by Sort ID
sortId required | string Example: so_xd4t51uv60ghzl Unique Sort ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
fk_column_id | string (Id) [ 0 .. 20 ] characters Foreign Key to Column |
direction | string Enum: "asc" "desc" Sort direction |
{- "direction": "asc",
- "fk_column_id": "cl_l11b769pe2j1ce"
}
1
Delete the sort data by Sort ID
sortId required | string Example: so_xd4t51uv60ghzl Unique Sort ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
true
List all hook records in the given Table
tableId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Table ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
{- "list": [
- {
- "active": 0,
- "async": 0,
- "description": "This is my hook description",
- "env": "all",
- "event": "after",
- "fk_model_id": "md_rsu68aqjsbyqtl",
- "id": "string",
- "notification": "{\"type\":\"URL\",\"payload\":{\"method\":\"POST\",\"body\":\"{{ json data }}\",\"headers\":[{}],\"parameters\":[{}],\"auth\":\"\",\"path\":\"http://example.com\"}}",
- "null": null,
- "operation": "insert",
- "retries": 10,
- "retry_interval": 60000,
- "timeout": 60000,
- "title": "My Webhook"
}
], - "pageInfo": {
- "isFirstPage": true,
- "isLastPage": true,
- "page": 1,
- "pageSize": 10,
- "totalRows": 1
}
}
Create a hook in the given table
tableId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Table ID |
Bool Model (integer) or Bool Model (boolean) or Bool Model (null) (Bool) | |
Bool Model (integer) or Bool Model (boolean) or Bool Model (null) (Bool) | |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) | |
env | string Environment for the hook |
event required | string Enum: "after" "before" Event Type for the operation |
fk_model_id | string Foreign Key to Model |
id | string (Id) [ 0 .. 20 ] characters Unique ID |
notification required | object or string Hook Notification including info such as type, payload, method, body, and etc |
operation required | string Enum: "insert" "update" "delete" "bulkInsert" "bulkUpdate" "bulkDelete" Hook Operation |
retries | number Retry Count |
retry_interval | number Retry Interval |
timeout | number Timeout |
title required | string Hook Title |
type | string or null Hook Type |
Bool Model (integer) or Bool Model (boolean) or Bool Model (null) (Bool) |
{- "active": 0,
- "async": 0,
- "description": "This is my hook description",
- "env": "all",
- "event": "after",
- "fk_model_id": "md_rsu68aqjsbyqtl",
- "id": "string",
- "notification": "{\"type\":\"URL\",\"payload\":{\"method\":\"POST\",\"body\":\"{{ json data }}\",\"headers\":[{}],\"parameters\":[{}],\"auth\":\"\",\"path\":\"http://example.com\"}}",
- "null": null,
- "operation": "insert",
- "retries": 10,
- "retry_interval": 60000,
- "timeout": 60000,
- "title": "My Webhook",
- "condition": false
}
{- "active": 0,
- "async": 0,
- "description": "This is my hook description",
- "env": "all",
- "event": "after",
- "fk_model_id": "md_rsu68aqjsbyqtl",
- "id": "string",
- "notification": "{\"type\":\"URL\",\"payload\":{\"method\":\"POST\",\"body\":\"{{ json data }}\",\"headers\":[{}],\"parameters\":[{}],\"auth\":\"\",\"path\":\"http://example.com\"}}",
- "null": null,
- "operation": "insert",
- "retries": 10,
- "retry_interval": 60000,
- "timeout": 60000,
- "title": "My Webhook"
}
Test the hook in the given Table
tableId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Table ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
required | object (HookReq) Model for Hook |
payload required | any Payload to be sent |
{- "hook": {
- "active": 0,
- "async": 0,
- "description": "This is my hook description",
- "env": "all",
- "event": "after",
- "fk_model_id": "md_rsu68aqjsbyqtl",
- "id": "string",
- "notification": "{\"type\":\"URL\",\"payload\":{\"method\":\"POST\",\"body\":\"{{ json data }}\",\"headers\":[{}],\"parameters\":[{}],\"auth\":\"\",\"path\":\"http://example.com\"}}",
- "null": null,
- "operation": "insert",
- "retries": 10,
- "retry_interval": 60000,
- "timeout": 60000,
- "title": "My Webhook"
}, - "payload": {
- "data": {
- "Id": 1,
- "Title": "Sample Text",
- "CreatedAt": "2023-03-03T10:03:06.484Z",
- "UpdatedAt": "2023-03-03T10:03:06.484Z",
- "attachment": [
], - "f": "Sample Output"
}
}
}
{- "msg": "The hook has been tested successfully"
}
Get the sample hook payload
tableId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Table ID |
operation required | string Enum: "insert" "update" "delete" "bulkInsert" "bulkUpdate" "bulkDelete" Hook Operation |
version required | string Enum: "v1" "v2" Hook Version |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
{- "data": {
- "Id": 1,
- "Title": "Sample Text",
- "CreatedAt": "2023-03-13T04:59:49.363Z",
- "UpdatedAt": "2023-03-13T04:59:49.363Z"
}
}
Update the exsiting hook by its ID
hookId required | string Example: hk_0063k4o1frnxbr Unique Hook ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
Bool Model (integer) or Bool Model (boolean) or Bool Model (null) (Bool) | |
Bool Model (integer) or Bool Model (boolean) or Bool Model (null) (Bool) | |
description | string Hook Description |
env | string Environment for the hook |
event | string Enum: "after" "before" Event Type for the operation |
fk_model_id | string Foreign Key to Model |
id | string (Id) [ 0 .. 20 ] characters Unique ID |
notification | object or string Hook Notification including info such as type, payload, method, body, and etc |
operation | string Enum: "insert" "update" "delete" "bulkInsert" "bulkUpdate" "bulkDelete" Hook Operation |
retries | number Retry Count |
retry_interval | number Retry Interval |
timeout | number Timeout |
title | string Hook Title |
type | string Hook Type |
version | string Enum: "v1" "v2" Hook Version |
{- "active": 0,
- "async": 0,
- "description": "This is my hook description",
- "env": "all",
- "event": "after",
- "fk_model_id": "md_rsu68aqjsbyqtl",
- "id": "string",
- "notification": "{\"type\":\"URL\",\"payload\":{\"method\":\"POST\",\"body\":\"{{ json data }}\",\"headers\":[{}],\"parameters\":[{}],\"auth\":\"\",\"path\":\"http://example.com\"}}",
- "null": null,
- "operation": "insert",
- "retries": 10,
- "retry_interval": 60000,
- "timeout": 60000,
- "title": "My Webhook"
}
{- "active": 0,
- "async": 0,
- "description": "This is my hook description",
- "env": "all",
- "event": "after",
- "fk_model_id": "md_rsu68aqjsbyqtl",
- "id": "string",
- "notification": "{\"type\":\"URL\",\"payload\":{\"method\":\"POST\",\"body\":\"{{ json data }}\",\"headers\":[{}],\"parameters\":[{}],\"auth\":\"\",\"path\":\"http://example.com\"}}",
- "null": null,
- "operation": "insert",
- "retries": 10,
- "retry_interval": 60000,
- "timeout": 60000,
- "title": "My Webhook"
}
Delete the exsiting hook by its ID
hookId required | string Example: hk_0063k4o1frnxbr Unique Hook ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
true
Get the filter data in a given Hook
hookId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Hook ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
{- "list": [
- {
- "source_id": "ds_g4ccx6e77h1dmi",
- "comparison_op": "eq",
- "comparison_sub_op": null,
- "created_at": "2023-03-02 18:18:05",
- "fk_column_id": "cl_d7ah9n2qfupgys",
- "fk_hook_id": null,
- "fk_parent_id": null,
- "fk_view_id": "vw_b739e29vqmrxnf",
- "id": "fi_xn647tpmdq8fu8",
- "is_group": null,
- "logical_op": "and",
- "order": 1,
- "base_id": "p_xm3thidrblw4n7",
- "updated_at": "2023-03-02 18:18:05",
- "value": "foo"
}
], - "pageInfo": {
- "isFirstPage": true,
- "isLastPage": true,
- "page": 1,
- "pageSize": 10,
- "totalRows": 1
}
}
Create filter(s) in a given Hook
hookId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Hook ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
string or null Comparison Operator | |
string or null Comparison Sub-Operator | |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) | |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) | |
Bool Model (integer) or Bool Model (boolean) or Bool Model (null) (Bool) | |
logical_op | string Enum: "and" "not" "or" Logical Operator |
value | any The filter value. Can be NULL for some operators. |
{- "comparison_op": "eq",
- "comparison_sub_op": null,
- "fk_column_id": "cl_d7ah9n2qfupgys",
- "is_group": false,
- "logical_op": "and",
- "value": "foo"
}
{- "source_id": "ds_g4ccx6e77h1dmi",
- "comparison_op": "eq",
- "comparison_sub_op": null,
- "created_at": "2023-03-02 18:18:05",
- "fk_column_id": "cl_d7ah9n2qfupgys",
- "fk_hook_id": null,
- "fk_parent_id": null,
- "fk_view_id": "vw_b739e29vqmrxnf",
- "id": "fi_xn647tpmdq8fu8",
- "is_group": null,
- "logical_op": "and",
- "order": 1,
- "base_id": "p_xm3thidrblw4n7",
- "updated_at": "2023-03-02 18:18:05",
- "value": "foo"
}
List all views in a given Table.
tableId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Table ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
{- "list": [
- {
- "alias": "string",
- "column": [
- {
- "alias": "string",
- "auto_increment": true,
- "auto_update_timestamp": true,
- "source_id": "string",
- "character_maximum_length": "string",
- "character_set_name": "string",
- "colOptions": {
- "deleted": "string",
- "dr": "string",
- "fk_child_column_id": "string",
- "fk_column_id": "string",
- "fk_index_name": "string",
- "fk_mm_child_column_id": "string",
- "fk_mm_model_id": "string",
- "fk_mm_parent_column_id": "string",
- "fk_parent_column_id": "string",
- "id": "string",
- "order": "string",
- "type": "string",
- "ur": "string",
- "virtual": true
}, - "column_comment": "string",
- "column_default": "string",
- "column_ordinal_position": "string",
- "column_type": "string",
- "data_type": "string",
- "data_type_x": "string",
- "data_type_x_precision": "string",
- "data_type_x_scale": "string",
- "deleted": true,
- "fk_model_id": "string",
- "id": "string",
- "numeric_precision": "string",
- "numeric_scale": "string",
- "order": 0,
- "primary_key": true,
- "primary_value": true,
- "rqd": "string",
- "title": "string",
- "ui_data_type": "string",
- "un": "string",
- "unique": true,
- "visible": true
}
], - "columnByIds": { },
- "deleted": true,
- "enabled": true,
- "fk_base_id": "string",
- "fk_project_id": "string",
- "id": "string",
- "order": 0,
- "parent_id": "string",
- "pinned": true,
- "show_as": "string",
- "tags": "string",
- "title": "string",
- "type": "string"
}
], - "pageInfo": {
- "isFirstPage": true,
- "isLastPage": true,
- "page": 1,
- "pageSize": 10,
- "totalRows": 1
}
}
Update the view with the given view Id.
viewId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique View ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
title | string <= 255 characters View Title |
uuid | string <= 255 characters View UUID. Used in Shared View. |
password | string <= 255 characters View Password. Used in Shared View. |
lock_type | string Enum: "collaborative" "locked" "personal" Lock type of View. |
Meta Model (null) or Meta Model (object) or Meta Model (string) (Meta) | |
order | number >= 0 The order of the list of views. |
Bool Model (integer) or Bool Model (boolean) or Bool Model (null) (Bool) |
{- "title": "Grid View 1",
- "uuid": "e2457bbf-e29c-4fec-866e-fe3b01dba57f",
- "password": "password123",
- "lock_type": "collaborative",
- "meta": "{\"allowCSVDownload\":true}",
- "order": 1,
- "show_system_fields": 0
}
{- "source_id": "ds_g4ccx6e77h1dmi",
- "created_at": "2023-03-02 17:46:31",
- "fk_model_id": "md_mhs9z4r2ak98x0",
- "id": "vw_lg052cnc1c26kf",
- "is_default": 1,
- "lock_type": "collaborative",
- "meta": "{\"allowCSVDownload\":true}",
- "order": 1,
- "password": "password123",
- "base_id": "p_xm3thidrblw4n7",
- "show": 1,
- "show_system_fields": null,
- "title": "Grid View 1",
- "type": 3,
- "updated_at": "2023-03-02 17:46:31",
- "uuid": null
}
Delete the view with the given view Id.
viewId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique View ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
true
Show All Columns in a given View
viewId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique View ID |
ignoreIds | Array of arrays |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
true
Hide All Columns in a given View
viewId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique View ID |
ignoreIds | Array of arrays |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
true
Create a new grid view in a given Table
tableId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Table ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
title required | string View Title |
type | number View Type |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) | |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) | |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) |
{- "title": "My Grid View",
- "type": 3,
- "copy_from_id": null,
- "fk_grp_col_id": null,
- "fk_geo_data_col_id": null
}
{- "id": "vw_o50jiw9v2txktv",
- "source_id": "ds_a95vextjl510z7",
- "base_id": "p_slkm6i3v31q4bc",
- "fk_model_id": "md_8hr3xndx8umuce",
- "title": "Grid-1",
- "type": 3,
- "is_default": null,
- "show_system_fields": null,
- "lock_type": "collaborative",
- "uuid": null,
- "password": null,
- "show": true,
- "order": 2,
- "created_at": "2023-03-13T07:29:16.610Z",
- "updated_at": "2023-03-13T07:29:16.610Z",
- "meta": { }
}
Create a new form view in a given Table
tableId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Table ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
title required | string View Title |
type | number View Type |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) | |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) | |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) |
{- "title": "My Form View",
- "type": 1,
- "copy_from_id": null,
- "fk_grp_col_id": null,
- "fk_geo_data_col_id": null
}
{- "id": "vw_a830n4bmwk8wlp",
- "source_id": "ds_a95vextjl510z7",
- "base_id": "p_slkm6i3v31q4bc",
- "fk_model_id": "md_8hr3xndx8umuce",
- "title": "Form-1",
- "type": 1,
- "is_default": null,
- "show_system_fields": null,
- "lock_type": "collaborative",
- "uuid": null,
- "password": null,
- "show": true,
- "order": 4,
- "created_at": "2023-03-13T07:29:19.957Z",
- "updated_at": "2023-03-13T07:29:19.957Z",
- "meta": { }
}
Update the form data by Form ID
formViewId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Form View ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) | |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) | |
heading | string <= 255 characters The heading of the form |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) | |
Meta Model (null) or Meta Model (object) or Meta Model (string) (Meta) | |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) | |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) | |
Bool Model (integer) or Bool Model (boolean) or Bool Model (null) (Bool) | |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) | |
Bool Model (integer) or Bool Model (boolean) or Bool Model (null) (Bool) | |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) |
{- "banner_image_url": null,
- "email": "user@example.com",
- "heading": "My Form",
- "lock_type": "collaborative",
- "logo_url": null,
- "meta": null,
- "redirect_after_secs": null,
- "redirect_url": null,
- "show_blank_form": 0,
- "subheading": "My Form Subheading",
- "submit_another_form": 0,
- "success_msg": "Thank you for the submission.",
- "title": "Form View 1"
}
1
Get the form data by Form ID
formViewId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Form View ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
{- "source_id": "ds_g4ccx6e77h1dmi",
- "banner_image_url": null,
- "columns": [
- {
- "id": "fvc_ugj9zo5bzocxtl",
- "source_id": "ds_g4ccx6e77h1dmi",
- "base_id": "p_xm3thidrblw4n7",
- "fk_view_id": "vw_kdf5cr7qmhksek",
- "fk_column_id": "cl_phvuuwjrzcdo0g",
- "uuid": null,
- "label": null,
- "help": null,
- "description": null,
- "required": null,
- "show": 0,
- "order": 1,
- "created_at": "2023-03-04 16:40:47",
- "updated_at": "2023-03-04 16:40:47",
- "meta": { }
}
], - "email": "user@example.com",
- "fk_model_id": "md_rsu68aqjsbyqtl",
- "heading": "My Form",
- "lock_type": "collaborative",
- "logo_url": null,
- "meta": null,
- "redirect_after_secs": null,
- "redirect_url": null,
- "show_blank_form": 0,
- "subheading": "My Form Subheading",
- "submit_another_form": 0,
- "success_msg": "Thank you for the submission.",
- "title": "Form View 1"
}
Update the form column(s) by Form View Column ID
formViewColumnId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Form View Column ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) | |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) | |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) | |
Meta Model (null) or Meta Model (object) or Meta Model (string) (Meta) | |
order | number The order among all the columns in the form |
Bool Model (integer) or Bool Model (boolean) or Bool Model (null) (Bool) | |
Bool Model (integer) or Bool Model (boolean) or Bool Model (null) (Bool) |
{- "description": null,
- "help": "This is a help text",
- "label": "Form Label",
- "meta": null,
- "order": 1,
- "required": 0,
- "show": 0
}
{- "description": null,
- "help": "This is a help text",
- "label": "Form Label",
- "meta": null,
- "order": 1,
- "required": 0,
- "show": 0
}
Update Grid View
viewId required | string Example: vw_wtdg2meyig5l4q Unique View ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
row_height | number Row Height |
Meta Model (null) or Meta Model (object) or Meta Model (string) (Meta) |
{- "row_height": 1,
- "meta": null
}
1
List all columns in the given Grid
gridId required | string Example: vw_q6k13mmygdi3yz Grid View ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
[- {
- "id": "nc_c8jz4kxe6xvh11",
- "fk_view_id": "vw_p2jcatxz4mvcfw",
- "fk_column_id": "cl_c5knoi4xs4sfpt",
- "base_id": "p_xm3thidrblw4n7",
- "source_id": "ds_g4ccx6e77h1dmi",
- "show": 0,
- "order": 1,
- "width": "200px",
- "help": null
}
]
Update grid column(s) in the given Grid
columnId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Column ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
fk_column_id | string (Id) [ 0 .. 20 ] characters Foreign Key to Column |
help | string <= 255 characters |
label | string <= 255 characters The label of the column |
width | string <= 255 characters ^[0-9]+(px|%)$ The width of the column |
Bool Model (integer) or Bool Model (boolean) or Bool Model (null) (Bool) | |
group_by_order | number Group By Order |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) |
{- "fk_column_id": "cl_c5knoi4xs4sfpt",
- "label": "My Column",
- "width": "200px"
}
1
tableId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Table ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
title required | string View Title |
type | number View Type |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) | |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) | |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) |
{- "title": "My Gallery View",
- "type": 2,
- "copy_from_id": null,
- "fk_grp_col_id": null,
- "fk_geo_data_col_id": null
}
{- "id": "vw_qp94qfnvffgk5f",
- "source_id": "ds_a95vextjl510z7",
- "base_id": "p_slkm6i3v31q4bc",
- "fk_model_id": "md_8hr3xndx8umuce",
- "title": "Gallery-1",
- "type": 2,
- "is_default": null,
- "show_system_fields": null,
- "lock_type": "collaborative",
- "uuid": null,
- "password": null,
- "show": true,
- "order": 3,
- "created_at": "2023-03-13T07:29:18.707Z",
- "updated_at": "2023-03-13T07:29:18.707Z",
- "meta": { }
}
Update the Gallery View data with Gallery ID
galleryViewId required | string Example: vw_1eq2wk2xe3a9j5 Unique Gallery View ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) | |
Meta Model (null) or Meta Model (object) or Meta Model (string) (Meta) |
{- "fk_cover_image_col_id": "cl_ib8l4j1kiu1efx",
- "meta": null
}
1
Get the Gallery View data with Gallery ID
galleryViewId required | string Example: vw_1eq2wk2xe3a9j5 Unique Gallery View ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
{- "alias": "string",
- "columns": [
- {
- "fk_col_id": "string",
- "fk_gallery_id": "string",
- "help": "string",
- "id": "string",
- "label": "string"
}
], - "cover_image": "string",
- "cover_image_idx": 0,
- "deleted": true,
- "fk_cover_image_col_id": "string",
- "fk_model_id": "string",
- "fk_view_id": "string",
- "lock_type": "collaborative",
- "next_enabled": true,
- "order": 0,
- "prev_enabled": true,
- "restrict_number": "string",
- "restrict_size": "string",
- "restrict_types": "string",
- "title": "string"
}
Create a new Kanban View
tableId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Table ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
title required | string View Title |
type | number View Type |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) | |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) | |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) |
{- "title": "My Kanban View",
- "type": 4,
- "copy_from_id": null,
- "fk_grp_col_id": "cl_g0a89q9xdry3lu",
- "fk_geo_data_col_id": null
}
{- "id": "vw_569sqsrp2vuff4",
- "source_id": "ds_a95vextjl510z7",
- "base_id": "p_slkm6i3v31q4bc",
- "fk_model_id": "md_8hr3xndx8umuce",
- "title": "Kanban-1",
- "type": 4,
- "is_default": null,
- "show_system_fields": null,
- "lock_type": "collaborative",
- "uuid": null,
- "password": null,
- "show": true,
- "order": 5,
- "created_at": "2023-03-13T07:29:21.387Z",
- "updated_at": "2023-03-13T07:29:21.387Z",
- "meta": { }
}
Update the Kanban View data with Kanban ID
kanbanViewId required | string Example: vw_1eq2wk2xe3a9j5 Unique Kanban View ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) | |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) | |
Meta Model (null) or Meta Model (object) or Meta Model (string) (Meta) |
{- "fk_grp_col_id": "cl_g0a89q9xdry3lu",
- "fk_cover_image_col_id": "cl_ib8l4j1kiu1efx",
- "meta": {
- "cl_g0a89q9xdry3lu": [
- {
- "id": "uncategorized",
- "title": null,
- "order": 0,
- "color": "#c2f5e8",
- "collapsed": false
}, - {
- "id": "sl_ihyva6jx6dg0fc",
- "fk_column_id": "cl_g0a89q9xdry3lu",
- "title": "a",
- "color": "#cfdffe",
- "order": 1,
- "collapsed": false
}, - {
- "id": "sl_gqdm5v6t8aetoa",
- "fk_column_id": "cl_g0a89q9xdry3lu",
- "title": "b",
- "color": "#d0f1fd",
- "order": 2,
- "collapsed": false
}, - {
- "id": "sl_eipnl0kn7a9d3c",
- "fk_column_id": "cl_g0a89q9xdry3lu",
- "title": "cc",
- "color": "#c2f5e8",
- "order": 3,
- "collapsed": false
}, - {
- "id": "sl_dei8p2jq0cnlv0",
- "fk_column_id": "cl_g0a89q9xdry3lu",
- "title": "d",
- "color": "#ffdaf6",
- "order": 4,
- "collapsed": false
}
]
}
}
1
Get the Kanban View data by Kanban ID
kanbanViewId required | string Example: vw_1eq2wk2xe3a9j5 Unique Kanban View ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
{- "id": "vw_wqs4zheuo5lgdy",
- "fk_grp_col_id": "cl_3704cxcbqt7sj7",
- "fk_view_id": "vw_wqs4zheuo5lgdy",
- "fk_cover_image_col_id": null,
- "columns": [
- {
- "id": "kvc_2skkg5mi1eb37f",
- "fk_column_id": "cl_hzos4ghyncqi4k",
- "fk_view_id": "vw_wqs4zheuo5lgdy",
- "source_id": "ds_hd4ojj0xpquaam",
- "base_id": "p_kzfl5lb0t3tcok",
- "title": "string",
- "show": 0,
- "order": "1"
}
], - "meta": null,
- "title": "My Kanban"
}
Create a new Map View
tableId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Table ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
title required | string View Title |
type | number View Type |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) | |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) | |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) |
{- "title": "My Map View",
- "type": 5,
- "copy_from_id": null,
- "fk_grp_col_id": null,
- "fk_geo_data_col_id": "cl_uu1meolj00tlrq"
}
{- "source_id": "ds_g4ccx6e77h1dmi",
- "created_at": "2023-03-02 17:46:31",
- "fk_model_id": "md_mhs9z4r2ak98x0",
- "id": "vw_lg052cnc1c26kf",
- "is_default": 1,
- "lock_type": "collaborative",
- "meta": { },
- "order": 1,
- "password": null,
- "base_id": "p_xm3thidrblw4n7",
- "show": 1,
- "show_system_fields": null,
- "title": "Sheet-1",
- "type": 3,
- "updated_at": "2023-03-02 17:46:31",
- "uuid": null
}
Update the Map View data by Map ID
mapViewId required | string Example: vw_1eq2wk2xe3a9j5 Unique Map View ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
fk_geo_data_col_id | string Foreign Key to GeoData Column |
Meta Model (null) or Meta Model (object) or Meta Model (string) (Meta) |
{- "fk_geo_data_col_id": "cl_8iw2o4ejzvdyna",
- "meta": null
}
1
Get the Map View data by Map ID
mapViewId required | string Example: vw_1eq2wk2xe3a9j5 Unique Map View ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
{- "source_id": "ds_g4ccx6e77h1dmi",
- "columns": [
- {
- "source_id": "ds_g4ccx6e77h1dmi",
- "fk_column_id": "cl_8iw2o4ejzvdyna",
- "fk_view_id": "vw_qjt7klod1p9kyv",
- "id": "nc_46xcacqn4rc9xf",
- "order": 1,
- "base_id": "p_xm3thidrblw4n7",
- "show": 1
}
], - "fk_geo_data_col_id": "cl_8iw2o4ejzvdyna",
- "fk_view_id": "vw_qjt7klod1p9kyv",
- "meta": { },
- "order": 0,
- "base_id": "p_xm3thidrblw4n7",
- "show": true,
- "title": "My Map"
}
List all columns by ViewID
viewId required | string Example: vw_wtdg2meyig5l4q Unique View ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
{- "list": [
- {
- "ai": 0,
- "au": 0,
- "source_id": "ds_krsappzu9f8vmo",
- "cc": "",
- "cdf": null,
- "clen": "45",
- "column_name": "title",
- "cop": "2",
- "created_at": "2023-03-02 13:14:16",
- "csn": "utf8mb4",
- "ct": "varchar(45)",
- "deleted": null,
- "dt": "varchar",
- "dtx": "specificType",
- "dtxp": "45",
- "dtxs": null,
- "fk_model_id": "md_yvwvbt2i78rgcm",
- "id": "cl_0j9gv0oi8vjy46",
- "meta": null,
- "np": null,
- "ns": null,
- "order": 2,
- "pk": 0,
- "base_id": "p_01clqvzik3izk6",
- "pv": 1,
- "rqd": 0,
- "system": 0,
- "title": "Title",
- "uidt": "SingleLineText",
- "un": 0,
- "unique": 0,
- "updated_at": "2023-03-02 13:14:16",
- "validate": null,
- "virtual": null
}
], - "pageInfo": {
- "isFirstPage": true,
- "isLastPage": true,
- "page": 1,
- "pageSize": 10,
- "totalRows": 1
}
}
Create a new column in a given View
viewId required | string Example: vw_wtdg2meyig5l4q Unique View ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
fk_column_id | string (Id) [ 0 .. 20 ] characters Foreign Key to Column |
Bool Model (integer) or Bool Model (boolean) or Bool Model (null) (Bool) | |
order | number >= 0 The order of the list of views. |
{- "fk_column_id": "cl_m4wkaqgqqjzoeh",
- "show": 0,
- "order": 1
}
{- "ai": 0,
- "au": 0,
- "source_id": "ds_krsappzu9f8vmo",
- "cc": "",
- "cdf": null,
- "clen": "45",
- "column_name": "title",
- "cop": "2",
- "created_at": "2023-03-02 13:14:16",
- "csn": "utf8mb4",
- "ct": "varchar(45)",
- "deleted": null,
- "dt": "varchar",
- "dtx": "specificType",
- "dtxp": "45",
- "dtxs": null,
- "fk_model_id": "md_yvwvbt2i78rgcm",
- "id": "cl_0j9gv0oi8vjy46",
- "meta": null,
- "np": null,
- "ns": null,
- "order": 2,
- "pk": 0,
- "base_id": "p_01clqvzik3izk6",
- "pv": 1,
- "rqd": 0,
- "system": 0,
- "title": "Title",
- "uidt": "SingleLineText",
- "un": 0,
- "unique": 0,
- "updated_at": "2023-03-02 13:14:16",
- "validate": null,
- "virtual": null
}
Update a column in a View
viewId required | string (Id) [ 0 .. 20 ] characters Examples: string Model for ID |
columnId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Column ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
Bool Model (integer) or Bool Model (boolean) or Bool Model (null) (Bool) | |
order | number >= 0 The order of the list of views. |
{- "show": 0,
- "order": 1
}
1
Get info such as node version, arch, platform, is docker, rootdb and package version of a given base
baseId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Base ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
{- "Node": "v12.16.1",
- "Arch": "x64",
- "Platform": "linux",
- "Docker": false,
- "Database": "postgres",
- "ProjectOnRootDB": false,
- "RootDB": "postgres",
- "PackageVersion": "1.0.0"
}
Hide / show views based on user role
baseId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Base ID |
includeM2M | boolean |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
[- {
- "ptn": "nc_09gt___Sheet-1",
- "_ptn": "Sheet-1",
- "ptype": "table",
- "tn": "Sheet-1",
- "_tn": "Sheet-1",
- "table_meta": null,
- "id": "vw_75neroyqdye94k",
- "source_id": "ds_eol59jg2l4zwev",
- "base_id": "p_63b4q0qengen1x",
- "fk_model_id": "md_5mipbdg6ketmv8",
- "title": "Sheet-1",
- "type": 3,
- "is_default": true,
- "show_system_fields": null,
- "lock_type": "collaborative",
- "uuid": "24a6d0bb-e45d-4b1a-bfef-f492d870de9f",
- "password": null,
- "show": true,
- "order": 1,
- "created_at": "2023-03-08T10:44:55.253Z",
- "updated_at": "2023-03-10T07:18:44.908Z",
- "meta": {
- "allowCSVDownload": true
}, - "view": {
- "fk_view_id": "vw_75neroyqdye94k",
- "source_id": "ds_eol59jg2l4zwev",
- "base_id": "p_63b4q0qengen1x",
- "uuid": null,
- "created_at": "2023-03-08T10:44:55.288Z",
- "updated_at": "2023-03-08T10:44:55.288Z",
- "meta": null,
- "row_height": null
}, - "disabled": {
- "owner": false,
- "creator": false,
- "viewer": false,
- "editor": false,
- "commenter": false,
- "guest": false
}
}
]
Hide / show views based on user role
baseId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Base ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
string or null | |
object |
[- {
- "disabled": {
- "commenter": true,
- "creator": true,
- "editor": true,
- "guest": true,
- "owner": true,
- "viewer": true
}
}
]
{- "msg": "UI ACL has been created successfully"
}
List all base meta data
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
{- "list": [
- {
- "sources": [
- {
- "alias": "string",
- "config": null,
- "created_at": "2023-03-01 14:27:36",
- "enabled": true,
- "id": "string",
- "inflection_column": "camelize",
- "inflection_table": "camelize",
- "is_meta": true,
- "order": 1,
- "base_id": "string",
- "type": "mysql2",
- "updated_at": "2023-03-01 14:27:36"
}
], - "color": "#24716E",
- "created_at": "2023-03-01 14:27:36",
- "deleted": true,
- "description": "This is my base description",
- "id": "p_124hhlkbeasewh",
- "is_meta": true,
- "meta": { },
- "order": 0,
- "prefix": "nc_vm5q__",
- "status": "string",
- "title": "my-base",
- "updated_at": "2023-03-01 14:27:36"
}
], - "pageInfo": {
- "isFirstPage": true,
- "isLastPage": true,
- "page": 1,
- "pageSize": 10,
- "totalRows": 1
}
}
Create a new base
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
Array of objects (Source Request) Array of Bases | |
color | string <= 50 characters Primary Theme Color |
description | string Base Description |
title required | string [ 1 .. 128 ] characters Base Title |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) | |
type | string Enum: "database" "documentation" "dashboard" |
linked_db_project_ids | Array of strings List of Linked Database Base IDs (only used for Dashboard Projects so far) |
external | boolean Default: false If true, the base will us an external database else it will use the root database |
{- "sources": [
- {
- "alias": "string",
- "config": null,
- "enabled": true,
- "id": "string",
- "inflection_column": "camelize",
- "inflection_table": "camelize",
- "is_meta": true,
- "order": 1,
- "base_id": "string",
- "type": "mysql2",
- "updated_at": "2023-03-01 14:27:36"
}
], - "color": "#24716E",
- "created_at": "2023-03-01 14:27:36",
- "deleted": true,
- "description": "This is my base description",
- "id": "p_124hhlkbeasewh",
- "is_meta": true,
- "meta": { },
- "order": 0,
- "prefix": "nc_vm5q__",
- "status": "string",
- "title": "my-base",
- "external": false
}
{- "sources": [
- {
- "alias": "string",
- "config": null,
- "enabled": true,
- "id": "string",
- "inflection_column": "camelize",
- "inflection_table": "camelize",
- "is_meta": true,
- "order": 1,
- "base_id": "string",
- "type": "mysql2",
- "updated_at": "2023-03-01 14:27:36"
}
], - "color": "#24716E",
- "created_at": "2023-03-01 14:27:36",
- "deleted": true,
- "description": "This is my base description",
- "id": "p_124hhlkbeasewh",
- "is_meta": true,
- "meta": { },
- "order": 0,
- "prefix": "nc_vm5q__",
- "status": "string",
- "title": "my-base"
}
Duplicate a base
baseId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Base ID |
sourceId | string (Id) [ 0 .. 20 ] characters Examples: string Unique Source ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
object | |
base | object |
{- "excludeData": true,
- "excludeViews": true,
- "excludeHooks": true
}
{- "name": "string",
- "id": "string",
- "base_id": "string"
}
Duplicate a base
baseId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Base ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
object | |
base | object |
{- "excludeData": true,
- "excludeViews": true,
- "excludeHooks": true
}
{- "name": "string",
- "id": "string"
}
Get the info of a given base
baseId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Base ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
{- "sources": [
- {
- "alias": "string",
- "config": null,
- "enabled": true,
- "id": "string",
- "inflection_column": "camelize",
- "inflection_table": "camelize",
- "is_meta": true,
- "order": 1,
- "base_id": "string",
- "type": "mysql2",
- "updated_at": "2023-03-01 14:27:36"
}
], - "color": "#24716E",
- "created_at": "2023-03-01 14:27:36",
- "deleted": true,
- "description": "This is my base description",
- "id": "p_124hhlkbeasewh",
- "is_meta": true,
- "meta": { },
- "order": 0,
- "prefix": "nc_vm5q__",
- "status": "string",
- "title": "my-base"
}
Delete the given base
baseId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Base ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
true
Update the given base
baseId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Base ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
color | string <= 50 characters Primary Theme Color |
Meta Model (null) or Meta Model (object) or Meta Model (string) (Meta) | |
title | string [ 1 .. 128 ] characters Base Title |
StringOrNull Model (string) or StringOrNull Model (null) (StringOrNull) | |
linked_db_project_ids | Array of strings List of Linked Database Base IDs (only used for Dashboard Projects so far) |
{- "color": "#24716E",
- "meta": null,
- "title": "My Base"
}
1
baseId required | string |
Bool Model (integer) or Bool Model (boolean) or Bool Model (null) (Bool) | |
order | number The order among the bases |
Bool Model (integer) or Bool Model (boolean) or Bool Model (null) (Bool) |
{- "starred": true,
- "order": 1,
- "hidden": true
}
Calculate the Base Cost
baseId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Base ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
{ }
Synchronise the meta data difference between NC_DB and external data sources
baseId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Base ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
{- "msg": "The meta has been synchronized successfully"
}
Get the meta data difference between NC_DB and external data sources
baseId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Base ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
[- {
- "table_name": "_nc_m2m_uuv_xzru3m",
- "source_id": "ds_rrplkgy0pq1f3c",
- "type": "table",
- "detectedChanges": [
- {
- "type": "TABLE_NEW",
- "msg": "New table"
}, - {
- "type": "TABLE_RELATION_ADD",
- "tn": "_nc_m2m_uuv_xzru3m",
- "rtn": "Sheet-1",
- "cn": "table1_id",
- "rcn": "id",
- "msg": "New relation added",
- "relationType": "bt",
- "cstn": "_nc_m2m_uuv_xzru3m_table1_id_foreign"
}, - {
- "type": "TABLE_RELATION_ADD",
- "tn": "_nc_m2m_uuv_xzru3m",
- "rtn": "address",
- "cn": "table2_id",
- "rcn": "address_id",
- "msg": "New relation added",
- "relationType": "bt",
- "cstn": "_nc_m2m_uuv_xzru3m_table2_id_foreign"
}
]
}
]
Check if a base contains empty and null filters. Used in Show NULL and EMPTY in Filter
in Base Setting.
baseId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Base ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
null
List all audit data in the given base
baseId required | string (Id) [ 0 .. 20 ] characters Examples: string Unique Base ID |
offset | integer >= 0 |
limit | integer <= 1 |
sourceId | string |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
{- "list": [
- {
- "id": "adt_l5we7pkx70vaao",
- "user": "w@nocodb.com",
- "display_name": "NocoDB",
- "ip": "::ffff:127.0.0.1",
- "source_id": "ds_3l9qx8xqksenrl",
- "base_id": "p_9sx43moxhqtjm3",
- "fk_model_id": "md_ehn5izr99m7d45",
- "row_id": "rec0Adp9PMG9o7uJy",
- "op_type": "AUTHENTICATION",
- "op_sub_type": "UPDATE",
- "status": "string",
- "description": "Table nc_snms___Table_1 : field Date got changed from 2023-03-12 to ",
- "details": "<span class=\"\">Date</span> : <span class=\"text-decoration-line-through red px-2 lighten-4 black--text\">2023-03-12</span> <span class=\"black--text green lighten-4 px-2\"></span>"
}
], - "pageInfo": {
- "isFirstPage": true,
- "isLastPage": true,
- "page": 1,
- "pageSize": 10,
- "totalRows": 1
}
}
Create a new comment in a row. Logged in Audit.
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
description | string Description for the target row |
fk_model_id required | string Foreign Key to Model |
row_id required | string Row ID |
{- "description": "This is the comment for the row",
- "fk_model_id": "md_ehn5izr99m7d45",
- "row_id": "3"
}
{- "user": "w@nocodb.com",
- "row_id": "1",
- "fk_model_id": "md_5mipbdg6ketmv8",
- "op_type": "COMMENT",
- "description": "qq",
- "base_id": "p_63b4q0qengen1x",
- "id": "adt_vx58jpp0loo8qy"
}
Update comment in Audit
auditId required | string Example: adt_zlskd6rlf3liay Audit ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
description | string Description for the target row |
{- "description": "This is the comment for the row"
}
1
Return the number of comments in the given query.
ids required | any Comment IDs |
fk_model_id required | string (ID Model) [ 0 .. 20 ] characters Examples: fk_model_id=string Foreign Key to Model |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
[- {
- "count": "4",
- "row_id": "1"
}
]
Update Audit Row
rowId required | any Example: 1 Unique Row ID |
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
column_name | string Column Name |
fk_model_id | string Foreign Key to Model |
row_id | string Row ID |
prev_value | any The previous value before the action |
value | any The current value after the action |
{- "column_name": "baz",
- "fk_model_id": "md_ehn5izr99m7d45",
- "row_id": "1",
- "prev_value": "foo",
- "value": "bar"
}
{- "user": "w@nocodb.com",
- "row_id": "1",
- "fk_model_id": "md_5mipbdg6ketmv8",
- "op_type": "COMMENT",
- "description": "Table Sheet-1 : field Column A got changed from foo to bar",
- "base_id": "p_63b4q0qengen1x",
- "id": "adt_vx58jpp0loo8qy"
}
Test the DB Connection
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
client | string Enum: "mssql" "mysql" "mysql2" "oracledb" "pg" "snowflake" "sqlite3" DB Type |
object |
{- "client": "mysql2",
- "connection": {
- "host": "localhost",
- "port": "3306",
- "user": "root",
- "password": "password",
- "database": null
}
}
{- "code": 0,
- "message": "",
- "data": { }
}
Get the application info such as authType, defaultLimit, version and etc.
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
{- "authType": "jwt",
- "baseHasAdmin": true,
- "firstUser": false,
- "type": "rest",
- "googleAuthEnabled": false,
- "githubAuthEnabled": false,
- "oneClick": false,
- "connectToExternalDB": true,
- "version": "0.105.3",
- "defaultLimit": 25,
- "ncMin": false,
- "teleEnabled": false,
- "auditEnabled": true,
- "ee": false,
- "ncAttachmentFieldSize": 20971520,
- "ncMaxAttachmentsAllowed": 10,
- "isCloud": false,
- "automationLogLevel": "OFF"
}
Generic Axios Call
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
{ }
{ }
Delete All K/V pairs in NocoCache
xc-auth | string Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN. |
true
List Comments in Audit
List all comments
query Parameters
Row ID
Foreign Key to Model
Is showing comments only?
header Parameters
Auth Token is a JWT Token generated based on the logged-in user. By default, the token is only valid for 10 hours. However, you can change the value by defining it using environment variable NC_JWT_EXPIRES_IN.
Responses
Response samples
{
"list": [
}{ {
]"id": "adt_3sii7erfwrlegb", "user": "w@nocodb.com", "display_name": "NocoDB", "ip": null, "source_id": null, "base_id": "p_63b4q0qengen1x", "fk_model_id": "md_5mipbdg6ketmv8", "row_id": "1", "op_type": "COMMENT", "op_sub_type": null, "status": null, "description": "bar", "details": null, "created_at": "2023-03-13T09:39:14.225Z", "updated_at": "2023-03-13T09:39:14.225Z"
},"id": "adt_fezs668qbxj8gc", "user": "w@nocodb.com", "display_name": "NocoDB", "ip": null, "source_id": null, "base_id": "p_63b4q0qengen1x", "fk_model_id": "md_5mipbdg6ketmv8", "row_id": "1", "op_type": "COMMENT", "op_sub_type": null, "status": null, "description": "foo", "details": null, "created_at": "2023-03-13T09:39:13.321Z", "updated_at": "2023-03-13T09:39:13.321Z"
}