LearnWorlds

App · 27 actions

Manage LearnWorlds learners, courses, enrollments, user groups, payments and certificates.

Actions

ActionWhat it does
Add a user to a user groupAdd a user to a user group.
Add or remove user tagsAdd tags to a user or take tags off them, leaving their other tags as they are.
Create a courseCreate an empty course, ready to fill in LearnWorlds' course editor.
Create a userCreate a user in the school.
Create a user groupCreate a user group, optionally with courses its members get.
Delete a user groupDelete a user group.
Enroll a userEnroll a user in a course, bundle or subscription.
Get a courseGet one course.
Get a paymentGet one payment.
Get a userGet a user by ID or email address.
Get a user groupGet one user group.
Get a user's course progressGet how far a user has got in a course: status, progress, score, time spent and completion date.
List a course's usersList the users enrolled in a course.
List a user's coursesList the courses a user is enrolled in, with their enrollment dates and prices.
List bundlesList the school's bundles.
List certificatesList the certificates issued to a user or for a course.
List coursesList the school's courses, newest first, optionally only some categories.
List paymentsList payments, newest first, optionally for one user or product or a date range.
List user groupsList the school's user groups.
List usersList the school's users, newest first, optionally filtered by status, role, tags or registration date.
Remove a user from a user groupTake a user out of a user group.
Suspend a userSuspend a user so they cannot sign in.
Unenroll a userTake a user out of a course, bundle or subscription.
Unsuspend a userLet a suspended user sign in again.
Update a courseChange a course's title, description, price, access, categories or label.
Update a userChange a user's email, username, profile fields or tags.
Update a user groupRename a user group or change its description, courses or settings.

Add a user to a user group

Add a user to a user group.

Inputs

User groupgroup_idtextRequired
The user group.
Learnerlearner_idtextRequired
The learner, by LearnWorlds user ID or email address.

Outputs

dataobject
The response from LearnWorlds.
Example output
{
  "data": {
    "success": false
  }
}

Add or remove user tags

Add tags to a user or take tags off them, leaving their other tags as they are.

Inputs

Learnerlearner_idtextRequired
The learner, by LearnWorlds user ID or email address.
TagstagslistRequired
The tags to add or remove.
ChangechangetextRequired
Add the tags (attach) or remove them (detach).One of: attach, detach.

Outputs

dataobject
The response from LearnWorlds.
Example output
{
  "data": {
    "billing_info": {},
    "created": 1.0,
    "email": "example",
    "eu_customer": false,
    "fields": {
      "address": "example",
      "behance": "example",
      "bio": "example",
      "birthday": "example",
      "company": "example",
      "company_size": "example",
      "country": "example",
      "dribbble": "example",
      "fb": "example",
      "github": "example",
      "graduation_year": "example",
      "instagram": "example",
      "linkedin": "example",
      "location": "example",
      "phone": "example",
      "skype": "example",
      "twitter": "example",
      "university": "example",
      "url": "example"
    },
    "first_name": "example",
    "id": "example",
    "is_admin": false,
    "is_affiliate": false,
    "is_instructor": false,
    "is_reporter": false,
    "is_suspended": false,
    "last_login": 1.0,
    "last_name": "example",
    "nps_comment": "example",
    "nps_score": 1,
    "referrer_id": "example",
    "role": {
      "level": "admin",
      "name": "example"
    },
    "signup_approval_status": "passed",
    "subscribed_for_marketing_emails": false,
    "tags": [],
    "username": "example",
    "utms": {
      "fc_country": "example",
      "fc_landing": "example",
      "fc_referrer": "example",
      "fc_utm_campaign": "example",
      "fc_utm_content": "example",
      "fc_utm_medium": "example",
      "fc_utm_source": "example",
      "fc_utm_term": "example",
      "lc_country": "example",
      "lc_landing": "example",
      "lc_referrer": "example",
      "lc_utm_campaign": "example",
      "lc_utm_content": "example",
      "lc_utm_medium": "example",
      "lc_utm_source": "example",
      "lc_utm_term": "example"
    }
  }
}

Create a course

Create an empty course, ready to fill in LearnWorlds' course editor.

Inputs

