Org Admin
Operations of the Memory API. Paths are relative to your deployment's API host.
POST /api/memory-api/org-admin/memory-maintenance/proposals/{proposalId}/revert
Revert a single applied PRUNE / RENAME / SUMMARY_REFRESH mutation. 404 if the proposal is not owned by the caller org.
Authentication: bearer token (Authorization: Bearer <token>)
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
proposalId | path | string (uuid) | yes |
| Status | Description | Body |
|---|---|---|
| 200 | application/json MaintenanceProposalResponseDtoDataEnvelope |
GET /api/memory-api/org-admin/memory-maintenance/runs
Last N maintenance runs for the caller org.
Authentication: bearer token (Authorization: Bearer <token>)
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
limit | query | number | no | Most-recent-first; defaults to 10. |
| Status | Description | Body |
|---|---|---|
| 200 | application/json MaintenanceRunResponseDtoDataArrayEnvelope |
POST /api/memory-api/org-admin/memory-maintenance/runs
Start a dry-run or apply maintenance run for the caller org. The org is forced from the verified JWT context.
Authentication: bearer token (Authorization: Bearer <token>)
Request body: application/json OrgAdminStartRunBodyDto
| Status | Description | Body |
|---|---|---|
| 201 | application/json StartMaintenanceRunResponseDtoDataEnvelope |
GET /api/memory-api/org-admin/memory-maintenance/runs/{runId}
Single run detail with every proposal it produced. 404 if the run is not owned by the caller org.
Authentication: bearer token (Authorization: Bearer <token>)
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
runId | path | string (uuid) | yes |
| Status | Description | Body |
|---|---|---|
| 200 | application/json MaintenanceRunDetailDtoDataEnvelope |