# shellcheck shell=bash
# https://gitee.com/api/v5/swagger#/putV5NotificationsThreads

___x_cmd_gt_notification_mark() {
    param:scope     ___x_cmd_gt
    param:dsl       '
options:
    #1                "id of notification thread"         <>

    --json|-j         "output json data"
'
    param:run

    local thread_id="$1"
    if ___x_cmd_gt_curl patch "/notifications/threads/$thread_id" 1>/dev/null; then
        ___x_cmd_ui_tf true "Successfully mark [notification:$thread_id] as read"
    else
        ___x_cmd_ui_tf false "Mark notification as read failure." >&2
        ___x_cmd_gt____handle_resp
    fi

}



