Skip to content
SHAMPOO

Tool catalogue

archive_relations

Write · Ordinary · Knowledge graph

archive_relations

  • Category: knowledge
  • Access: write
  • Audience: ordinary (an ordinary user normally calls this directly)

Purpose

Archive relations. Records are preserved in history.

Arguments

Required: relations.

  • relations. Note: Array of from/to/relationType.

Result

JSON object with archived and already_archived counts.

Boundaries

Project-scoped; misses and foreign rows read as not found.

Lifecycle / side effects

Lifecycle only, never physical DELETE.

Errors

Bad shapes rejected. Failures move nothing (atomic).

Example

{
  "relations": []
}

Result shape:

{
  "archived": 1
}

See also

restore_relations.

On this page