Objectives
Compact an objective
Triggers compaction on a running objective. Optionally override the variation’s compaction config.
POST
CLI
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Example:
"workspace_01HXKD2E5NQM3T9AYWCF133E3Q"
The ID of the objective. Supports "external_id:" prefix for external IDs.
Example:
"obj_01HXKD2E5NQM3T9AYWCFQAZGFV"
Body
application/json
Compact objective request — triggers compaction on a running objective.
Optional compaction config override. When not set, uses the variation's compaction_config.
Response
OK
Compact objective response
The new context window created by the compaction