Course IDcourse_keytextRequired
A unique ID for the course, used in its address, such as intro-to-sales.
TitletitletextRequired
The course title.
AccessaccesstextRequired
Who can reach the course.One of: paid, free, coming_soon (Coming soon), private, draft.
Descriptiondescriptiontext
The course description.
Pricepricenumber
The course price.At least 0.
Categoriescategorieslist
The categories the course belongs in.
Labellabeltext
A label shown on the course card.

Outputs

dataobject
The response from LearnWorlds.
Example output
{
  "data": {
    "access": "paid",
    "afterPurchase": {
      "navigationType": "global",
      "settings": {
        "page": "example",
        "url": "example"
      },
      "type": "thankyou"
    },
    "author": {
      "image": "example",
      "name": "example"
    },
    "categories": [],
    "courseImage": "example",
    "created": 1.0,
    "description": "example",
    "discount_price": 1.0,
    "dripFeed": "date",
    "expires": 1,
    "expiresType": "days",
    "final_price": 1.0,
    "id": "example",
    "identifiers": {
      "apple_store_id": "example",
      "google_store_id": "example",
      "slug": "example"
    },
    "label": "example",
    "modified": 1.0,
    "original_price": 1.0,
    "taxSettings": {
      "taxExemptionMode": "school_default",
      "taxExemptionRegulationReference": "example"
    },
    "title": "example"
  }
}

Create a user

Create a user in the school. LearnWorlds sends them a registration email unless you turn it off.

Inputs

EmailemailtextRequired
The learner's email address.
UsernameusernametextRequired
The learner's username, shown in the school.
Passwordpasswordtext
A password for the learner. Leave blank and they set their own.
Locationlocationtext
Where the learner is based.
Phonephonetext
The learner's phone number.
Companycompanytext
The learner's company.
Countrycountrytext
The learner's country.
Tagstagslist
Tags to give the learner.
Subscribed to marketing emailssubscribed_for_marketing_emailstrue/false
Whether the learner agreed to receive marketing emails.
Send registration emailsend_registration_emailtrue/false
Whether LearnWorlds sends the learner its registration email.

Outputs

dataobject
The response from LearnWorlds.
Example output
{
  "data": {
    "billing_info": {},
    "created": 1.0,
    "email": "example",
    "eu_customer": false,
    "fields": {
      "address": "example",
      "behance": "example",
      "bio": "example",
      "birthday": "example",
      "company": "example",
      "company_size": "example",
      "country": "example",
      "dribbble": "example",
      "fb": "example",
      "github": "example",
      "graduation_year": "example",
      "instagram": "example",
      "linkedin": "example",
      "location": "example",
      "phone": "example",
      "skype": "example",
      "twitter": "example",
      "university": "example",
      "url": "example"
    },
    "first_name": "example",
    "id": "example",
    "is_admin": false,
    "is_affiliate": false,
    "is_instructor": false,
    "is_reporter": false,
    "is_suspended": false,
    "last_login": 1.0,
    "last_name": "example",
    "nps_comment": "example",
    "nps_score": 1,
    "referrer_id": "example",
    "role": {
      "level": "admin",
      "name": "example"
    },
    "signup_approval_status": "passed",
    "subscribed_for_marketing_emails": false,
    "tags": [],
    "username": "example",
    "utms": {
      "fc_country": "example",
      "fc_landing": "example",
      "fc_referrer": "example",
      "fc_utm_campaign": "example",
      "fc_utm_content": "example",
      "fc_utm_medium": "example",
      "fc_utm_source": "example",
      "fc_utm_term": "example",
      "lc_country": "example",
      "lc_landing": "example",
      "lc_referrer": "example",
      "lc_utm_campaign": "example",
      "lc_utm_content": "example",
      "lc_utm_medium": "example",
      "lc_utm_source": "example",
      "lc_utm_term": "example"
    }
  }
}

Create a user group

Create a user group, optionally with courses its members get.

Inputs

TitletitletextRequired
The group's name.
Descriptiondescriptiontext
What the group is for.
Coursescourseslist
Courses the group's members get.
Enroll members in coursesenroll_users_on_coursestrue/false
Enroll members in the group's courses as soon as they join.
Maximum membersmax_number_of_usersnumber
The most members the group can have. Leave blank for no limit.At least 1.
Tagstagslist
Tags given to everyone added to the group.

