Box Developer Documentation
 

    Update AI agent

    Update AI agent

    The PUT /2.0/ai_agents/{id} endpoint allows you to update a custom AI agent based on its ID.

    Send a request

    To send a request, use the PUT /2.0/ai_agents/{id} endpoint.

    cURL
    curl -i -X PUT "https://api.box.com/2.0/ai_agents/1234567890" \
         -H "authorization: Bearer <ACCESS_TOKEN>"

    Parameters

    To make a call, you must pass the following parameters. Mandatory parameters are in bold.

    ParameterDescriptionExample
    typeThe type of agent used to handle queries.````
    nameThe name of the AI Agent.My AI Agent
    access_stateThe state of the AI Agent. Value is one of enabled disabled.enabled
    icon_referenceThe icon reference of the AI Agent. It should have format of the URL https://cdn01.boxcdn.net/app-assets/aistudio/avatars/<file_name>, where possible values of file_name are: logo_boxAi.png,logo_stamp.png,logo_legal.png,logo_finance.png,logo_config.png,logo_handshake.png,logo_analytics.png,logo_classification.pnghttps://cdn01.boxcdn.net/app-assets/aistudio/avatars/logo_analytics.svg
    allowed_entitiesList of allowed users or groups.
    askThe AI Agent to be used for ask.ask
    extractThe AI Agent to be used for extraction.
    text_genThe AI agent used for generating text.