---
title: "Update the authenticated user's Surface user context"
method: PUT
path: "/api/me/surface/user-context"
tags: ["Surface"]
---

# Update the authenticated user's Surface user context

`PUT /api/me/surface/user-context`

## Request

- Base URL: `https://api.sponsorunited.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sponsorunited.com/api/me/surface/user-context`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/me/surface/user-context/put.ts> (a function with typed inputs; its response is checked against the schema)

Upserts the authenticated user's own freeform Surface user context, preserving formatting verbatim. Owner-only: the value is always scoped to the authenticated user server-side.

## Request body

- SurfaceUserContextUpdateRequest
  - `context` string, nullable, required: Freeform user context injected into Surface LLM prompts. Formatting (markdown / line breaks) is preserved verbatim. Send null or an empty string to clear it.

## Response `200`

User context updated

- object
  - `data` object
    - `context` string, nullable

## Other responses

- `401`: Unauthenticated
- `422`: Validation error

---

[API](https://skmtc.dev/sponsorunited/apis/sponsorunited-api.md) - [All operations](https://skmtc.dev/sponsorunited/apis/sponsorunited-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sponsorunited/apis/sponsorunited-api/revisions/cbf1ca5bff8f?raw)
