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"})

Layout

core.Layout(handle)

Load a layout document

  • layout handle

Layout

core.Layout

OrgList

AddSubscription

  • orgId
  • parentId
  • publisherSecret
  • publisherId

Three ways to call allowing application to child orgs up to 2 levels deep

  1. Without orgId or parentId - current org
  2. With orgId - orgId is the target, current org should be the parent
  3. With both orgId and parent Id - orgId is the target, parent Id should be the child of the current org (and the parent of orgId)

AddSubscriptionTransformation

  • orgId
  • parentId
  • entityKind
  • handle
  • dataPath
  • replaceValue

PullSubscription

No parameters

UpdateOrg

LoadOrg

PullSubscriptionChildren

  • orgId
  • parentId

OrgId

core.OrgId()

Returns the org id of the current org.