11-06-2023 04:49 AM
I'm having some issues with the 'Update SkillProfile By ID' API. I'm sending a PUT HTTP request to https://api.wxcc-us1.cisco.com/organization/<my orgID>/skill-profile/<skillprofileID> with the following body
Solved! Go to Solution.
11-07-2023 05:46 AM
Hi @Sundarsara ,
It seems the payload information which is provided in API doesn't work for me either. However I tried pasting payload information which i used in Postman and it worked.
You can use the same if you want
{
"activeSkills": [
{
"booleanValue": false,
"createdTime": 0,
"id": "",
"lastUpdatedTime": 0,
"organizationId": "",
"proficiencyValue": 0,
"skillId": "",
"textValue": "",
"version": 0
}
],
"createdTime": 0,
"description": "",
"id": "",
"lastUpdatedTime": 0,
"name": "",
"organizationId": "",
"version": 0
}
11-07-2023 07:42 AM
11-07-2023 08:17 AM
Happy to Help ☺️
11-07-2023 08:58 AM
Hi asmvar@1234 ,
Thanks for the help, but when we try to change proficiency for multiple SKILLID's am getting below error,
Body:
"id": "0787d7a8-6457-49b9-baa1-243c6ec99f20",
"name": "WBG_POC_KISHORE",
"description": "POC",
"activeSkills": [
{
"booleanValue": false,
"createdTime": 0,
"id": "9542c608-f268-4438-b672-f0169e5d55f9",
"lastUpdatedTime": 0,
"organizationId": "c0a54e64-768f-4541-b747-eec09e225252",
"proficiencyValue": 5,
"skillId": "ffb958ba-bc2f-4d53-ad2a-4b530ead6db0",
"textValue": "",
"version": 0
},
{
"booleanValue": false,
"createdTime": 0,
"id": "2339d9b6-4489-482b-a54b-521675ba6de8",
"lastUpdatedTime": 0,
"organizationId": "c0a54e64-768f-4541-b747-eec09e225252",
"proficiencyValue": 6,
"skillId": "e71605e2-3694-4bed-91f0-5b7cceb88ee5",
"textValue": "",
"version": 0
}
]
}
Error:
11-07-2023 11:48 PM
Hi @kkuppusamy1 ,
Ideally Skill Profile ID should be common and each skill definition ID will have individual value. As i noticed from the payload if your skill is not "Boolean" then you can keep value as blank and change only proficiency value. It does work for with one skill profile having multiple skills. sharing response.
Try this as payload for multiple skill definition
"activeSkills": [
{
"booleanValue": true,
"createdTime": 0,
"id": "",
"lastUpdatedTime": 0,
"organizationId": "",
"proficiencyValue": 0,
"skillId": "",
"textValue": "",
"version": 0
},
{
"booleanValue": true,
"createdTime": 0,
"id": "",
"lastUpdatedTime": 0,
"organizationId": "",
"proficiencyValue": 0,
"skillId": "",
"textValue": "",
"version": 0
}
],
11-07-2023 04:35 AM - edited 11-07-2023 04:46 AM
Hi asmvar@1234 ,
Thanks for your information.
We tried out with as your suggested information, now we could face new error message as below.
Also, note we are using put method to skill profile to change the proficiency of skill definition
Regards,
Sundarrajan S
11-07-2023 05:46 AM
Hi @Sundarsara ,
It seems the payload information which is provided in API doesn't work for me either. However I tried pasting payload information which i used in Postman and it worked.
You can use the same if you want
{
"activeSkills": [
{
"booleanValue": false,
"createdTime": 0,
"id": "",
"lastUpdatedTime": 0,
"organizationId": "",
"proficiencyValue": 0,
"skillId": "",
"textValue": "",
"version": 0
}
],
"createdTime": 0,
"description": "",
"id": "",
"lastUpdatedTime": 0,
"name": "",
"organizationId": "",
"version": 0
}
11-06-2023 08:33 AM
Hi asmvar@1234
Thanks for your reply.
Yes, we tried out Get Skill Profiles API and we used that output response into Update SkillProfile By ID API. Still we are facing the same issue. So, could you please help us further.
Regards,
Sundarrajan S
11-06-2023 10:13 PM
Hi @Sundarsara ,
Here you go with Payload information which i did for put request. In my case I was using Skill definition as "Boolean".
If you liked the suggestion please mark it as solution provided.
Regards
Asmit
11-06-2023 06:06 AM
It does work for me.. Try to comment out payload which is not needed. Get output of Get Skill Profiles and then accordingly make the required changes in payload.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide