Skip to main content

Memory Entries

SDK methods for the Memory Entries module, accessed via soat.memoryEntries. See the Memory Entries module docs for permissions and data model, and each method's REST page for the full request/response schema.

soat.memoryEntries.listMemoryEntries()

List memory entries

  • Method: GET
  • Path: /api/v1/memory-entries
await soat.memoryEntries.listMemoryEntries({
query: { memory_id, /* + optional */ },
});

Request & response schema

soat.memoryEntries.createMemoryEntry()

Create a memory entry

  • Method: POST
  • Path: /api/v1/memory-entries
await soat.memoryEntries.createMemoryEntry({
body: { memory_id, content, /* + optional */ },
});

Request & response schema

soat.memoryEntries.getMemoryEntry()

Get a memory entry

  • Method: GET
  • Path: /api/v1/memory-entries/{entry_id}
await soat.memoryEntries.getMemoryEntry({
path: { entry_id },
});

Request & response schema

soat.memoryEntries.updateMemoryEntry()

Update a memory entry

  • Method: PUT
  • Path: /api/v1/memory-entries/{entry_id}
await soat.memoryEntries.updateMemoryEntry({
path: { entry_id },
body: { /* + optional */ },
});

Request & response schema

soat.memoryEntries.deleteMemoryEntry()

Delete a memory entry

  • Method: DELETE
  • Path: /api/v1/memory-entries/{entry_id}
await soat.memoryEntries.deleteMemoryEntry({
path: { entry_id },
});

Request & response schema