menu

Working with Records

There are numerous API endpoints for working with records. The following endpoints are the most common:

Getting Records

GET /api/table/{table_id}/record/{item_id}/get

Example

$ curl -X GET "https://infolobby.com/api/table/123/record/99/get"
    -H "Authorization: Bearer YOUR_ACCESS_TOKEN"

Sample Response

{
    "item_id": "99",
    "title": "John Smith",
    "data": {
        "name": "John Smith",
        "age": "72"
    },
    "is_deleted": false
}

Creating Records

POST /api/table/{table_id}/records/create

Parameters

name type description
data array array of field_id:value objects

Example

$ curl -X POST "https://infolobby.com/api/table/123/records/create"
    -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
    -H "Content-Type: application/json"
    -d '{"data": [{"name": "John Smith", "age": "45"}]}'

Sample Response

{
    "item_id": "99",
    "title": "John Smith",
    "data": {
        "name": "John Smith",
        "age": "45"
    },
    "is_deleted": false
}

Updating Records

POST /api/table/{table_id}/record/{item_id}/update

Parameters

name type description
data array array of field_id:value objects

Example

$ curl -X POST "https://infolobby.com/api/table/123/record/99/update"
    -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
    -H "Content-Type: application/json"
    -d '{"data": [{"age": "72"}]}'

Sample Response

{
    "item_id": "99",
    "title": "John Smith",
    "data": {
        "name": "John Smith",
        "age": "72"
    },
    "is_deleted": false
}

Deleting Records

POST /api/table/{table_id}/record/{item_id}/delete

Example

$ curl -X POST "https://infolobby.com/api/table/123/record/99/delete"
    -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
InfoLobby © 2024 Globi Web Solutions