Legacy Dev Forum Posts

 View Only

Sign Up

Getting a 405 error when Posting a Contact List Clear request

  • 1.  Getting a 405 error when Posting a Contact List Clear request

    Posted 06-05-2025 19:20

    Brad_Hoyle | 2019-03-07 22:23:09 UTC | #1

    I am following the instructions below to clear a contact list. However I get a 405 error which apparently means Method not Allowed, however it is the specified method in the resource guide.

    /api/v2/outbound/contactlists/{contactListId}/clear

    https://apps.mypurecloud.com.au/oauth/api/v2/outbound/LISTID/clear

    Error:

    <title>405 Method Not Allowed</title> </head> <body> <h1>405 Method Not Allowed</h1> <ul> <li>Code: MethodNotAllowed</li> <li>Message: The specified method is not allowed against this resource.</li> <li>Method: POST</li> <li>ResourceType: OBJECT</li>


    tim.smith | 2019-03-07 22:28:43 UTC | #2

    I'm not sure how you ended up with that URL, but you're not hitting the API. See the example request here: https://developer.mypurecloud.com/api/rest/v2/outbound/. Your request should be made to https://api.mypurecloud.com.au/api/v2/outbound/contactlists/{contactListId}/clear.


    Brad_Hoyle | 2019-03-07 22:34:32 UTC | #3

    Legend! Thanks, that worked perfectly.


    system | 2019-04-07 22:34:37 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: 4741