Sana

App · 18 actions

Browse and manage Sana Learn users, groups, programs, courses, and teamspaces.

Actions

ActionWhat it does
Create a groupCreate a group in your Sana Learn organization.
Create a userCreate a user in your Sana Learn organization.
Delete a groupDelete a group in your Sana Learn organization.
Get a courseGet a course in your Sana Learn organization.
Get a groupGet a group in your Sana Learn organization.
Get a programGet a program in your Sana Learn organization.
Get a teamspaceGet a teamspace in your Sana Learn organization.
Get a userGet a user in your Sana Learn organization.
List all groupsList all groups in your Sana Learn organization.
List all programsList all programs in your Sana Learn organization.
List all teamspacesList all teamspaces in your Sana Learn organization.
List all usersList all users in your Sana Learn organization.
List all users in a groupList all users in a group in your Sana Learn organization.
List available reportsList available reports in your Sana Learn organization.
List coursesList courses in your Sana Learn organization.
List user assignmentsList user assignments in your Sana Learn organization.
Update a groupUpdate a group in your Sana Learn organization.
Update a userUpdate a user in your Sana Learn organization.

Create a group

Create a group in your Sana Learn organization.

Inputs

Namerecord_nametextRequired
The name of the group
Typetypetext
Type of group: program, user, user_manualOne of: program, user, user_manual (User manual).

Outputs

dataobject
The response from Sana.
Example output
{
  "data": {
    "data": {
      "id": "example",
      "name": "example",
      "type": "example"
    }
  }
}

Create a user

Create a user in your Sana Learn organization.

Inputs

EmailemailtextRequired
The user's email address
First namefirst_nametext
The first name of the user
Last namelast_nametext
The last name of the user
Roleroletext
One of `learner`, `group-admin` or `admin`One of: learner, group-admin, admin.
Languagelanguagetext
A language tag (IETF BCP 47) supported by your organization.
Custom attributescustom_attributestext
For storing arbitrary key/value pairs. The keyset needs to be pre-configured.

Outputs

dataobject
The response from Sana.
Example output
{
  "data": {
    "data": {
      "createdAt": "example",
      "customAttributes": {},
      "email": "example",
      "firstName": "example",
      "id": "example",
      "inviteLink": "example",
      "language": "example",
      "lastName": "example",
      "role": "example",
      "status": "example"
    }
  }
}

Delete a group

Delete a group in your Sana Learn organization.

Inputs

Groupgroup_idtextRequired
Group id.

Outputs

dataobject
The response from Sana.
Example output
{
  "data": {}
}

Get a course

Get a course in your Sana Learn organization.

Inputs

Coursecourse_idtextRequired
Course id.

Outputs

dataobject
The response from Sana.
Example output
{
  "data": {
    "data": {
      "contentAttributes": {
        "categoryIds": [],
        "customAttributes": []
      },
      "defaultDuration": false,
      "description": "example",
      "durationMinutes": 1,
      "externalId": "example",
      "id": "example",
      "imageUrl": "example",
      "tags": [],
      "title": "example",
      "type": "example"
    }
  }
}

Get a group

Get a group in your Sana Learn organization.

Inputs

Groupgroup_idtextRequired
Group id.

Outputs

dataobject
The response from Sana.
Example output
{
  "data": {
    "data": {
      "id": "example",
      "name": "example",
      "type": "example"
    }
  }
}

Get a program

Get a program in your Sana Learn organization.

Inputs

Programprogram_idtextRequired
Program id.

Outputs

dataobject
The response from Sana.
Example output
{
  "data": {
    "data": {
      "description": "example",
      "id": "example",
      "imageUrl": "example",
      "name": "example",
      "selfEnrollmentEnabled": false
    }
  }
}

Get a teamspace

Get a teamspace in your Sana Learn organization.

Inputs

Teamspaceteamspace_idtextRequired
Teamspace id.

Outputs

dataobject
The response from Sana.
Example output
{
  "data": {
    "data": {
      "teamspace": {
        "defaultRole": "example",
        "description": "example",
        "id": "example",
        "isPrivate": false,
        "managedViaApi": false,
        "name": "example"
      }
    }
  }
}

Get a user

Get a user in your Sana Learn organization.

Inputs

Userrecord_user_idtextRequired
User id.

Outputs

dataobject
The response from Sana.
Example output
{
  "data": {
    "data": {
      "activatedAt": "example",
      "createdAt": "example",
      "customAttributes": {},
      "disabled": false,
      "email": "example",
      "firstName": "example",
      "id": "example",
      "isManager": false,
      "isSsoEmail": false,
      "lastInviteSentAt": "example",
      "lastName": "example",
      "role": "example",
      "status": "example",
      "type": "example"
    }
  }
}

