Discussions

Ask a Question
ANSWERED

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)
ANSWERED

Deactivate user in degreed

Does degreed has option to deactivate a created user? If so which api and attribute need to be used?

[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!
ANSWERED

[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
ANSWERED

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.
ANSWERED

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
ANSWERED

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.
ANSWERED

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!
ANSWERED

How can I jump to a section in a pathway via an external link?

Hi all, I've been experimenting with this for hours, hoping someone on here can help. We've designed an online induction and are using a degreed pathway as the resources page with links to additional materials. There are currently 14 sections, so it would be great to enable learners to directly jump to relevant section when they click a link to the pathway. I worked out the "table of contents" for the pathway uses "section-x" ids (x being the numbers of the sections), and they work internally, i.e. while I'm viewing the pathway page, however I don't seem to be able to jump to these ids if I use an external link. For example, if I click <https://eu.degreed.com/pathway/k953nxxxx/pathway#section-14>, the link gets changed to <https://eu.degreed.com/pathway/k953nxxxxsection-14/pathway> by the browser and I receive the error message _"Uh Oh! Looks like you don't have access to this page. If you feel like this is an error, please contact our support team."_ Any help with this would be kindly appreciated. Thanks in anticipation, Chris
ANSWERED

SSO MetaData URL

Hey, I am trying to implement the SAML SSO, Here I need metadata URL can you guide me where to find it right now I am using you betatestaccount