Widget

Update widget configuration

Changed on

Updates the web widget configuration for the agent. Only provided fields are updated (partial update). When avatarUrl is changed, the old CDN avatar is automatically deleted from S3. The avatarUrl must be a URL from the platform's CDN domain. Use POST /agent/{id}/avatar/presigned-url to upload first.

patch/agent/{id}/widget-config

Request

  • Base URL
    https://api.smallest.ai/atoms/v1
  • URL
    https://api.smallest.ai/atoms/v1/agent/{id}/widget-config
  • Auth
    HTTP bearer

Path parameters

idstring required

Agent ObjectId

Request body

Response

Updated widget configuration

successboolean
dataobject

The updated widgetConfig object

Example response

{
  "success": true
}

Changes

    • info

      api tag Widget added

    • info

      api tag Agents removed

    • info

      endpoint deprecated

    • breaking

      removed the media type application/json for the response with the status

    • warning

      removed the request property /

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property / from the response with the status

    • warning

      removed the optional property from the response with the status

    • info

      api operation id updateAgentWidgetConfig was added

    • info

      the request property became optional

    • info

      the / request property's minLength was decreased from 1 to 0

    • info

      the / request property's minLength was decreased from 1 to 0

    • info

      the / request property's minLength was decreased from 1 to 0

    • info

      the / request property's minLength was decreased from 1 to 0

    • info

      the / request property's minLength was decreased from 1 to 0

    • info

      added the optional property to the response with the status