Skip to content

Orgs

CreateChildOrg

core.CreateChildOrg({...})

Create a child org

  • Object
  • name:String
  • brandColor
  • secondaryColor
  • headerColor
  • navColor
  • brandStatus
  • parentId
  • fontColor
  • imageColor
  • options
  • displayName
  • actionColor
  • permissionDefault
  • website
  • description
  • address
  • phone

Id for new org

core.CreateChildOrg({...})

AddAdminUser

core.AddAdminUser({orgId="..", userId=".."})

Adds an admin user to a child org; child org must be a child of the current org

  • Object
  • orgId:String child id
  • userId user to make admin

Id or null

core.AddAdminUser({orgId="...", userId="..."})

HasChild

core.HasChild({...})

Find an org by name

  • Object
  • parentId org parent
  • name name to find

Id or null

core.HasChild({parentId="...", name="Test123"})