Get Changelog

Get a list of changes to files or folders that have happened recently.

Request

POST https://test-uni.cloudplan.biz/api/user/get_changelog

{
    "for_organisation": true/false      //(bool, optional) get all changes relevant to the callers for_organisation
    "do_counts": true/false             //(bool, optional) return the total of changes in the last 24 hours
    "user_ids": ["..."]                 //(list of strings, optional) specify a list of user ids and return changes relevant to these users
    "skip": 0                           //(integer, optional) skip some changes and return the next ones
    "number": 10                        //(integer, optional) return this many documents
    "created_at_gt": 0                  //(integer, optional) return only actions created after this timestamp
    "action_types": []                  //(list of strings, optional) return only these actions
    "include_weblinks": true/false      //(bool, optional) include information about weblinks for each action doc
}

Reply

EXAMPLE REQUEST
{
    "for_organisation": true,
    "do_counts": true
}

EXAMPLE REPLY
{
    "result": true,
    "action_docs": [
        {
            "parent_id": "19375A5F23B8C5E1E12A6B34AEE24AE7",
            "file_modified": 1599751596,
            "file_name": "Neues Textdokument.txt",
            "name": "deleted_file",
            "parent_name": "rrrr",
            "changed_by_user": "56A23EB6998F303B134C1C0A723447B0",
            "file_size": 0,
            "changed_by_node": "5B2B6776B3F9928CFBB6A4FF46B9ABB9",
            "file_id": "1D375A5F06F5AD53DECC4D454D47AE12",
            "created_at": 1599751743
        },
        {
            "name": "deleted_folder",
            "folder_id": "19375A5F23B8C5E1E12A6B34AEE24AE7",
            "folder_name": "rrrr",
            "parent_id": "",
            "created_at": 1599751613
        }
    ],
    "deleted_24h": 0,
    "new_24h": 82,
    "total_count": 15
}

Error Codes

user_ids_and_for_organisation_are_incompatible
user_not_admin
user_ids_not_from_your_organisation

All Action Types and their data fields:

class deleted_file:
    deleted_file = "deleted_file"
    parent_id = "parent_id"
    file_name = "file_name"
    file_id = "file_id"
    changed_by_user = "changed_by_user"
    changed_by_node = "changed_by_node"
    file_size = "file_size"
    file_modified = "file_modified"
    parent_name = "parent_name"
    file_created_at = "file_created_at"

class modified_file:
    modified_file = "modified_file"
    parent_id = "parent_id"
    file_name = "file_name"
    file_id = "file_id"
    changed_by_user = "changed_by_user"
    changed_by_node = "changed_by_node"
    file_size = "file_size"
    file_modified = "file_modified"
    parent_name = "parent_name"
    file_created_at = "file_created_at"

class new_file:
    new_file = "new_file"
    parent_id = "parent_id"
    file_name = "file_name"
    file_id = "file_id"
    changed_by_user = "changed_by_user"
    changed_by_node = "changed_by_node"
    file_size = "file_size"
    file_modified = "file_modified"
    parent_name = "parent_name"
    file_created_at = "file_created_at"

class renamed_file:
    renamed_file = "renamed_file"
    parent_id = "parent_id"
    file_name = "file_name"
    file_id = "file_id"
    changed_by_user = "changed_by_user"
    changed_by_node = "changed_by_node"
    file_size = "file_size"
    file_modified = "file_modified"
    parent_name = "parent_name"
    file_created_at = "file_created_at"

class moved_file:
    moved_file = "moved_file"
    parent_id = "parent_id"
    file_name = "file_name"
    file_id = "file_id"
    changed_by_user = "changed_by_user"
    changed_by_node = "changed_by_node"
    file_size = "file_size"
    file_modified = "file_modified"
    parent_name = "parent_name"
    file_created_at = "file_created_at"

class deleted_folder:
    deleted_folder = "deleted_folder"
    folder_id = "folder_id"
    folder_name = "folder_name"
    parent_id = "parent_id"
    folder_modified = "folder_modified"
    folder_created_at = "folder_created_at"
    changed_by_user = "changed_by_user"
    changed_by_node = "changed_by_node"

class renamed_folder:
    renamed_folder = "renamed_folder"
    folder_id = "folder_id"
    folder_name = "folder_name"
    folder_name_old = "folder_name_old"
    parent_id = "parent_id"
    folder_modified = "folder_modified"
    folder_created_at = "folder_created_at"
    changed_by_user = "changed_by_user"
    changed_by_node = "changed_by_node"

class new_folder:
    new_folder = "new_folder"
    folder_id = "folder_id"
    folder_name = "folder_name"
    parent_id = "parent_id"
    folder_modified = "folder_modified"
    folder_created_at = "folder_created_at"
    changed_by_user = "changed_by_user"
    changed_by_node = "changed_by_node"

class moved_folder:
    moved_folder = "moved_folder"
    folder_id = "folder_id"
    folder_name = "folder_name"
    old_parent_id = "old_parent_id"
    old_parent_name = "old_parent_name"   #for information only
    new_parent_id = "new_parent_id"
    new_parent_name = "new_parent_name"   #for information only
    permissions_old =  "permissions_old"
    permissions_new =  "permissions_new"
    folder_modified = "folder_modified"
    folder_created_at = "folder_created_at"
    changed_by_user = "changed_by_user"
    changed_by_node = "changed_by_node"