Quick Summary: This tutorial covers the GraphQL operations for viewing, assigning, and updating learning resources (IDPs) for people in your SkillsDB company, including migration paths from the legacy API.
Get/List People Learnings (IDP)
-
On the legacy API access the used to an API which list all learnings (IDPs) which are assigned to peoples. The below API:
GET - {{baseURI}}/IDP/{{companyID}}?part={{part}}
-
On the new GraphQL API use the below query to list/get people learnings (IDPs)
Get/List Learnings(IDPs) for Person with Email Address
- On the legacy API there used to be an API to get learnings/IDPs for specific person by Email Address.
-
On the new GraphQL API we’ll use the above
getAllPeopleLearningSummaryquery by using email filter as below, for more on filtering please check out Filtering documentation.
Create and Assign Learning to a Person
- On the legacy API there used to be an API to create IDP record and assign to a person at the same time. Which is:
-
POST- {{baseURI}}/CreateIDPRecord/{{companyID}}with the below payload:
-
- On the new GraphQL API we’ll use the below mutation to create and assign learning/IDP to a person using email address:
Update Person learning (IDP)
-
On the legacy API there used to be an update API for persons learning plan (IDP). Which is:
-
POST - {{baseURI}}/skills/{{companyID}}with the below json
-
-
On the new GraphQL API we’ll use the above addAndAssignlearningComposite mutation with the below payload:
Need Help?
If you run into any issues or have questions, reach out to your organization’s SkillsDB administrator or contact SkillsDB Support.