Record a decision, or list the decisions
POST/v1/memory/decisions
With decision and reason, records one decision of the project of the key, and closes the decisions that it replaces. The origin of the decision is agent, and its author is key:<prefix>. The same body and the same answer as POST /api/teams/{slug}/memory/decisions. Without those two fields, the body holds the filters of a page (subject, scope, area, cursor, limit) and is optional, and the route answers like GET /v1/memory/decisions.
Request
Responses
- 200
- 201
- 400
- 401
- 409
- 500
- 503
One page of decisions, newest first, and the cursor of the next page (next_cursor, null on the last page).
The decision, its memory, and the decisions it closed.
The body is missing or has a bad value (bad_request).
The bearer virtual key is missing (missing_key), or it is not valid or it is revoked (invalid_key).
Memory is off for the project (memory_off).
A database query failed (query_failed).
The key store or the limits store is not available (keystore_unavailable, limits_unavailable), or the gateway has no database (no_db).