Hướng dẫn AgentFlow

list_record_comments

GET/entities/{entity_id}/records/{record_id}/comments

With no cursor the page holds the newest comments; prev_cursor, sent as before, reaches older ones. Each body is rendered for the caller.

AuthorizationBearer <token>

A service principal's credential, or a person's access token, AgentFlow's own or an installed app's. A service principal's effective permissions are its role permissions intersected with the credential's scopes.

In: header

Path Parameters

entity_id*string

Entity id

Formatuuid
record_id*string

Record id

Formatuuid

Query Parameters

limit?integer

Page size, from 1 to 100; 50 when absent.

Formatint32
Range1 <= value <= 100
cursor?string

A next_cursor: the comments after it.

before?string

A prev_cursor: the comments before it. With neither cursor the page is the newest comments.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X GET "https://example.com/entities/497f6eca-6276-4993-bfeb-53cbbbba6f08/records/497f6eca-6276-4993-bfeb-53cbbbba6f08/comments"
{  "can_comment": true,  "closed": true,  "items": [    {      "author": {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "name": "string"      },      "body": "string",      "can_delete": true,      "can_edit": true,      "created_at": "2019-08-24T14:15:22Z",      "edited_at": "2019-08-24T14:15:22Z",      "files": [        {          "byte_size": 0,          "content_type": "string",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "name": "string"        }      ],      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "mentions": {        "property1": {          "href": "string",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "kind": "user",          "label": "string",          "state": "ok"        },        "property2": {          "href": "string",          "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",          "kind": "user",          "label": "string",          "state": "ok"        }      }    }  ],  "next_cursor": "string",  "prev_cursor": "string",  "total": 0}