Delete Json Data Endpoint Documentation

    Description

    The Delete JSON Data endpoint allows clients to update data in JSON files within a specified account folder.

    Endpoint

    • Method: POST
    • URL: /delete-json-data

    Request Body

    The request body should be a JSON object with the following fields:

    • folder (required): The name of the folder containing the JSON files to process.
    • data: The data to delete the JSON files with.
    • phones: (optional) A list of JSON file names that the client wants to delete specifically. If not provided, all files in the account folder will be deleted with the given data.

    Example Request Body

    {
        "folder": "active",
        "data": {
            "new_data": 1
        },
        "phones": ["15413974489", "15617805889"],
    }