For AI agents: a documentation index is available at /docs/llms.txt. Append .md to any page URL for markdown, or send Accept: text/markdown.

Add sessions to an Agent Analytics dataset

このページはまだあなたの言語に翻訳されていません。 現在取り組んでいますので、後でもう一度確認してください。

Adds sessions to a dataset. Sessions already in the dataset are ignored, so
the call is safe to repeat. Every session must belong to the path project;
a session from another project fails the whole request with 422.

post/v1/projects/{project_id}/agent-analytics/datasets/{dataset_id}/sessions

Authorizations

Authorizationstringrequired

http

Path parameters

project_idstringrequired

Amplitude project identifier, backed by the canonical app ID.

Example:12345
Constraints:pattern: ^[0-9]+$
dataset_idstringrequired

Stable dataset identifier, returned by create or by the Agent Analytics read surface.

Header parameters

Idempotency-Keystringrequired

Unique idempotency key used to safely retry write operations.

Constraints:min length: 8max length: 255

Body

application/json
session_idsstring[]required

Session identifiers. All must belong to the path project.

Response

application/json
200· Dataset after the sessions were added, with refreshed counts.
dataobjectrequired
Show child attributes
idstringrequired

Stable dataset identifier (ULID).

objectstringrequired
project_idstringrequired
namestringrequired
Constraints:min length: 1
descriptionstringrequired
Constraints:nullable
agent_namestringrequired

Agent the dataset is scoped to. Null for project-level datasets.

Constraints:nullable
source_typestringrequired

How the dataset was assembled, such as manual.

session_countintegerrequired

Sessions currently in the dataset.

reviewed_countintegerrequired

Sessions in the dataset that carry a human review.

created_atstringrequired
Constraints:format: date-time
created_bystring
Constraints:nullable

これは役に立ちましたか?