assign_ous: Assign OUS to a program

Description Usage Arguments Details Value Examples

View source: R/program.R

Description

Update the organisation units of a program.

Usage

1
assign_ous(df = NULL, program_id = "program_id", live = F)

Arguments

df

A data.frame with organisationUnit ids

program_id

The id of the Program to update.

live

A logical input (TRUE/FALSE) specifying the change or where to apply to the changes. The default option is FALSE; the changes will be made at the test server. You can specify this option to TRUE to apply the changes in production.

Details

assign_ous updates the existing program ous with new organisation units (ous).

Value

A response

Examples

1
2
3
4
5
## Not run: 
assign_ous(df, program_id = "BCnz7XE4olS")
assign_ous(df, program_id = "BCnz7XE4olS", live = TRUE)

## End(Not run)

INyabuto/a360importer documentation built on Jan. 9, 2020, 4:25 p.m.