# shellcheck shell=bash
# https://gitea.com/api/swagger#/notification/notifyReadThread

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

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

    local id="$1"

    ___x_cmd_fjo_notification_mark___raw |\
        ___x_cmd_fjo_notification____ui_handler Mark

}

___x_cmd_fjo_notification_mark___raw(){
    ___x_cmd_fjo_curl patch "/notifications/threads/$id"
}
