I cannot get this api to work I keep getting bad request, syntax error. The course ID is a number so I’m inputting the course id number but should it be the UUID? The skill I’m writing the name of as it is a string in the JSON code but should it be the skill ID number or another string. I get the same error if I put in the skill ID number as well as the code. The course_id works for other api’s so I can’t see what I’m doing wrong any help much appreciated.
It is easy to miss the Body Schema, it shows exactly what is needed. Looks like you need the Skill code.
Thank you I knew that was there as well from the last time I did this but completely forgot about it. Now I just have to work out what the items needs to be.
This should give you the codes you need. We do not use Skills but when I run this it comes back with 3 digit ID numbers for each skill.
I have this list, which is where I’m getting the numbers from. and they work when I retrieve a single skill information. So it must be somewhere else in the code that I’m missing something.
The “string” in skill_code should be 202 or whatever your sill code is, not “Coaching Skills”
This still gets the syntax error. I think the “items” needs to be changed rather than the codes
“items” is a container for you do be able to do multiple skills. It would look like this for multiple skills. The key element is the placement of commas. The last “item” in the array does NOT have a comma. All items before the last item need to have a comma.
Thanks @dwilburn I’ve tried so many permutaions of the code and funnily enough I’ve already watched both of those videos. Great minds think alike? I’ve ended up putting in a servide desk request as I’ve tried every permutaion of code and I’m getting weirder and weirder error messages. The skills code is not the ID, it’s something else entirely.
Hi @Lucy.blake - I was looking through the post related to the second session and Brian got into some discussions on skills with the users. You may want to take a look at that.
I am going to put up a post on removing assets from Power User provisioning, but it was a batch activity. Here is what it looks like in the body that is sent with multiple items. There is a comma after each “item” except for the last one.