Outputs

dataobject
The response from LearnWorlds.
Example output
{
  "data": {
    "created": 1.0,
    "description": "example",
    "enroll_users_on_courses": false,
    "group_managers": [],
    "id": "example",
    "max_number_of_users": 1.0,
    "modified": 1.0,
    "products": {
      "courses": [],
      "learning_programs": []
    },
    "tags": [],
    "title": "example"
  }
}

Delete a user group

Delete a user group. LearnWorlds finishes the deletion in the background.

Inputs

User groupgroup_idtextRequired
The user group.

Outputs

dataobject
The response from LearnWorlds.
Example output
{
  "data": {
    "async": false,
    "job_id": "example"
  }
}

Enroll a user

Enroll a user in a course, bundle or subscription.

Inputs

Learnerlearner_idtextRequired
The learner, by LearnWorlds user ID or email address.
Product IDproduct_idtextRequired
The ID of the course, bundle or subscription.
Product typeproduct_typetextRequired
What kind of product it is.One of: course, bundle, subscription.
Pricepricenumber
What the user paid, recorded on the enrollment. Leave blank for 0.At least 0.
Justificationjustificationtext
A note on why the user was enrolled.
Send enrollment emailsend_enrollment_emailtrue/false
Whether LearnWorlds sends the user its enrollment email.

Outputs

dataobject
The response from LearnWorlds.
Example output
{
  "data": {
    "success": false
  }
}

Get a course

Get one course.

Inputs

Coursecourse_idtextRequired
The course.

Outputs

dataobject
The response from LearnWorlds.
Example output
{
  "data": {
    "access": "paid",
    "afterPurchase": {
      "navigationType": "global",
      "settings": {
        "page": "example",
        "url": "example"
      },
      "type": "thankyou"
    },
    "author": {
      "image": "example",
      "name": "example"
    },
    "categories": [],
    "courseImage": "example",
    "created": 1.0,
    "description": "example",
    "discount_price": 1.0,
    "dripFeed": "date",
    "expires": 1,
    "expiresType": "days",
    "final_price": 1.0,
    "id": "example",
    "identifiers": {
      "apple_store_id": "example",
      "google_store_id": "example",
      "slug": "example"
    },
    "label": "example",
    "modified": 1.0,
    "original_price": 1.0,
    "taxSettings": {
      "taxExemptionMode": "school_default",
      "taxExemptionRegulationReference": "example"
    },
    "title": "example"
  }
}

Get a payment

Get one payment.

Inputs

Payment IDpayment_idtextRequired
The payment's ID.

Outputs

dataobject
The response from LearnWorlds.
Example output
{
  "data": {
    "affiliate": {
      "code": "example",
      "commission_amount": 1.0,
      "commission_percentage": 1.0,
      "id": "example",
      "payment_status": "new",
      "username": "example"
    },
    "billing_info": {},
    "coupon": "example",
    "created": 1.0,
    "discount": 1.0,
    "gateway": "example",
    "id": "example",
    "instructors": [],
    "instructors_total_percentage": 1.0,
    "invoice": "example",
    "paid_at": 1.0,
    "payment_plan_current_payment": 1,
    "payment_plan_total_payments": 1,
    "period": "example",
    "price": 1.0,
    "product": {
      "description": "example",
      "discount_price": 1.0,
      "final_price": 1.0,
      "id": "example",
      "image": "example",
      "name": "example",
      "original_price": 1.0,
      "trial_days": 1,
      "type": "course"
    },
    "refund_at": 1.0,
    "tax_amount": 1.0,
    "tax_percentage": 1.0,
    "transaction_id": "example",
    "type": "subscription",
    "user_id": "example"
  }
}

Get a user

Get a user by ID or email address.

Inputs

Learnerlearner_idtextRequired
The learner, by LearnWorlds user ID or email address.

Outputs

