> ## Documentation Index
> Fetch the complete documentation index at: https://docs.visitoai.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Change the AI guest photo limit

> Set maxImagesPerReply using expectedUpdatedAt from a fresh get_ai_asset_sharing_settings read (null when absent). A conflicting update returns 409; reload and reconcile. This changes the existing per-reply guest image limit without activating assets/folders, creating knowledge or sending messages. Required permission: ai_settings:write. Connected business only; no tenant override.



## OpenAPI

````yaml /openapi.json put /settings/ai/asset-sharing
openapi: 3.0.3
info:
  title: Visito M2M API
  version: 1.0.0
  description: >-
    Tenant-scoped server-to-server API for channels, conversations, commerce,
    custom AI tools, and WhatsApp templates. Send operations are asynchronous
    and return queued acknowledgements. Expansion adds conversation controls,
    knowledge, sales opportunities, delivery status, reporting, and signed
    webhooks.
servers:
  - url: https://platform-api.visitoai.com/m2m/v1
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Channels
  - name: Conversations
  - name: Commerce
  - name: Custom tools
  - name: WhatsApp templates
  - name: Properties
  - name: Knowledge
  - name: Sales CRM
  - name: Delivery
  - name: Reporting
  - name: Webhooks
paths:
  /settings/ai/asset-sharing:
    put:
      summary: Change the AI guest photo limit
      description: >-
        Set maxImagesPerReply using expectedUpdatedAt from a fresh
        get_ai_asset_sharing_settings read (null when absent). A conflicting
        update returns 409; reload and reconcile. This changes the existing
        per-reply guest image limit without activating assets/folders, creating
        knowledge or sending messages. Required permission: ai_settings:write.
        Connected business only; no tenant override.
      operationId: update_ai_asset_sharing_settings
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AiAssetSharingInput'
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AiAssetSharing'
        '400':
          description: Invalid request
        '403':
          description: Missing permission
        '404':
          description: Resource not found
        '409':
          description: Conflict; read state and reconcile
components:
  schemas:
    AiAssetSharingInput:
      type: object
      additionalProperties: false
      properties:
        maxImagesPerReply:
          type: integer
          minimum: 1
          maximum: 15
        expectedUpdatedAt:
          type: string
          maxLength: 64
          description: >-
            Copy updatedAt from the immediately preceding settings read; null
            only when no updatedAt was returned. A stale version returns
            SETTINGS_CONFLICT (409); reload and reconcile.
          nullable: true
      required:
        - maxImagesPerReply
        - expectedUpdatedAt
    AiAssetSharing:
      type: object
      additionalProperties: false
      properties:
        maxImagesPerReply:
          type: integer
          minimum: 1
          maximum: 15
        updatedAt:
          type: string
          maxLength: 128
      required:
        - maxImagesPerReply
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Visito M2M API key
      description: Server-side tenant-scoped credential created from Build > API Keys.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.