{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/mnemoverse-com/json-schema/mnemoverse-com-replace-secret-request-schema.json",
  "title": "ReplaceSecretRequest",
  "description": "PUT /vault/secrets/by-alias/{alias}: the new value and context for an alias that\nalready holds an active secret. The alias is the path parameter.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/mnemoverse-com-vault-api-openapi.yml#/components/schemas/ReplaceSecretRequest",
  "properties": {
    "context": {
      "type": "string",
      "maxLength": 10000,
      "title": "Context",
      "description": "In-clear routing/usage context. Listed by GET /vault/secrets and kept in GET /memory/export as a row with atom_type 'secret'. Not returned by memory search (POST /memory/read, /memory/read-batch, /memory/query, /memory/recent), nor by the point reads by atom id or external_ref or the atom chain, which answer 404 as for an atom that does not exist. The single-tenant WS /memory/stream (off in multi-tenant deployments) still carries it."
    },
    "sealed_secret_b64": {
      "type": "string",
      "maxLength": 262144,
      "title": "Sealed Secret B64",
      "description": "Base64 of the envelope-encrypted value bytes."
    },
    "concepts": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "title": "Concepts"
    },
    "domain": {
      "type": "string",
      "title": "Domain",
      "default": "secrets"
    },
    "metadata": {
      "additionalProperties": true,
      "type": "object",
      "title": "Metadata"
    }
  },
  "type": "object",
  "required": [
    "context",
    "sealed_secret_b64"
  ]
}