Legacy Dev Forum Posts

 View Only

Sign Up

  • 1.  Bulk add skills to user

    Posted 06-05-2025 18:09

    Smith_Warren | 2023-08-29 17:27:06 UTC | #1

    Hello,

    Can someone help me to understand the example provided here:

    apiinstance = PureCloudPlatformClientV2.UsersApi() userid = 'useridexample' # str | User ID body = [PureCloudPlatformClientV2.UserRoutingSkillPost()] # list[UserRoutingSkillPost] | Skill apiresponse = apiinstance.patchuserroutingskillsbulk(userid, body)

    How do we list the desired skills?


    anon28885283 | 2023-08-30 09:53:22 UTC | #2

    Hi Warren,

    Body needs to be a list of UserRoutingSkillPost. So you can do something like:

    api_instance = PureCloudPlatformClientV2.UsersApi()
    user_id = 'user_id_example' # str | User ID
    
    skill_1 = UserRoutingSkillPost()
    skill_1.id = 'id of skill'    # required property
    skill_1.proficiency = 1   # also required
    # ...
    
    body = [skill_1] # [skill_1, skill_2, etc..] for multiple skills
    api_response = api_instance.patch_user_routingskills_bulk(user_id, body)

    system | 2023-09-30 09:53:57 UTC | #3

    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: 21754