dataobject
The response from LearnWorlds.
Example output
{
  "data": {
    "billing_info": {},
    "created": 1.0,
    "email": "example",
    "eu_customer": false,
    "fields": {
      "address": "example",
      "behance": "example",
      "bio": "example",
      "birthday": "example",
      "company": "example",
      "company_size": "example",
      "country": "example",
      "dribbble": "example",
      "fb": "example",
      "github": "example",
      "graduation_year": "example",
      "instagram": "example",
      "linkedin": "example",
      "location": "example",
      "phone": "example",
      "skype": "example",
      "twitter": "example",
      "university": "example",
      "url": "example"
    },
    "first_name": "example",
    "id": "example",
    "is_admin": false,
    "is_affiliate": false,
    "is_instructor": false,
    "is_reporter": false,
    "is_suspended": false,
    "last_login": 1.0,
    "last_name": "example",
    "nps_comment": "example",
    "nps_score": 1,
    "referrer_id": "example",
    "role": {
      "level": "admin",
      "name": "example"
    },
    "signup_approval_status": "passed",
    "subscribed_for_marketing_emails": false,
    "tags": [],
    "username": "example",
    "utms": {
      "fc_country": "example",
      "fc_landing": "example",
      "fc_referrer": "example",
      "fc_utm_campaign": "example",
      "fc_utm_content": "example",
      "fc_utm_medium": "example",
      "fc_utm_source": "example",
      "fc_utm_term": "example",
      "lc_country": "example",
      "lc_landing": "example",
      "lc_referrer": "example",
      "lc_utm_campaign": "example",
      "lc_utm_content": "example",
      "lc_utm_medium": "example",
      "lc_utm_source": "example",
      "lc_utm_term": "example"
    }
  }
}

Get a user group

Get one user group.

Inputs

User groupgroup_idtextRequired
The user group.

Outputs

dataobject
The response from LearnWorlds.
Example output
{
  "data": {
    "created": 1.0,
    "description": "example",
    "enroll_users_on_courses": false,
    "group_managers": [],
    "id": "example",
    "max_number_of_users": 1.0,
    "modified": 1.0,
    "products": {
      "courses": [],
      "learning_programs": []
    },
    "tags": [],
    "title": "example"
  }
}

Get a user's course progress

Get how far a user has got in a course: status, progress, score, time spent and completion date.

Inputs

Learnerlearner_idtextRequired
The learner, by LearnWorlds user ID or email address.
Coursecourse_idtextRequired
The course.

Outputs

dataobject
The response from LearnWorlds.
Example output
{
  "data": {
    "average_score_rate": 1.0,
    "completed_at": 1.0,
    "completed_units": 1,
    "progress_per_section_unit": [],
    "progress_rate": 1.0,
    "status": "not_started",
    "time_on_course": 1,
    "total_units": 1
  }
}

List a course's users

List the users enrolled in a course.

Inputs

Coursecourse_idtextRequired
The course.
Include suspendedinclude_suspendedtrue/false
Include suspended users.
Pagepagenumber
Which page of results to return, starting at 1.At least 1.
Items per pageitems_per_pagenumber
How many results to return on each page.From 1 to 200.

Outputs

dataobject
The response from LearnWorlds.
Example output
{
  "data": {
    "data": [],
    "meta": {
      "itemsPerPage": 1.0,
      "page": 1.0,
      "totalItems": 1.0,
      "totalPages": 1.0
    }
  }
}

List a user's courses

List the courses a user is enrolled in, with their enrollment dates and prices.

Inputs

Learnerlearner_idtextRequired
The learner, by LearnWorlds user ID or email address.
Pagepagenumber
Which page of results to return, starting at 1.At least 1.

Outputs

dataobject
The response from LearnWorlds.
Example output
{
  "data": {
    "data": [],
    "meta": {
      "itemsPerPage": 1.0,
      "page": 1.0,
      "totalItems": 1.0,
      "totalPages": 1.0
    }
  }
}

List bundles

List the school's bundles.

Inputs

Pagepagenumber
Which page of results to return, starting at 1.At least 1.

Outputs

dataobject
The response from LearnWorlds.
Example output
{
  "data": {
    "data": [],
    "meta": {
      "itemsPerPage": 1.0,
      "page": 1.0,
      "totalItems": 1.0,
      "totalPages": 1.0
    }
  }
}

