Custom Data
Custom data table rows
Retrieve a single custom data table row by its identifier, within the authenticated organization.
Organization-scoped tokens have full access. For user-scoped tokens the row is returned only if the user's role has view access to the table and the row.
OAuth2 Bearer token obtained from authentication endpoint
Name of the custom data table the row belongs to.
Identifier of the row within the table.
The custom data table row.
A single row of a custom data table.
Unique identifier of the row within its table.
42Identifier of the organization the row belongs to.
1Column values of the row, one entry per table column, in the same order as the columns are defined in the table.
{"type":"text","columnName":"name","value":"Order 1"}Whether the authenticated user is allowed to edit this row.
Whether the authenticated user is allowed to delete this row.
Timestamp (Unix epoch milliseconds) of the last row modification.
1720000000000Bad request
Forbidden. The authenticated user has no access to the table or the row.
Table or row not found.
Too many requests
Internal server error
GET /api/v1/organization/custom-data/row?tableName=text&id=1 HTTP/1.1
Host: blynk.cloud
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": 42,
"orgId": 1,
"values": [
{
"type": "double",
"columnName": "temperature",
"value": 30.1,
"decimalsFormat": "NO_FRACTION",
"unit": "Celsius"
}
],
"canEdit": true,
"canDelete": true,
"modifiedAt": 1720000000000
}Delete a single custom data table row by its identifier, within the authenticated organization.
Organization-scoped tokens have full access. For user-scoped tokens the row is deleted only if the user's role has delete access to the table and edit access to the row.
OAuth2 Bearer token obtained from authentication endpoint
Name of the custom data table the row belongs to.
Identifier of the row within the table.
The row was deleted.
No content
Bad request
Forbidden. The authenticated user has no access to the table or the row.
Table or row not found.
Too many requests
Internal server error
DELETE /api/v1/organization/custom-data/row?tableName=text&id=1 HTTP/1.1
Host: blynk.cloud
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Retrieve a page of custom data table rows within the authenticated organization, with optional sorting, filtering and display-column search.
Organization-scoped tokens have full access. For user-scoped tokens rows are returned only if the user's role has view access to the table, and the result is limited to the rows the user is allowed to see.
OAuth2 Bearer token obtained from authentication endpoint
Request payload for retrieving a page of custom data table rows.
Name of the custom data table to read rows from.
ordersZero-based index of the page to return.
0Maximum number of rows to return per page.
20Sorting mode applied to the returned rows.
Name of the column to sort by. Only used together with the
CUSTOM_ASCENDING / CUSTOM_DESCENDING sorting modes.
nameA filter applied to the table rows. The concrete schema depends on the
type discriminator property.
Optional case-insensitive query matched against the value of the table's display column.
Order AWhether to include rows owned by sub-organizations. Only effective for tables that share rows with sub-organizations and when reading from the root organization.
falseA page of custom data table rows.
A page of custom data table rows together with the total row count.
Total number of rows matching the request (before pagination is applied).
3Bad request. The request body is missing, malformed or fails validation.
Forbidden. The authenticated user has no access to the table.
Table not found.
Too many requests
Internal server error
POST /api/v1/organization/custom-data/rows HTTP/1.1
Host: blynk.cloud
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 216
{
"tableName": "orders",
"page": 0,
"size": 20,
"sorting": "ASCENDING",
"sortColumn": "name",
"filter": {
"type": "and",
"filters": [
{
"type": "and",
"filters": [
"[Circular Reference]"
]
}
]
},
"searchQuery": "Order A",
"includeSubOrgs": false
}{
"rows": [
{
"id": 42,
"orgId": 1,
"values": [
{
"type": "double",
"columnName": "temperature",
"value": 30.1,
"decimalsFormat": "NO_FRACTION",
"unit": "Celsius"
}
],
"canEdit": true,
"canDelete": true,
"modifiedAt": 1720000000000
}
],
"totalRows": 3
}Create a new row in a custom data table within the authenticated organization.
The values array contains the column values to set for the new row. Columns that are not provided fall back to their default value (or stay empty when they have none); required columns without a value cause the request to be rejected. Read-only columns such as created_at, modified_at and created_by are populated automatically.
Organization-scoped tokens have full access. For user-scoped tokens the row is created only if the user's role has create access to the table, and the created_by column, when present, is attributed to the authenticated user.
Organization-scoped tokens have no associated user, so the created_by column is not populated automatically for them. If the table has a required created_by column, an organization-scoped token must supply a value for it in the values array, otherwise the request is rejected.
OAuth2 Bearer token obtained from authentication endpoint
Request payload for creating a custom data table row.
Name of the custom data table to create the row in.
ordersColumn values to set for the new row. Each entry targets a
column by its columnName. Order is not significant.
{"type":"text","columnName":"name","value":"Order 1"}The created custom data table row.
A single row of a custom data table.
Unique identifier of the row within its table.
42Identifier of the organization the row belongs to.
1Column values of the row, one entry per table column, in the same order as the columns are defined in the table.
{"type":"text","columnName":"name","value":"Order 1"}Whether the authenticated user is allowed to edit this row.
Whether the authenticated user is allowed to delete this row.
Timestamp (Unix epoch milliseconds) of the last row modification.
1720000000000Bad request. The request body is missing, malformed or fails validation.
Forbidden. The authenticated user has no access to create rows in the table.
Table not found.
Too many requests
Internal server error
POST /api/v1/organization/custom-data/row/create HTTP/1.1
Host: blynk.cloud
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 139
{
"tableName": "orders",
"values": [
{
"type": "double",
"columnName": "temperature",
"value": 30.1,
"decimalsFormat": "NO_FRACTION",
"unit": "Celsius"
}
]
}{
"id": 42,
"orgId": 1,
"values": [
{
"type": "double",
"columnName": "temperature",
"value": 30.1,
"decimalsFormat": "NO_FRACTION",
"unit": "Celsius"
}
],
"canEdit": true,
"canDelete": true,
"modifiedAt": 1720000000000
}Last updated
Was this helpful?

