---
title: "Update Shared Credential Insights"
method: PATCH
path: "/v2/teams/{team_id}/credentials/{shared_credential_id}/insights"
tags: ["v2 - Shared Credentials"]
---

# Update Shared Credential Insights

`PATCH /v2/teams/{team_id}/credentials/{shared_credential_id}/insights`

## Request

- Base URL: `https://api.jubjubapp.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jubjubapp.com/v2/teams/{team_id}/credentials/{shared_credential_id}/insights`
- Auth: HTTP bearer

Switch team insights on or off for one shared channel (Tom, 2026-10-07).

- history_and_stats: the team's owner and admins may import this
  channel's history and read its public posts, stats and audience.
- recent_videos: they may also take caption text, and file links where
  enabled, for up to 10 recent public posts. Needs history_and_stats.

Only the credential's owner may change these, and only while the share is
active. Switching ON needs the owner signed in as themselves; an agent or
key may only switch OFF. Both start off and both clear on revoke.

## Path parameters

- `team_id` string, required
- `shared_credential_id` string, required

## Headers

- `Authorization` string
- `X-JubJub-Service-Key` string
- `X-JubJub-Agent-Key` string
- `X-JubJub-Platform-Key` string
- `Origin` string
- `Referer` string
- `X-JubJub-Trial-Token` string

## Request body

- ShareInsightsRequest: The owner's two team-insights switches. Omit one to leave it as it is.
  - `history_and_stats` boolean, nullable
  - `recent_videos` boolean, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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