Chat / Platform API
Current version: v3
    Chat Platform API v3
    Chat Platform API
    Chat
    Platform API
    Home
    /
    Chat
    /
    Platform API

    Update a feature

    Turns on and off a feature for a specific application.


    HTTP request

    PATCH https://gate.sendbird.com/api/v2/applications/{app_id}/features
    

    Parameters

    The following table lists the parameters that this action supports.

    Required
    Parameter nameTypeDescription

    app_id

    string

    Specifies the unique ID of an application.


    Request body

    Optional
    Property nameTypeDescription

    auto_thumbnail

    boolean

    Determines whether to turn on or off the thumbnail auto-generator feature. (Default: false)

    translation_tools

    boolean

    Determines whether to turn on or off the message auto-translation feature. (Default: false)

    image_moderation

    boolean

    Determines whether to turn on or off the image moderation feature. (Default: false)

    data_export

    boolean

    Determines whether to turn on or off the data export feature.

    domain_filter

    boolean

    Determines whether to turn on or off the domain filter feature. (Default: false)

    profanity_filter

    boolean

    Determines whether to turn on or off the profanity filter feature. (Default: false)

    delivery_receipt

    boolean

    Determines whether to turn on or off the delivery receipt feature.

    announcement

    boolean

    Determines whether to turn on or off the announcements feature. (Default: false)

    supergroup

    boolean

    Determines whether to turn on or off a Supergroup channel. (Default: false)

    advanced_analytics

    boolean

    Determines whether to turn on or off the advanced analytics feature.

    message_search

    boolean

    Determines whether to turn on or off the message search feature. (Default: false)

    {
        "auto_thumbnail": true,
        "domain_filter": true
    }
    

    Response

    If successful, this action returns a feature resource in the response body.

    {
        "auto_thumbnail": true,
        "translation_tools": false,
        "image_moderation": false,
        "moderation_tools": false,
        "domain_filter": true,
        "profanity_filter": false,
        "data_export": true,
        "delivery_receipt": false,
        "announcement": false,
        "supergroup": false,
        "advanced_analytics": false,
        "message_search": false
    }
    

    In the case of an error, an error object is returned. A detailed list of error codes is available here.