banPatchDuration

fun banPatchDuration(banId: String, logReason: String, duration: Int): Int(source)

Endpoint for changing the ban duration

Endpoint: /Api/Ban/{banId}/Duration

Return

the response code

Parameters

banId

id of the ban

logReason

the reason for the duration change

duration

new duration for the ban in seconds

Throws

inherited from CedmodException