Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Is this avilable in the CLI? uploads contactlist

    Posted 05-28-2025 02:09

    I'm running into an issue with loading an extensive contact list using PowerShell 

    $Body | gc outbound contactlists contacts create

    Can I use the CLI to upload a CSV and update contact lists?

    I found this https://developer.genesys.cloud/routing/outbound/upload-contacts-guide
    but I can't find 'https://apps.mypurecloud.com/uploads/v2/contactlist' in the CLI

     



    #PlatformCLI

    ------------------------------
    Pat Johnson
    Sr. Solutions Analyst
    ------------------------------


  • 2.  RE: Is this avilable in the CLI? uploads contactlist

    Posted 05-28-2025 08:47

    Hi Pat,

    Our CLI is completely generated from our Swagger docs.  The endpoint in question is not in our Swagger document, hence why it's not in the Swagger document.  I have an inquiry for the development team to find out why they are referencing what we call a private endpoint (which we don't have many of) and why it is not included in the documentation.  At this moment, I dont think you can upload the contact list directly with the CLI.  Though since you are using powershell you could still call the REST endpoint.

    Let me get some more background from the development team that owns this endpoint and then I can proceed.

    Thanks,

       John



    ------------------------------
    John Carnell
    Director, Developer Engagement
    ------------------------------



  • 3.  RE: Is this avilable in the CLI? uploads contactlist

    Posted 05-28-2025 10:18

    Thank you. I will look at the REST endpoint for now.



    ------------------------------
    Pat Johnson
    Sr. Solutions Analyst
    ------------------------------



  • 4.  RE: Is this avilable in the CLI? uploads contactlist

    Posted 05-29-2025 23:48

    After I use /uploads/v2/contactlist, I get a response of 

    correlationId
    -------------
    c6740b7e-1d51-412d-b1a2-6dc2e0ceada7


    When I check the status of my upload, I get 
    {
      "state": "FAILED",
      "totalRecords": 862,
      "completedRecords": 0,
      "percentComplete": 0,
      "failureReason": "MISSING_CUSTOM_ID"


    Where do I add the CUSTOM_ID?



    ------------------------------
    Pat Johnson
    Sr. Solutions Analyst
    ------------------------------



  • 5.  RE: Is this avilable in the CLI? uploads contactlist

    Posted 06-02-2025 13:36

    anyone know what i need to do?



    ------------------------------
    Pat Johnson
    Sr. Solutions Analyst
    ------------------------------



  • 6.  RE: Is this avilable in the CLI? uploads contactlist

    Posted 06-02-2025 17:23

    I was missing the Content-Disposition



    ------------------------------
    Pat Johnson
    Sr. Solutions Analyst
    ------------------------------