---
title: "Create or update a context entry"
method: PUT
path: "/context"
tags: ["context"]
---

# Create or update a context entry

`PUT /context`

Save context (ICP, Messaging Playbook, user profile) the moment the user says save or remember, identity facts as type "user-profile". A playbook write AMENDS the saved document: send the fields that change, a field left out is kept, a field sent as null is removed. Every other type replaces the whole entry, so merge the new information into what is already saved. Renaming is not a rewrite: send the saved scope with the new label and no content.

## Request body

- object
  - `type` string, required — One of four closed slots, user-profile, offering, icp or playbook, chosen by what the content means for outreach (global identity or offering, per-chat targeting, or a named first-DM voice), never a free-form custom:* slug.
  - `content` string — Markdown content, or the document itself when it is structured.
  - `scope` string — Omit scope and pass label so the server derives and attaches "user:icp:<slug>" or "user:playbook:<slug>" (identity/offering fields keep plain "user", rejected for icp/playbook); to reuse an asset already saved instead of rewriting it, send its existing scope alone with no content.
  - `label` string — Display label
  - `postTicketId` string — Internal ticket id from a prior tool result. Omit unless a result supplied it.

## Response `200`

Context saved

- object
  - `success` true, required
  - `entry` object, required
    - `id` string, required — Unique entry ID
    - `type` string, required
    - `label` string, nullable, required
    - `content` string, required — Full content (present when fullContent=true) or a 200-char preview
    - `contentPreview` string — First 200 chars of content — present when fullContent is not requested
    - `scope` string, required
    - `updatedAt` string, required
  - `creditsUsed` integer, required — Credits consumed by this call. 0 for free endpoints, cached results, duplicates, and for every query that does not touch LinkedIn.
  - `retryAfter` integer, required — Seconds to wait before another call of the same type. 0 means no wait is needed.
  - `_meta` object — Credit balance carried on every response so a caller never has to ask for it separately. Absent when the caller has no connected account.
    - `credits` object, required
      - `current` number, required — Credits spent this period.
      - `limit` number, nullable, required — Period allowance, or null when unlimited.
      - `remaining` number, nullable, required — Allowance left, or null when unlimited.
      - `percentage` number, required — Share of the allowance spent, 0 to 100.
      - `isUnlimited` boolean, required

## Other responses

- `400` — The server cannot or will not process the request due to something that is perceived to be a client error.
- `401` — Although HTTP specifies "unauthorized", this response means "unauthenticated". Authenticate to continue. NOTE: 401 is also returned with code "linkedin_not_connected" when the caller IS authenticated but has no connected LinkedIn account — connect LinkedIn (not re-authenticate) to continue.
- `403` — The client does not have access rights to the content.
- `404` — The server cannot find the requested resource.
- `409` — The request conflicts with the current state of the server.
- `410` — The requested content has been permanently deleted from the server.
- `422` — The request was well-formed but was unable to be followed due to semantic errors.
- `429` — Rate limit exceeded. Read error.retryAfter for the wait time in seconds.
- `500` — The server encountered a situation it does not know how to handle.
- `502` — LinkedIn returned a server error or the proxy connection failed. Retry after a few seconds.
- `503` — Proxy capacity temporarily exceeded. Retry after a few seconds.

## Changes

> 13 revisions in range; 1 not diffed.

- **2026-09-03** `8c33435d5253` — 1 info
  - the `content` request property default value `` was removed
- **2026-08-28** `62bf7284843d` — 1 breaking
  - removed the required property `_meta/credits/accountPlan` from the response with the `200` status
- **2026-08-27** `d5f1141f87e3` — 11 warning
  - added the new `pacing` enum value to the `error/quotaKind` response property for the response status `400`
  - added the new `pacing` enum value to the `error/quotaKind` response property for the response status `401`
  - added the new `pacing` enum value to the `error/quotaKind` response property for the response status `403`
  - added the new `pacing` enum value to the `error/quotaKind` response property for the response status `404`
  - …7 more
- **2026-08-19** `1ad91026000b` — 1 info
  - added the optional property `_meta` to the response with the `200` status

[Change history](https://skmtc.dev/berea/apis/bereach-api/changes/context/put.md)

---

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