Folder
Create
URL: http(s)://rapidgator.net/api/v2/folder/createDescription: Create a folder.
Method: (GET|POST)
Required params:
- token - Access Token to authenticate the user's current session.
- name - The name of the folder to be created.
Optional params:
- folder_id - The key that identifies the folder. If the folder_id is not passed, will return the root folder details.
Request example: /api/v2/folder/create?name=test_folder&folder_id=191&token=0ji59ajg0tg149l4s80b37ubb6
Success response example:
Error response example:
Info
URL: http(s)://rapidgator.net/api/v2/folder/infoDescription: Returns a folder's and list of sub folders details.
Method: (GET|POST)
Required params:
- token - Access Token to authenticate the user's current session.
Optional params:
- folder_id - The key that identifies the folder. If the folder_id is not passed, will return the root folder details.
Request example: api/v2/folder/info?folder_id=191&token=arsd4h37ecfkdqd16uolf5nai1
Success response example:
Error response example:
Content
URL: http(s)://rapidgator.net/api/v2/folder/contentDescription: Returns a folder's, list of sub folders and list of files details.
Method: (GET|POST)
Required params:
- token - Access Token to authenticate the user's current session.
Optional params:
- folder_id - The key that identifies the folder. If the folder_id is not passed, will return the root folder details.
- page - Page number. Default is 1
- per_page - Number of files per page. Default is 500
- sort_column - Sort column name. Possible values: 'name', 'created', 'size', 'nb_downloads'. Default is 'name'
- sort_direction - Sort direction. Possible values: 'ASC', 'DESC'. Default is 'ASC'
Request example: api/v2/folder/content?folder_id=7&token=arsd4h37ecfkdqd16uolf5nai1
Success response example:
Error response example:
Rename
URL: http(s)://rapidgator.net/api/v2/folder/renameDescription: Rename a folder.
Method: (GET|POST)
Required params:
- token - Access Token to authenticate the user's current session.
- name - The new name of the folder.
- folder_id - The key that identifies the folder to be renamed.
Optional params:
Request example: /api/v2/folder/rename?name=rename_folder&folder_id=561&token=arsd4h37ecfkdqd16uolf5nai1
Success response example:
Error response example:
Copy
URL: http(s)://rapidgator.net/api/v2/folder/copyDescription: Copy a folder to another folder (This operation also works with foreign folders).
Method: (GET|POST)
Required params:
- token - Access Token to authenticate the user's current session.
- folder_id_dest - The key that identifies the destination folder.
- folder_id - The key that identifies the folder. You can also specify multiple folder keys separated by comma.
Optional params:
Request example: /api/v2/folder/copy?folder_id=3455&folder_id_dest=243&token=arsd4h37ecfkdqd16uolf5nai1
Success response example:
Error response example:
Move
URL: http(s)://rapidgator.net/api/v2/folder/moveDescription: Move a folder to another folder (This operation also works with foreign folders).
Method: (GET|POST)
Required params:
- token - Access Token to authenticate the user's current session.
- folder_id_dest - The key that identifies the destination folder.
- folder_id - The key that identifies the folder. You can also specify multiple folder keys separated by comma.
Optional params:
Request example: /api/v2/folder/move?folder_id=3455&folder_id_dest=54&token=arsd4h37ecfkdqd16uolf5nai1
Success response example:
Error response example:
Delete
URL: http(s)://rapidgator.net/api/v2/folder/deleteDescription: Delete a folder.
Method: (GET|POST)
Required params:
- token - Access Token to authenticate the user's current session.
- folder_id - The key that identifies the folder. You can also specify multiple folder keys separated by comma.
Optional params:
Request example: /api/v2/folder/delete?folder_id=562,563,564&token=arsd4h37ecfkdqd16uolf5nai1
Success response example:
Error response example:
Change mode
URL: http(s)://rapidgator.net/api/v2/folder/change_modeDescription: Change a folder mode.
Method: (GET|POST)
Required params:
- token - Access Token to authenticate the user's current session.
- folder_id - The key that identifies the folder.
- mode - New folder mode.
Optional params:
Possible values of the Mode property:
- 0 - Public
- 1 - Premium only
- 2 - Private
- 3 - Hotlink
Request example: /api/v2/folder/change_mode?folder_id=4183258&mode=1&token=arsd4h37ecfkdqd16uolf5nai1
Success response example:
Error response example: