---
title: "Update memory via Dify"
method: PUT
path: "/api/v1/dify/memories/{memory_id}"
tags: ["dify"]
---

# Update memory via Dify

`PUT /api/v1/dify/memories/{memory_id}`

Update an existing memory via Dify integration

## Path parameters

- `memory_id` string, required

## Headers

- `authorization` string

## Request body

- DifyMemoryUpdate — Memory update model optimized for Dify workflows.
  - `content` string, nullable — Updated memory content
  - `tags` string[], nullable — Updated memory tags
  - `category` string, nullable — Updated memory category
  - `importance` integer, nullable — Updated importance (1-10)
  - `source` string, nullable — Updated source identifier
  - `metadata` object, nullable — Updated additional metadata
  - `workflow_id` string, nullable — Updated Dify workflow ID
  - `execution_id` string, nullable — Updated Dify workflow run / execution identifier

## Response `200`

Successful Response

- DifyMemoryResponse — Response model for Dify memory operations.
  - `id` string, required
  - `content` string, required
  - `tags` string[], nullable
  - `category` string, nullable
  - `importance` integer, nullable
  - `created_at` string, required
  - `space_name` string, required
  - `metadata` object, nullable
  - `relevance_score` number, nullable — Relevance score for search results
  - `workflow_id` string, nullable
  - `execution_id` string, nullable

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/memara/apis/memara-api.md) · [All operations](https://skmtc.dev/memara/apis/memara-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/memara/memara-api/revisions/4dc7c4418845/schema)
