---
title: "Change an AI conversation share"
method: PATCH
path: "/api/{org_id}/ai/shares/{share_id}"
tags: ["AI"]
---

# Change an AI conversation share

`PATCH /api/{org_id}/ai/shares/{share_id}`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/{org_id}/ai/shares/{share_id}`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/ai/shares/:share_id/patch.ts> (a function with typed inputs; its response is checked against the schema)

Changes the mode, expiry or tool redaction of one of the caller's shares, or moves a snapshot share to the conversation's latest history.

## Path parameters

- `org_id` string, required
- `share_id` string, required

## Request body

- object
  - `expires_in_secs` integer, nullable: A number sets a new expiry from now; `null` removes the expiry.
  - `mode` string, nullable
  - `redact_tools` boolean, nullable
  - `refresh_snapshot` boolean: Moves a snapshot share to the chat's latest committed history.

## Response `200`

The updated share

- object: A share as its owner sees it.
  - `access_count` integer, required
  - `created_at` integer, required
  - `expires_at` integer, nullable: Microseconds since the epoch; absent when the share never expires.
  - `id` string, required
  - `last_accessed_at` integer, nullable
  - `mode` string, required
  - `owner_email` string, nullable: The creator's email; only in the org-wide admin listing.
  - `owner_name` string, nullable: The creator's display name (email when unnamed); only in the org-wide admin listing.
  - `redact_tools` boolean, required: Readers see assistant text and tool names, never tool inputs or outputs.
  - `session_id` string, required
  - `snapshot_seq` integer, nullable
  - `title` string, required
  - `token` string, nullable: Bearer secret of the link; absent on other creators' rows of the org-wide listing.
  - `updated_at` integer, required
  - `url_path` string, nullable: Path of the web page that shows the share; absent whenever `token` is.
  - `visibility` string, required

## Other responses

- `400`: Invalid request
- `404`: Unknown share
- `415`: The body is not JSON

---

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