Submissions API: Delete a submission through URL parameter

  • Profile Image
    nick_behrens89
    Asked on November 09, 2016 at 05:53 PM

    I'd like to be able to delete a submission via the API. Currently I can pull up a submission by typing this into my URL bar:

    https://api.jotform.com/submission/354526142941661845?apiKey=19246d4c7e04c123b6fa5f28d2b54610

     

    Can I add a "/delete" or something in there somewhere to make it delete the submission?

  • Profile Image
    EltonCris
    Answered on November 09, 2016 at 09:48 PM

    I think we do not have such parameter to delete the submission.

    You may consider using cURL or PHP code to handle the deletion.

    Example:

    For cURL

    curl -X DELETE "https://api.jotform.com/submission/{submissionID}?apiKey={apiKey}"

    For PHP

    $jotformAPI = new JotForm("YOUR API KEY");

    $result = $jotformAPI->deleteSubmission("SUBMISSION ID");

    Let me also escalate this to our developers. They'll decide if this can be implemented or not and update you here. Unfortunately, I don't know much about the possible risk of having this functionality so I can't give you any further words on this.

    Thanks!

  • Profile Image
    nick_behrens89
    Answered on November 09, 2016 at 11:44 PM
    No need! Figured it out.
    Built a tool that integrates Jotform and Filemaker through the API. Works awesome now! Thanks!!!!!
    Sent from my iPhone
    ...