Hướng dẫn AgentFlow

heartbeat_record_presence

POST/entities/{entity_id}/records/{record_id}/presence

Send every 20 seconds while it is open; the caller stops being a viewer 45 seconds after the last.

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

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 POST "https://example.com/entities/497f6eca-6276-4993-bfeb-53cbbbba6f08/records/497f6eca-6276-4993-bfeb-53cbbbba6f08/presence"
{  "entity_id": "8161163a-f227-466f-bc01-090a01e80165",  "record_id": "8bf519b6-a3e0-49d2-8e42-039542d9a489",  "viewers": [    "4471219e-63d8-475f-8296-8a28e768618f"  ]}