Skip to content

memory

Generated from openapi.json (API version 0.54.3). 11 endpoints. See the API overview for the base URL and how to sign requests.

GET /memory/options

Needs read:incident.

The cause categories, verdicts and problem shapes to choose from

Responses

  • 200 Successful Response: object

GET /memory/episodes

Needs read:incident.

The episodes in the memory, latest first

Query parameters

Name Type Required Description
shape string or null no
cause string or null no
forgotten boolean no
limit integer no
offset integer no

Responses

  • 200 Successful Response: object

PATCH /memory/episodes/{episode_id}

Needs write:memory.

Change what people recorded about an episode

Path parameters

Name Type Required Description
episode_id string (uuid) yes

Body (application/json, required): EpisodeChange

Field Type Required Description
cause_category string or null no
note string or null no
rca_verdict one of right, partly, wrong or null no
resolved_by one of fix, manual, self or null no
fix_id string or null no
problem_shape string or null no
restore boolean no

Responses

  • 200 Successful Response: object

DELETE /memory/episodes/{episode_id}

Needs write:memory.

Take an episode out of the memory

Path parameters

Name Type Required Description
episode_id string (uuid) yes

Responses

  • 200 Successful Response: object

GET /memory/playbooks

Needs read:incident.

Every kind of problem and cause with episodes, and its playbook

Responses

  • 200 Successful Response: object

POST /memory/playbooks/draft

Needs write:memory.

Draft (or redraft) the playbook of a kind of problem or a cause

Body (application/json, required): DraftIn

Field Type Required Description
kind one of shape, cause yes
key string yes
discard_edit boolean no

Responses

  • 200 Successful Response: object

PUT /memory/playbooks/{playbook_id}

Needs write:memory.

Edit a playbook; redrafts never overwrite the edit

Path parameters

Name Type Required Description
playbook_id string (uuid) yes

Body (application/json, required): PlaybookIn

Field Type Required Description
title string no
body object yes

Responses

  • 200 Successful Response: object

DELETE /memory/playbooks/{playbook_id}

Needs write:memory.

Delete a playbook (the next change of its episodes drafts it again)

Path parameters

Name Type Required Description
playbook_id string (uuid) yes

Responses

  • 200 Successful Response: object

POST /memory/backfill

Needs write:memory.

Build the episodes of incidents resolved before the memory existed

Body (application/json, required): BackfillIn

Field Type Required Description
rebuild boolean no

Responses

  • 200 Successful Response: object

GET /memory/settings

Needs read:settings.

Whether the memory uses embeddings, and drafts playbooks on its own

Responses

  • 200 Successful Response: object

PUT /memory/settings

Needs write:settings.

Turn embeddings or automatic playbooks on or off

Body (application/json, required): MemorySettingsIn

Field Type Required Description
embeddings boolean no
embedding_model string or null no
auto_playbooks boolean no

Responses

  • 200 Successful Response: object