---
title: "Update an SRE Agent memory"
method: PUT
path: "/sre_agent/memories/{id}"
tags: ["SRE Agent"]
---

# Update an SRE Agent memory

`PUT /sre_agent/memories/{id}`

Update an existing SRE Agent memory.

Scoped OAuth requires: `sre_agent.write`

## Path parameters

- `id` string, required

## Headers

- `Accept` string, required
- `Content-Type` 'application/json', required

## Request body

- object
  - `memory` object, required
    - `content` string, required — The content of the SRE memory.

## Response `200`

The SRE Agent memory that was updated.

- object
  - `memory` SREMemory, required
    - `id` string — The unique identifier for this memory.
    - `content` string, required — The content of the SRE memory.
    - `attributes` object — Additional attributes associated with this memory.
      - `account_id` string — The ID of the account this memory is associated with.
      - `service_id` string — The ID of the service this memory is associated with.
      - `incident_id` string — The ID of the incident this memory is associated with.
      - `type` 'runbook' | 'service_profile' | 'incident_playbook' | 'incident_summary' — The type of memory.
    - `created_at` string, date-time — The date and time the memory was created.
    - `updated_at` string, date-time — The date and time the memory was last updated.

## Other responses

- `400` — Caller provided invalid arguments. Please review the response for error details. Retrying with the same arguments will *not* work.
- `401` — Caller did not supply credentials or did not provide the correct credentials. If you are using an API key, it may be invalid or your Authorization header may be malformed.
- `403` — Caller is not authorized to view the requested resource. While your authentication is valid, the authenticated user or token does not have permission to perform this action.
- `404` — The requested resource was not found.
- `429` — Too many requests have been made, the rate limit has been reached.

---

[API](https://skmtc.net/pagerduty/apis/rest-api.md) · [All operations](https://skmtc.net/pagerduty/apis/rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pagerduty/rest-api/versions/b679a8f3f02c/schema)
