files:writefolder_id or chat_id and one byte source:source_url (fetched server-side) or content (UTF-8 text storedname with an extension is required). Optionalname, version_of_file_id (a file in the destination folder, checkedPUT /api/v2/folders/{folderId}/files or an upload session.Authorization: Bearer ********************curl --location 'https://api.pibox.com/api/v2/files/upload' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"folder_id": 0,
"chat_id": 0,
"source_url": "http://example.com",
"content": "string",
"name": "string",
"version_of_file_id": 0
}'{
"object": "string",
"data": {
"property1": "string",
"property2": "string"
},
"property1": "string",
"property2": "string"
}