SDK Reference
Methods
CreateContext

createContext

Creates a new context that can be used to identify applications, groups, channels ect.

How to use?

const res = await orbis.createContext(options);

Parameters

  • options - object which contains context details
    • name - string Internal name of the context
    • displayName - string Displayed name of the context (in notifications or external feeds for example).
    • websiteUrl - string Context URL, can be used in notifications or external feeds.
    • project_id - string ID of the project this context is part of.
    • context - string If this context is a child of another context. Can be used to identify channels in a group for example.
    • accessRules - array See Access Gating
    • integrations - object 3rd party Context integrations, see Contexts

Returns

{
  status: 200,
  doc: "kjzl6cwe1...e4wvxhiqj",
  result: "Success creating TileDocument."
}