H.Holloway | 2024-04-18 18:45:34 UTC | #1
Hi,
I just wanted to find if endpoint /api/v2/users/{userId}/routingskills only accepts one skill at a time. I am trying to add skills to a user but it only appears to add one skill.
This is the body that I am using
{
"id": "c164a589-8ac0-4fd4-a561-85fdc021ec71",
"proficiency": 0,
"id": "888c18f6-a694-454e-b2dd-a38fefbdf711",
"proficiency": 0,
"id": "6d9cb505-83e1-4f2f-bb3a-cf1a5e874340",
"proficiency": 0,
"id": "4c524c0d-90eb-4bde-a7a9-7766ae0a93e0",
"proficiency": 0,
"id": "08921088-98a9-4582-b166-a73b9b353c9a",
"proficiency": 0
}
and the response I receive is
{
"id": "08921088-98a9-4582-b166-a73b9b353c9a",
"name": "test",
"proficiency": 0,
"state": "active",
"skillUri": "/api/v2/routing/skills/08921088-98a9-4582-b166-a73b9b353c9a",
"selfUri": "/api/v2/users/33bfe777-d765-49ab-9747-32ab620c500a/routingskills/08921088-98a9-4582-b166-a73b9b353c9a"
}
Thank you.
tim.smith | 2024-04-18 18:56:51 UTC | #2
Hello, you aren't able to devise your own format for the request; you must make the request as documented. You can find the documentation for this endpoint here: POST /api/v2/users/{userId}/routingskills. It shows that the request is a single object.
If you want to do a bulk add, try one of the next resources in the list: PATCH /api/v2/users/{userId}/routingskills/bulk or PUT /api/v2/users/{userId}/routingskills/bulk.
H.Holloway | 2024-04-18 18:59:35 UTC | #3
Thank you @tim.smith , apologies, I did not look at those endpoints. That helps a lot and resolved my issue, I appreciate it very much.
Thanks again.
Harry
system | 2024-05-19 19:00:20 UTC | #4
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 25810