menu

Record Comments

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

Getting Comments for a Record

GET /api/tables/{table_id}/record/{item_id}/comments/get

name type description
offset integer optional offset for pagination

Example

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

Sample Response

{
    "pkComments": 982,
    "fkItems": 99,
    "fkTables": 123,
    "fkUsers": 1,
    "username": "john-smith",
    "emailAddress": "john.smith@domain.com",
    "dateTime": "2018-01-01 12:00:00",
    "commentBody": "This is a comment",
}

Creating Comments for a Record

POST /api/tables/{table_id}/record/{item_id}/comments/create

Parameters

name type description
comment string body of comment content

Example

$ curl -X POST "https://infolobby.com/api/tables/123/record/99/comments/create"
    -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
    -H "Content-Type: application/json"
    -d '{"comment": "This is a comment"}'

Sample Response (comment ID)

982

Updating Record Comments

POST /api/tables/{table_id}/record/{item_id}/comment/{comment_id}/update

Parameters

name type description
comment string body of comment content

Example

$ curl -X POST "https://infolobby.com/api/tables/123/record/99/comment/982/update"
    -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
    -H "Content-Type: application/json"
    -d '{"comment": "This is a revised comment"}'

This call doesn't return anything.

Deleting Record Comments

POST /api/tables/{table_id}/record/{item_id}/comment/{comment_id}/delete

Example

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