List all groups

List all groups in your Sana Learn organization.

Inputs

Nextnexttext
Set to fetch the next batch of groups.
Limitlimitnumber
The number of groups to return. Max: 1000From 1 to 1000.

Outputs

dataobject
The response from Sana.
Example output
{
  "data": {
    "data": [],
    "links": {
      "next": "example"
    }
  }
}

List all programs

List all programs in your Sana Learn organization.

Inputs

Nextnexttext
Set to fetch the next batch of programs.
Limitlimitnumber
The number of programs to return. Max: 1000From 1 to 1000.
Only with self enrollmentonly_with_self_enrollmenttrue/false
List only programs with self-enrollment.

Outputs

dataobject
The response from Sana.
Example output
{
  "data": {
    "data": [],
    "links": {
      "next": "example"
    }
  }
}

List all teamspaces

List all teamspaces in your Sana Learn organization.

Inputs

Nextnexttext
Set to fetch the next batch of teamspaces.
Limitlimitnumber
The number of teamspaces to return. Max: 1000From 1 to 1000.

Outputs

dataobject
The response from Sana.
Example output
{
  "data": {
    "data": [],
    "links": {
      "next": "example"
    }
  }
}

List all users

List all users in your Sana Learn organization.

Inputs

Nextnexttext
Set to fetch the next batch of users.
Limitlimitnumber
The number of users to return. Max: 1000From 1 to 1000.
Created aftercreated_afterdate
Specify to fetch users created after this date (format: 2023-05-31)
Emailemailtext
Email address to filter users.

Outputs

dataobject
The response from Sana.
Example output
{
  "data": {
    "data": [],
    "links": {
      "next": "example"
    }
  }
}

List all users in a group

List all users in a group in your Sana Learn organization.

Inputs

Groupgroup_idtextRequired
Group id.
Nextnexttext
Set to fetch the next batch of users.
Limitlimitnumber
The number of users to return. Max: 1000From 1 to 1000.

Outputs

dataobject
The response from Sana.
Example output
{
  "data": {
    "data": [],
    "links": {
      "next": "example"
    }
  }
}

List available reports

List available reports in your Sana Learn organization.

Inputs

None.

Outputs

dataobject
The response from Sana.
Example output
{
  "data": {
    "data": []
  }
}

List courses

List courses in your Sana Learn organization.

Inputs

Nextnexttext
Set to fetch the next batch of courses.
Limitlimitnumber
The number of courses to return. Max: 1000From 1 to 1000.
External IDexternal_idtext
Set to fetch the course with matching external identifier.

Outputs

dataobject
The response from Sana.
Example output
{
  "data": {
    "data": [],
    "links": {
      "next": "example"
    }
  }
}

List user assignments

List user assignments in your Sana Learn organization.

Inputs

Userrecord_user_idtextRequired
User id.
Content typecontent_typetext
Filter assignments using content types. Allowed values: `course`One of: course.
Identity typeidentity_typetext
Filter assignments using identity types. Allowed values: `user`, `program`One of: user, program.

Outputs

dataobject
The response from Sana.
Example output
{
  "data": {
    "data": []
  }
}

Update a group

Update a group in your Sana Learn organization.

Inputs

Groupgroup_idtextRequired
Group id.
Namerecord_nametext
The name of the group

Outputs

dataobject
The response from Sana.
Example output
{
  "data": {
    "data": {
      "id": "example",
      "name": "example",
      "type": "example"
    }
  }
}

Update a user

Update a user in your Sana Learn organization.

Inputs

Userrecord_user_idtextRequired
User id.
Emailemailtext
The user's email address
First namefirst_nametext
The first name of the user
Last namelast_nametext
The last name of the user
Disableddisabledtrue/false
If set to `true` the account is deactivated. If set to `false` the account is reactivated.
Roleroletext
One of `learner`, `group-admin` or `admin`One of: learner, group-admin, admin.
Languagelanguagetext
A language tag (IETF BCP 47) supported by your organization.
Custom attributescustom_attributestext
For storing arbitrary key/value pairs. The keyset needs to be pre-configured.

Outputs

dataobject
The response from Sana.
Example output
{
  "data": {
    "data": {
      "activatedAt": "example",
      "createdAt": "example",
      "customAttributes": {},
      "disabled": false,
      "email": "example",
      "firstName": "example",
      "id": "example",
      "isManager": false,
      "isSsoEmail": false,
      "lastName": "example",
      "role": "example",
      "status": "example",
      "type": "example"
    }
  }
}

On this page