Sana
App · 18 actions
Browse and manage Sana Learn users, groups, programs, courses, and teamspaces.
Actions
| Action | What it does |
|---|---|
| Create a group | Create a group in your Sana Learn organization. |
| Create a user | Create a user in your Sana Learn organization. |
| Delete a group | Delete a group in your Sana Learn organization. |
| Get a course | Get a course in your Sana Learn organization. |
| Get a group | Get a group in your Sana Learn organization. |
| Get a program | Get a program in your Sana Learn organization. |
| Get a teamspace | Get a teamspace in your Sana Learn organization. |
| Get a user | Get a user in your Sana Learn organization. |
| List all groups | List all groups in your Sana Learn organization. |
| List all programs | List all programs in your Sana Learn organization. |
| List all teamspaces | List all teamspaces in your Sana Learn organization. |
| List all users | List all users in your Sana Learn organization. |
| List all users in a group | List all users in a group in your Sana Learn organization. |
| List available reports | List available reports in your Sana Learn organization. |
| List courses | List courses in your Sana Learn organization. |
| List user assignments | List user assignments in your Sana Learn organization. |
| Update a group | Update a group in your Sana Learn organization. |
| Update a user | Update a user in your Sana Learn organization. |
Create a group
Create a group in your Sana Learn organization.
Inputs
- Name
record_nametextRequired - The name of the group
- Type
typetext - 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
- Email
emailtextRequired - The user's email address
- First name
first_nametext - The first name of the user
- Last name
last_nametext - The last name of the user
- Role
roletext - One of `learner`, `group-admin` or `admin`One of:
learner,group-admin,admin. - Language
languagetext - A language tag (IETF BCP 47) supported by your organization.
- Custom attributes
custom_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
- Group
group_idtextRequired - Group id.
Outputs
dataobject- The response from Sana.
Example output
{
"data": {}
}Get a course
Get a course in your Sana Learn organization.
Inputs
- Course
course_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
- Group
group_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
- Program
program_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
- Teamspace
teamspace_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
- User
record_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
- Next
nexttext - Set to fetch the next batch of groups.
- Limit
limitnumber - 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
- Next
nexttext - Set to fetch the next batch of programs.
- Limit
limitnumber - The number of programs to return. Max: 1000From 1 to 1000.
- Only with self enrollment
only_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
- Next
nexttext - Set to fetch the next batch of teamspaces.
- Limit
limitnumber - 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
- Next
nexttext - Set to fetch the next batch of users.
- Limit
limitnumber - The number of users to return. Max: 1000From 1 to 1000.
- Created after
created_afterdate - Specify to fetch users created after this date (format: 2023-05-31)
- Email
emailtext - 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
- Group
group_idtextRequired - Group id.
- Next
nexttext - Set to fetch the next batch of users.
- Limit
limitnumber - 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
- Next
nexttext - Set to fetch the next batch of courses.
- Limit
limitnumber - The number of courses to return. Max: 1000From 1 to 1000.
- External ID
external_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
- User
record_user_idtextRequired - User id.
- Content type
content_typetext - Filter assignments using content types. Allowed values: `course`One of:
course. - Identity type
identity_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
- Group
group_idtextRequired - Group id.
- Name
record_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
- User
record_user_idtextRequired - User id.
- Email
emailtext - The user's email address
- First name
first_nametext - The first name of the user
- Last name
last_nametext - The last name of the user
- Disabled
disabledtrue/false - If set to `true` the account is deactivated. If set to `false` the account is reactivated.
- Role
roletext - One of `learner`, `group-admin` or `admin`One of:
learner,group-admin,admin. - Language
languagetext - A language tag (IETF BCP 47) supported by your organization.
- Custom attributes
custom_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"
}
}
}