setGroups

fun setGroups(uri: String, groups: List<String>? = null, length: <Error class: unknown class>)

Sets a list of group names for the item with URI @uri. Each previously set group name list is removed.

If @uri cannot be found then an item for it is created.

Since

2.12

Parameters

uri

an item's URI

groups

an array of group names, or null to remove all groups

length

number of group name values in @groups