Hướng dẫn AgentFlow

list_mentioned_in

GET/entities/{entity_id}/records/{record_id}/mentioned-in

A source is listed only if the caller may read it: one the caller may not read leaves no row and no count. Where it mentions (its comments, or a field) lists only the fields the caller may read, and the author is named only to a caller who is told people's names. A source's comments are not listed while its entity takes no comments. A page can hold fewer than limit while next_cursor is set, when many of the next sources are not the caller's to read; the cursor is opaque and sealed. Through an installed app, a record that mentions is listed only while the ceiling lets the app read it, a field place only while the app may read that field, and a comment place whenever the entity takes comments and the app may read the source, and the author is named only while the package lists the user entity's name; otherwise last_author is null.

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

The record that is mentioned

Formatuuid

Query Parameters

cursor?string

The cursor a previous page returned as next_cursor.

limit?integer

How many records to return, 1 to 200; 50 when absent.

Formatint32
Range1 <= value <= 200

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

curl -X GET "https://example.com/entities/497f6eca-6276-4993-bfeb-53cbbbba6f08/records/497f6eca-6276-4993-bfeb-53cbbbba6f08/mentioned-in"
{  "items": [    {      "count": 0,      "entity_id": "8161163a-f227-466f-bc01-090a01e80165",      "entity_label": "string",      "label": "string",      "last_at": "2019-08-24T14:15:22Z",      "last_author": "string",      "places": [        {          "kind": "comment"        }      ],      "record_id": "8bf519b6-a3e0-49d2-8e42-039542d9a489"    }  ],  "next_cursor": "string",  "prev_cursor": "string"}