Hướng dẫn AgentFlow

query_records

POST/entities/{entity_id}/records/query
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

Request Body

application/json

The filters, sort, cursors and page size

TypeScript Definitions

Use the request body type in TypeScript.

The typed JSON body for POST /entities/{entityId}/records/query — the rich operator surface (multi-value / range / relative-date filters) beside the query-string GET. Absent filter fields default (an empty browse).

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

application/problem+json

application/problem+json

application/problem+json

curl -X POST "https://example.com/entities/497f6eca-6276-4993-bfeb-53cbbbba6f08/records/query" \  -H "Content-Type: application/json" \  -d '{}'
{  "items": [    {      "body": {},      "created_at": "2019-08-24T14:15:22Z",      "created_by": "ee824cad-d7a6-4f48-87dc-e8461a9201c4",      "entity_id": "8161163a-f227-466f-bc01-090a01e80165",      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "org_id": "a40f5d1f-d889-42e9-94ea-b9b33585fc6b",      "owner_id": "8826ee2e-7933-4665-aef2-2393f84a0d05",      "unit_id": "5becc822-b69e-4e66-a762-ad8e868dcab6",      "updated_at": "2019-08-24T14:15:22Z",      "version": 0,      "file_counts": {        "property1": 0,        "property2": 0      },      "file_labels": {        "property1": {          "property1": "string",          "property2": "string"        },        "property2": {          "property1": "string",          "property2": "string"        }      },      "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"        }      },      "ref_labels": {        "property1": {          "property1": "string",          "property2": "string"        },        "property2": {          "property1": "string",          "property2": "string"        }      },      "unit": null,      "visible_action_ids": [        "f379d2c9-fe6d-4ba6-bf32-0c26891f05a3"      ]    }  ],  "next_cursor": "string",  "prev_cursor": "string"}