All Programs

List all available programs and their descriptions

Suggestic provides a list of available programs for the user to be assigned to. If a user is using the free version of the app, the Balanced Diet will be assigned automatically.

Use the Personalization Console to manage programs.

User Role

  • programs: Get the list of all available programs.

Available Fields

Field Name

Type

Description

id

ID

Id of the program

databaseId

String

Database Id of the program

name

String

Name of the program

author

String

Author of the program

isActive

Boolean

Ture if the program is active. Otherwise, it displays False

isPremium

Boolean

True if the program is premium. Otherwise, it displays False

restrictions

List

Returns the list of restrictions applied to a program. Use it as follows:

  • restrictions If no arguments are added it will return the unique ID

  • restrictions(encoded:true) will return an encoded b64ids. For example: UmVzdHJpY3Rpb246YzlhMmVjZGMtMWFmOS00MzRjLWE1MTktMGQ3ODg4MGQ5N2Yw. It can be used in the profileRestrictionsUpdate

  • restrictions(encoded:false)will return a unique ID. For example: c9a2ecdc-1af9-434c-a519-0d78880d97f0

See this example.

descriptionShort

String

Program short description

descriptionLong

String

Program long description

Example

Get the list of available programs

{
  programs {
    edges {
      node {
        id
        databaseId
        name
        author
        isActive
        isPremium
      }
    }
  }
}

UI/UX example

In the same way, we have code examples, this is an implementation example in which see results of the API execution in the Suggestic App.

Get the list of available restrictions encoded in b64ids

{
  programs
  {
    edges{
      node{
        id
        databaseId
        name
        author
        isActive
        isPremium
        restrictions (encoded:true)
      }
    }
  }
}

Last updated