Discussions
Test Connection Endpoint?
Is there a test connection endpoint avaiable?
Posted by Toni 6 months ago
UTF-8 Issue
Hi Team,
We currently using api Create a New Course to push some new courses on Degreed, the issue is coming when for title and description French characters are been loaded with chinese symbols.
Example:
Title: Tést àccènten ôp Degreed
Description: Tést ôp LXP Degreed om àccenten te bekijken
...loading on degreed as
T鳴 ࣣ讴en 䰠Degreed
T鳴 䰠LXP Degreed om ࣣenten te bekijken
have you faced this before? how can I fix this issue?
Cheers,
John.
Posted by Johnattan Cardozo 6 months ago
I am trying to "Create a New Completion" and activity type in degreed is "Post". API call returns an error :"field content-type has the following problem: must be one of the following values: article, assessment, book, course, event, podcast, task, video". Is there a work around to this?
# mark completion for a user
import requests
url = "<https://api.degreed.com/api/v2/completions">
payload = { "data": {
"type": "completions",
"attributes": {
"is-verified": True,
"questions-correct": 0,
"percentile": 0,
"user-identifier-type": "**\***",
"user-id": "ALKnLZ",
"completed-at": "2023-10-30 00:00:00",
"content-type": "post",
"content-id": "eyBm9",
"content-id-type": "Id"
}
} }
headers = {
"accept": "application/json",
"content-type": "application/json",
"authorization": "Bearer Token
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)
Posted by Aizaz Khalid 6 months ago
Deactivate user in degreed
Does degreed has option to deactivate a created user? If so which api and attribute need to be used?
Posted by Viswanath Nuggu 7 months ago
[Error] Invalid user identifier on completions API
Whenever we try to make an API call to submit completions for a customer's learner using the completions endpoint([https://base-api-url/api/v2/completions](https://api.betatest.degreed.com/api/v2/completions)), we get this error "Invalid user identifier". We are using email as the identifier type and we are getting this error for a lot of learners. I can confirm that all these learners exist on the customers side and are valid learners. Posting below an example request/response body for reference.
**REQUEST**
```
{
"data": {
"type": "completions",
"attributes": {
"user-id": "[email protected]",
"user-identifier-type": "Email",
"content-id": "ABC+XYZ",
"content-id-type": "ExternalId",
"content-type": "course",
"completed-at": "2023-10-04T19:11:35.077Z",
"percentile": 60.0
}
}
}
```
**RESPONSE**
```
Client create_course_completion failed: {
"errors": [
{
"id": "exampleid",
"code": "bad-request",
"status": 400,
"title": "Bad Request",
"detail": "Invalid user identifier: [email protected]",
"source": "[email protected]"
}
]
}
```
Any help on this will be highly appreciated!
Posted by Sameen Fatima 7 months ago
[Error] user-identifier-type not working properly
Hi! I'm posting completions correctly by using Email as user-identifier-type, ONLY when the given user has EmployeeId filled. If the user has the employee-id as null, it doesn't work, no matter I'm specifying the user-identifier-type as Email.
I know, you can think: "Yeah, this guy is doing a wrong request"
My answer is: "No, I think I'm not. You have the necessary information below"
I've tested it by using your swagger, via Postman with my own credentials and via direct integration in our code. It doesn't work, we have always the same error.
You can reproduce with this information (I'm not sharing any authorization token).
I give you permission to test it out
Method: POST
Endpoint: <https://api.betatest.degreed.com/api/v2/completions>
Body: {"data":{"type":"completions","attributes":{"user-id":"[[email protected]](mailto:[email protected])","user-identifier-type":"Email","content-id":"pack_level_ar_a1","content-id-type":"ExternalId","content-type":"Course","completed-at":"2023-01-01T00:00:00.000Z"}}}
Can you, please check why you cannot POST a completion using the user-identifier-type Email if the user has no employee-id?
I'm waiting for your answer :smiley:
Thank you
Posted by Emilio Rueda 8 months ago
Custom Attribute Scope
I noticed that with the July release custom attributes have been added as end points.will we actually obtain those scope permissions? I'm also wondering if there will be a rules API, although I understand that could be complex.
I need to start testing out group of concept functionalities ASAP.
Posted by Zac M 10 months ago
Pathway Subsection sequence is ignored
Hello, when trying to create a Pathway, the sequences that I provide in my request are ignored and the API sequences the subsections in the order that the objects were provided in the JSON Array
Posted by Panagiotis Kanellidis 10 months ago
Endorsements attached to content
Right now the Pathway API calls allow us to see if a Pathway is endorsed or not. With now being able to endorse content at the content level, is there an enhancement that is planned in the near future for completions API calls? The immediate question we're trying to answer is if there is a significant difference between clicks on unendorsed vs. endorsed content.
Posted by Keri Fail 10 months ago
Mentoring flag on user record
For orgs which have the opportunities market place enabled, users have the option to make themselves available as mentors by enabling the "Become a Mentor" flag on their profile. Is it possible to retrieve this data point via the API?
If not, please consider adding this data point to the user record. This would enable orgs to pull a list of all employees who selected this option. For us this would be very valuable.
Thanks!
Posted by Mathias Jakob 10 months ago