create_division: Create a new division

Description Usage Arguments Value Examples

View source: R/divisions.R

Description

When setting permissions, any permissions left undefined will be enabled by default. If no permissions are included at all, then a default set of predefined permissions will be used. If a division permission is disabled at the organization level, then it will be disabled at the division level regardless of its state.

Usage

1
create_division(name, division_admins = NULL, permissions = NULL)

Arguments

name

the division name

division_admins

A JSON array of user ids to make division admins

permissions

A JSON object defining the division permissions.

Value

The id of the created division

Examples

1
2
3
4
5
6
## Not run: create_division("newdivision", "DV_1234567890AbCdE")
## Not run: 
admins <- list("UR_1234567890AbCdE", "UR_1234567890AbCdS")
create_division("newdivision", "DV_1234567890AbCdE", admins)

## End(Not run)

ppssphysics/QualtricsInR documentation built on Aug. 30, 2021, 8:12 a.m.