List certificates

List the certificates issued to a user or for a course. Give at least one of the two.

Inputs

Userlearnertext
Only certificates of this user, by ID or email address.
Coursecourse_idtext
Only certificates for this course.
Statusstatustext
Only certificates with this status.One of: active, expired, revoked.
Pagepagenumber
Which page of results to return, starting at 1.At least 1.

Outputs

dataobject
The response from LearnWorlds.
Example output
{
  "data": {
    "data": [],
    "meta": {
      "itemsPerPage": 1.0,
      "page": 1.0,
      "totalItems": 1.0,
      "totalPages": 1.0
    }
  }
}

List courses

List the school's courses, newest first, optionally only some categories.

Inputs

Categoriescategoriestext
Only courses in these categories, separated by commas.
Pagepagenumber
Which page of results to return, starting at 1.At least 1.

Outputs

dataobject
The response from LearnWorlds.
Example output
{
  "data": {
    "data": [],
    "meta": {
      "itemsPerPage": 1.0,
      "page": 1.0,
      "totalItems": 1.0,
      "totalPages": 1.0
    }
  }
}

List payments

List payments, newest first, optionally for one user or product or a date range.

Inputs

Userlearnertext
Only payments by this user, by ID or email address.
Product IDproduct_idtext
Only payments for this product.
Product typeproduct_typetext
Only payments for this kind of product.One of: course, bundle, subscription.
Created aftercreated_afterdate and time
Only payments made after this time.
Created beforecreated_beforedate and time
Only payments made before this time.
Pagepagenumber
Which page of results to return, starting at 1.At least 1.
Items per pageitems_per_pagenumber
How many results to return on each page.From 1 to 200.

Outputs

dataobject
The response from LearnWorlds.
Example output
{
  "data": {
    "data": [],
    "meta": {
      "itemsPerPage": 1.0,
      "page": 1.0,
      "totalItems": 1.0,
      "totalPages": 1.0
    }
  }
}

List user groups

List the school's user groups.

Inputs

Pagepagenumber
Which page of results to return, starting at 1.At least 1.

Outputs

dataobject
The response from LearnWorlds.
Example output
{
  "data": {
    "data": [],
    "meta": {
      "itemsPerPage": 1.0,
      "page": 1.0,
      "totalItems": 1.0,
      "totalPages": 1.0
    }
  }
}

List users

List the school's users, newest first, optionally filtered by status, role, tags or registration date.

Inputs

Statusstatustext
Only users with this status.One of: paying, non_paying (Non paying), suspended, never_logged_in (Never logged in).
Roleroletext
Only users with this role.One of: user, admin, instructor, reporter, license_reporter (License reporter).
Tagstagstext
Only users with these tags, separated by commas.
Registered afterregistered_afterdate and time
Only users who registered after this time.
Registered beforeregistered_beforedate and time
Only users who registered before this time.
Pagepagenumber
Which page of results to return, starting at 1.At least 1.
Items per pageitems_per_pagenumber
How many results to return on each page.From 1 to 200.

Outputs

dataobject
The response from LearnWorlds.
Example output
{
  "data": {
    "data": [],
    "meta": {
      "itemsPerPage": 1.0,
      "page": 1.0,
      "totalItems": 1.0,
      "totalPages": 1.0
    }
  }
}

Remove a user from a user group

Take a user out of a user group.

Inputs

User groupgroup_idtextRequired
The user group.
Learnerlearner_idtextRequired
The learner, by LearnWorlds user ID or email address.

Outputs

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

Suspend a user

Suspend a user so they cannot sign in. This also removes them from their user groups and seats.

Inputs

Learnerlearner_idtextRequired
The learner, by LearnWorlds user ID or email address.

Outputs

