anon91021094 | 2016-09-15 16:01:38 UTC | #1
I have been trying to use postman to add routing skills vai API call but getting 400 error.
Command: https://api.{{environment}}/api/v2/users/{{userId}}/routingskills Having valid user ID and following body to add "English" Skill and some other combination of name, proficiency and state regardless all of them are optional based on Developer page help.
https://developer.mypurecloud.com/api/rest/v2/users/index.html
{ "name": "English", "proficiency": "", "state": "active" }
Error message:
{ "status": 400, "code": "bad.request", "message": "The requested operation failed with status 400", "contextId": "b4984180-4872-4244-8694-299228d62c27", "details": [], "errors": [] }
Can some take a look and tell me what wrong I am doing? Please note that all other API calls are working and getting response correctly!
Thanks in advance.
Rohit
KevinGlinski | 2016-09-16 12:11:46 UTC | #2
Proficiency needs to be a number
proficiency (number, optional): Proficiency is a rating from 0.0 to 5.0 on how competent an agent is for a particular skill. It is used when a queue is set to "Best available skills" mode to allow acd interactions to target agents with higher proficiency ratings.
anon91021094 | 2016-09-16 12:52:34 UTC | #3
I did try with proficiency but getting same 400 error.
{ "name": "English", "proficiency": "0.0", "state": "active" }
Error message:
{ "status": 400, "code": "bad.request", "message": "The requested operation failed with status 400", "contextId": "b4984180-4872-4244-8694-299228d62c27", "details": [], "errors": [] }
Have you tried with any of your test Org to see if this is successful?
Thanks.
KevinGlinski | 2016-09-16 13:15:37 UTC | #4
number, not a string
{ "name": "English", "proficiency": 0.0, "state": "active" }
anon91021094 | 2016-09-16 13:38:41 UTC | #5
Tried following and failed with same error.
{ "name": "English", "proficiency": 1.0, "state": "active" }
{ "status": 400, "code": "bad.request", "message": "The requested operation failed with status 400", "contextId": "414aa020-956d-468b-92e6-99530f7e1623", "details": [], "errors": [] }
KevinGlinski | 2016-09-16 14:26:41 UTC | #6
looks like the api service isn't properly parsing the response from the backend service, i created API-1942. I think even though it is returning 400, the update was successful, what happens if you do a GET on that skill after the PUT?
anon91021094 | 2016-09-16 14:49:20 UTC | #7
In my case,
It does not update new skill (English) on the user profile after returing 400. I am using POST not PUT as it returns "invalid method" for api/v2/users/{UserID}/routingskills.
I really need to get this done by Monday as customer is having board meeting on Tuesday for PC order. Can I send you Org ID and User ID to test it at your end?
Alternatively, can you please confirm if we add new skill to an agent, is it dynamic or agent needs to logout and login back to take an ACD interaction with tagged skill? Currently, it is not dynamic if you add skills via UI.
Thanks. Rohit
system | 2017-08-28 19:27:18 UTC | #8
This post was migrated from the old Developer Forum.
ref: 405