Add Json Data Endpoint Documentation

    Description

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

    Endpoint

    • Method: POST
    • URL: /add-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 update the JSON files with.
    • phones: (optional) A list of JSON file names that the client wants to update specifically. If not provided, all files in the account folder will be updated with the given data.

    Example Request Body

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