Files

Upload File

Upload File

POST https://neodrive.my.id/api/v1/files

Upload a new file.

Headers

Request Body

{
    "status": 200,
    "url": "https://neodrive.my.id/f/a4dc28ac-0ad8-4e6a-a025-204085fbafbf",
    "name": "eample.mp4",
    "size": "15310263",
    "format": "mp4",
    "backup": {
        "success": true,
        "message": "backup file success"
    }
}
curl --location --request POST 'https://neodrive.my.id/api/v1/files' \
--header 'neodrive-api: 625092296266470295046fd6bd9c44a5' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'url=https://drive.google.com/file/d/1VLdzYRFUEL_QIvKlK46wu6kvAqPNRn2h/view?usp=sharing' \
--data-urlencode 'google_account=2' \
--data-urlencode 'google_account_backup=3' \
--data-urlencode 'teamdrive='

Update File

Update existing file

PUT https://neodrive.my.id/api/v1/files

Headers

Request Body

{
    "status": 200,
    "file": {
        "id": "a4dc28ac-0ad8-4e6a-a025-204085fbafbf",
        "name": "editexample.mp4",
        "status": "normal",
        "url": "http://localhost:8080/f/a4dc28ac-0ad8-4e6a-a025-204085fbafbf",
        "driveid": "1VLdzYRFUEL_QIvKlK46wu6kvAqPNRn2h"
    },
    "message": "File updated."
}
curl --location --request PUT 'https://neodrive.my.id/api/v1/files' \
--header 'neodrive-api: 625092296266470295046fd6bd9c44a5' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'id=a4dc28ac-0ad8-4e6a-a025-204085fbafbf' \
--data-urlencode 'name=editexample.mp4'

Delete File

Delete existing File

DELETE https://neodrive.my.id/api/v1/files

Headers

Request Body

{
    "status": 200,
    "message": "file deleted"
}
curl --location --request DELETE 'https://neodrive.my.id/api/v1/files' \
--header 'neodrive-api: 625092296266470295046fd6bd9c44a5' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'id=a4dc28ac-0ad8-4e6a-a025-204085fbafbf'

List Files

GET https://neodrive.my.id/api/v1/files

List of your uploaded files.

Searching File URL example : https://neodrive.my.id/api/v1/files?q=MySearch

Goto pagination URL example : https://neodrive.my.id/api/v1/files?page=1

Query Parameters

Headers

{
    "status": 200,
    "items": [
        {
            "id": "d21ae110-8d4d-408d-a8f3-51bc7ee3d61a",
            "name": "HTTP Injector.apk",
            "url": "http://neodrive.my.id/f/d21ae110-8d4d-408d-a8f3-51bc7ee3d61a",
            "driveid": "1ECxanAXnaZ0SwuGSUd2xd7vRYtz7Grf5",
            "format": "apk",
            "size": "50168768",
            "md5": "fedabe11d8560364962d8dfd69b1cd8b",
            "multiup": null,
            "views": "0",
            "downloads": "0"
        }
    ],
    "currentPage": 1,
    "totalPage": 1
}
curl --location --request GET 'https://neodrive.my.id/api/v1/files' \
--header 'neodrive-api: 625092296266470295046fd6bd9c44a5'

Last updated