dataobject
The response from LearnWorlds.
Example output
{
  "data": {
    "billing_info": {},
    "created": 1.0,
    "email": "example",
    "eu_customer": false,
    "fields": {
      "address": "example",
      "behance": "example",
      "bio": "example",
      "birthday": "example",
      "company": "example",
      "company_size": "example",
      "country": "example",
      "dribbble": "example",
      "fb": "example",
      "github": "example",
      "graduation_year": "example",
      "instagram": "example",
      "linkedin": "example",
      "location": "example",
      "phone": "example",
      "skype": "example",
      "twitter": "example",
      "university": "example",
      "url": "example"
    },
    "first_name": "example",
    "id": "example",
    "is_admin": false,
    "is_affiliate": false,
    "is_instructor": false,
    "is_reporter": false,
    "is_suspended": false,
    "last_login": 1.0,
    "last_name": "example",
    "nps_comment": "example",
    "nps_score": 1,
    "referrer_id": "example",
    "role": {
      "level": "admin",
      "name": "example"
    },
    "signup_approval_status": "passed",
    "subscribed_for_marketing_emails": false,
    "tags": [],
    "username": "example",
    "utms": {
      "fc_country": "example",
      "fc_landing": "example",
      "fc_referrer": "example",
      "fc_utm_campaign": "example",
      "fc_utm_content": "example",
      "fc_utm_medium": "example",
      "fc_utm_source": "example",
      "fc_utm_term": "example",
      "lc_country": "example",
      "lc_landing": "example",
      "lc_referrer": "example",
      "lc_utm_campaign": "example",
      "lc_utm_content": "example",
      "lc_utm_medium": "example",
      "lc_utm_source": "example",
      "lc_utm_term": "example"
    }
  }
}

Unenroll a user

Take a user out of a course, bundle or subscription.

Inputs

Learnerlearner_idtextRequired
The learner, by LearnWorlds user ID or email address.
Product IDproduct_idtextRequired
The ID of the course, bundle or subscription.
Product typeproduct_typetextRequired
What kind of product it is.One of: course, bundle, subscription.

Outputs

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

Unsuspend a user

Let a suspended user sign in again. Their earlier groups and seats are not restored.

Inputs

Learnerlearner_idtextRequired
The learner, by LearnWorlds user ID or email address.

Outputs

dataobject
The response from LearnWorlds.
Example output
{
  "data": {
    "billing_info": {},
    "created": 1.0,
    "email": "example",
    "eu_customer": false,
    "fields": {
      "address": "example",
      "behance": "example",
      "bio": "example",
      "birthday": "example",
      "company": "example",
      "company_size": "example",
      "country": "example",
      "dribbble": "example",
      "fb": "example",
      "github": "example",
      "graduation_year": "example",
      "instagram": "example",
      "linkedin": "example",
      "location": "example",
      "phone": "example",
      "skype": "example",
      "twitter": "example",
      "university": "example",
      "url": "example"
    },
    "first_name": "example",
    "id": "example",
    "is_admin": false,
    "is_affiliate": false,
    "is_instructor": false,
    "is_reporter": false,
    "is_suspended": false,
    "last_login": 1.0,
    "last_name": "example",
    "nps_comment": "example",
    "nps_score": 1,
    "referrer_id": "example",
    "role": {
      "level": "admin",
      "name": "example"
    },
    "signup_approval_status": "passed",
    "subscribed_for_marketing_emails": false,
    "tags": [],
    "username": "example",
    "utms": {
      "fc_country": "example",
      "fc_landing": "example",
      "fc_referrer": "example",
      "fc_utm_campaign": "example",
      "fc_utm_content": "example",
      "fc_utm_medium": "example",
      "fc_utm_source": "example",
      "fc_utm_term": "example",
      "lc_country": "example",
      "lc_landing": "example",
      "lc_referrer": "example",
      "lc_utm_campaign": "example",
      "lc_utm_content": "example",
      "lc_utm_medium": "example",
      "lc_utm_source": "example",
      "lc_utm_term": "example"
    }
  }
}

Update a course

Change a course's title, description, price, access, categories or label.

Inputs

Coursecourse_idtextRequired
The course.
Titletitletext
The course title.
Descriptiondescriptiontext
The course description.
Pricepricenumber
The course price.At least 0.
Accessaccesstext
Who can reach the course.One of: paid, free, coming_soon (Coming soon), enrollment_closed (Enrollment closed), private, draft.
Categoriescategorieslist
The categories the course belongs in.
Labellabeltext
A label shown on the course card.

Outputs

