Update the organisation units of a program.

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.

Value

A response

Details

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

Examples

if (FALSE) { assign_ous(df, program_id = "BCnz7XE4olS") assign_ous(df, program_id = "BCnz7XE4olS", live = TRUE) }