---
title: "Change whether an asset can be shared by the guest AI"
method: PATCH
path: "/knowledge/sources/{sourceId}/sharing"
---

# Change whether an asset can be shared by the guest AI

`PATCH /knowledge/sources/{sourceId}/sharing`

## Request

- Base URL: `https://platform-api.visitoai.com/m2m/v1`
- URL: `https://platform-api.visitoai.com/m2m/v1/knowledge/sources/{sourceId}/sharing`
- Auth: HTTP bearer

Enable/disable existing asset sharing and optionally edit asset title/description. sourceId comes from list_knowledge_sources with assetsOnly=true. Sharing readiness still requires validationStatus=ready and applicable active folder/scope; enabling does not make asset-only content answer knowledge or clear malware failures. This is separate from KB activation. Required permission: knowledge:write. Connected business only; no tenant override.

## Path parameters

- `sourceId` string, required

## Request body

- KnowledgeSharingInput
  - `enabled` boolean, required
  - `title` string
  - `description` string

## Response `200`

Success

- KnowledgeAssetResult
  - `asset` KnowledgeAsset, required
    - `sourceId` string, required
    - `title` string, required
    - `description` string
    - `mediaType` 'image' | 'document'
    - `contentType` string, required
    - `filename` string, required
    - `sizeBytes` integer, required
    - `active` boolean, required
    - `validationStatus` 'unsupported' | 'pending' | 'ready' | 'blocked' | 'failed', required
    - `validationFindings` string[], required
    - `propertyId` string
    - `propertyName` string
    - `folderId` string

## Other responses

- `400`: Invalid request
- `403`: Missing permission
- `404`: Resource not found
- `409`: Conflict; read state and reconcile

---

[API](https://skmtc.dev/visitoai/apis/visito-m2m-api.md) - [All operations](https://skmtc.dev/visitoai/apis/visito-m2m-api/llms.txt) - [OpenAPI document](https://skmtc.dev/visitoai/apis/visito-m2m-api/revisions/98377d35c234?raw)