dataobject
The response from LearnWorlds.
Example output
{
  "data": {
    "access": "paid",
    "afterPurchase": {
      "navigationType": "global",
      "settings": {
        "page": "example",
        "url": "example"
      },
      "type": "thankyou"
    },
    "author": {
      "image": "example",
      "name": "example"
    },
    "categories": [],
    "courseImage": "example",
    "created": 1.0,
    "description": "example",
    "discount_price": 1.0,
    "dripFeed": "date",
    "expires": 1,
    "expiresType": "days",
    "final_price": 1.0,
    "id": "example",
    "identifiers": {
      "apple_store_id": "example",
      "google_store_id": "example",
      "slug": "example"
    },
    "label": "example",
    "modified": 1.0,
    "original_price": 1.0,
    "taxSettings": {
      "taxExemptionMode": "school_default",
      "taxExemptionRegulationReference": "example"
    },
    "title": "example"
  }
}

Update a user

Change a user's email, username, profile fields or tags.

Inputs

Learnerlearner_idtextRequired
The learner, by LearnWorlds user ID or email address.
Emailemailtext
The learner's email address.
Usernameusernametext
The learner's username, shown in the school.
Locationlocationtext
Where the learner is based.
Phonephonetext
The learner's phone number.
Companycompanytext
The learner's company.
Countrycountrytext
The learner's country.
Tagstagslist
Tags to give the learner.
Subscribed to marketing emailssubscribed_for_marketing_emailstrue/false
Whether the learner agreed to receive marketing emails.

Outputs

dataobject
The response from LearnWorlds.
Example output
{
  "data": {
    "billing_info": {},
    "created": 1.0,
    "email": "example",
    "eu_customer": false,
    "fields": {
      "address": "example",
      "behance": "example",
      "bio": "example",
      "birthday": "example",
      "company": "example",
      "company_size": "example",
      "country": "example",
      "dribbble": "example",
      "fb": "example",
      "github": "example",
      "graduation_year": "example",
      "instagram": "example",
      "linkedin": "example",
      "location": "example",
      "phone": "example",
      "skype": "example",
      "twitter": "example",
      "university": "example",
      "url": "example"
    },
    "first_name": "example",
    "id": "example",
    "is_admin": false,
    "is_affiliate": false,
    "is_instructor": false,
    "is_reporter": false,
    "is_suspended": false,
    "last_login": 1.0,
    "last_name": "example",
    "nps_comment": "example",
    "nps_score": 1,
    "referrer_id": "example",
    "role": {
      "level": "admin",
      "name": "example"
    },
    "signup_approval_status": "passed",
    "subscribed_for_marketing_emails": false,
    "tags": [],
    "username": "example",
    "utms": {
      "fc_country": "example",
      "fc_landing": "example",
      "fc_referrer": "example",
      "fc_utm_campaign": "example",
      "fc_utm_content": "example",
      "fc_utm_medium": "example",
      "fc_utm_source": "example",
      "fc_utm_term": "example",
      "lc_country": "example",
      "lc_landing": "example",
      "lc_referrer": "example",
      "lc_utm_campaign": "example",
      "lc_utm_content": "example",
      "lc_utm_medium": "example",
      "lc_utm_source": "example",
      "lc_utm_term": "example"
    }
  }
}

Update a user group

Rename a user group or change its description, courses or settings. A course list given replaces the group's courses.

Inputs

User groupgroup_idtextRequired
The user group.
TitletitletextRequired
The group's name.
Descriptiondescriptiontext
What the group is for.
Coursescourseslist
Courses the group's members get. Leave blank to keep the current ones.
Enroll members in coursesenroll_users_on_coursestrue/false
Enroll members in the group's courses as soon as they join.
Maximum membersmax_number_of_usersnumber
The most members the group can have.At least 1.
Tagstagslist
Tags given to everyone added to the group.

Outputs

dataobject
The response from LearnWorlds.
Example output
{
  "data": {
    "created": 1.0,
    "description": "example",
    "enroll_users_on_courses": false,
    "group_managers": [],
    "id": "example",
    "max_number_of_users": 1.0,
    "modified": 1.0,
    "products": {
      "courses": [],
      "learning_programs": []
    },
    "tags": [],
    "title": "example"
  }
}

On this page