Networking
Add Network site document(s)
Upload document(s) to a network site. Two modes — multipart (default) and chunked (when the Content-Range header is set).
Common rules
- Allowed extensions: doc, docx, txt, pdf, rtf.
- Max size: 50 MB per file.
Multipart
- Body: files[] + network_site_id.
- All-or-nothing: if any file fails MIME/size validation, nothing is committed.
Chunked (Content-Range: bytes {start}-{end}/{total})
- Body per chunk: file (chunk bytes) + hash (session id, same across all chunks of one file). network_site_id only on the first chunk; subsequent chunks load it from the session.
- Chunks must arrive in order: first chunk start = 0, each next chunk start = size of assembled file on disk. Out-of-order chunks abort the upload and clean up the session.
- Upfront total > 50 MB is rejected before the first byte is written.
- The final chunk runs full MIME/size re-validation on the assembled file.
- Intermediate chunks → 200 {"result": true}; final chunk → 201 with one NetworkSiteDocumentResponse.
post/admin/networking/network-sites-documents
Request
- Base URL: https://demo.splynx.com/api/2.0
- URL: https://demo.splynx.com/api/2.0/admin/networking/network-sites-documents
- Auth: HTTP basic
Headers
Content-Rangestring
Example:bytes 0-1048575/3145529
Set to switch to chunked mode. Format: bytes {start}-{end}/{total}. Malformed values → 422.
Response
Chunked: intermediate chunk acknowledged.
Example response
{
"result": true
}Changes
No recorded changes to this operation across all 1 revision of this API.