Skip to main content

Community

Other: Confirmation Response for "DELETE" Request with Webhooks

Please sign in to leave a comment.

Comments

4 comments

  • Official comment
    Alexa Maturana-Lowe User

    Chase Cottle - good to see your name and thanks for engaging with our webhook feature! We're in the process of moving it to BETA. I'll work with engineering to see how easy this fix is and let you know timing if we prioritize it!

  • Alexa Maturana-Lowe User

    Hi Chase Cottle -  returning any message together with 204 response code violates RFC 2616 which says The 204 response MUST NOT include a message-body. We have two options here: violate RFC and return text message, or introduce breaking change and use 200 return code. What would you do if you were me and why? 

    That's good to know I didn't know that :) I'm not the most advanced user but to me I think I'd rather see a 200 response, and probably a json body message as the response. 

    I don't think this is urgent or required but to me it'd be a little bit better to see a 200 and something like this:

     

    {

    "id" : {webhook_id}

    "status" : "deleted"

    "message" : "webhook was succesfully deleted"

    }

     

    Obviously reasonable to just build into systems to handle the 204, but that'd be my preference at least :) 

  • Alexa Maturana-Lowe User

    Awesome - we'll keep this in the backlog for now and identify the path forward and let you know!