Upload one part for an outbound upload session
curl --request PUT \
--url https://api.sftpsync.io/outbound/uploads/{uploadId}/parts/{partNumber} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"data": [
{
"remoteId": "E001",
"firstName": "Alice",
"lastName": "Smith"
}
]
}
'import requests
url = "https://api.sftpsync.io/outbound/uploads/{uploadId}/parts/{partNumber}"
payload = { "data": [
{
"remoteId": "E001",
"firstName": "Alice",
"lastName": "Smith"
}
] }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({data: [{remoteId: 'E001', firstName: 'Alice', lastName: 'Smith'}]})
};
fetch('https://api.sftpsync.io/outbound/uploads/{uploadId}/parts/{partNumber}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sftpsync.io/outbound/uploads/{uploadId}/parts/{partNumber}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'data' => [
[
'remoteId' => 'E001',
'firstName' => 'Alice',
'lastName' => 'Smith'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sftpsync.io/outbound/uploads/{uploadId}/parts/{partNumber}"
payload := strings.NewReader("{\n \"data\": [\n {\n \"remoteId\": \"E001\",\n \"firstName\": \"Alice\",\n \"lastName\": \"Smith\"\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.sftpsync.io/outbound/uploads/{uploadId}/parts/{partNumber}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"data\": [\n {\n \"remoteId\": \"E001\",\n \"firstName\": \"Alice\",\n \"lastName\": \"Smith\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sftpsync.io/outbound/uploads/{uploadId}/parts/{partNumber}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"data\": [\n {\n \"remoteId\": \"E001\",\n \"firstName\": \"Alice\",\n \"lastName\": \"Smith\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"uploadId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"partNumber": 1,
"status": "uploading",
"uploadedParts": 1,
"totalParts": 3
}{
"message": "<string>",
"statusCode": 123,
"error": "<string>"
}{
"message": "<string>",
"statusCode": 123,
"error": "<string>"
}Outbound Uploads
Upload one part for an outbound upload session
Upload a single part (JSON array of objects). Part numbers are 1-based and must not exceed totalParts.
PUT
/
outbound
/
uploads
/
{uploadId}
/
parts
/
{partNumber}
Upload one part for an outbound upload session
curl --request PUT \
--url https://api.sftpsync.io/outbound/uploads/{uploadId}/parts/{partNumber} \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '
{
"data": [
{
"remoteId": "E001",
"firstName": "Alice",
"lastName": "Smith"
}
]
}
'import requests
url = "https://api.sftpsync.io/outbound/uploads/{uploadId}/parts/{partNumber}"
payload = { "data": [
{
"remoteId": "E001",
"firstName": "Alice",
"lastName": "Smith"
}
] }
headers = {
"x-api-key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({data: [{remoteId: 'E001', firstName: 'Alice', lastName: 'Smith'}]})
};
fetch('https://api.sftpsync.io/outbound/uploads/{uploadId}/parts/{partNumber}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.sftpsync.io/outbound/uploads/{uploadId}/parts/{partNumber}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'data' => [
[
'remoteId' => 'E001',
'firstName' => 'Alice',
'lastName' => 'Smith'
]
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.sftpsync.io/outbound/uploads/{uploadId}/parts/{partNumber}"
payload := strings.NewReader("{\n \"data\": [\n {\n \"remoteId\": \"E001\",\n \"firstName\": \"Alice\",\n \"lastName\": \"Smith\"\n }\n ]\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("x-api-key", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.put("https://api.sftpsync.io/outbound/uploads/{uploadId}/parts/{partNumber}")
.header("x-api-key", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"data\": [\n {\n \"remoteId\": \"E001\",\n \"firstName\": \"Alice\",\n \"lastName\": \"Smith\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.sftpsync.io/outbound/uploads/{uploadId}/parts/{partNumber}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["x-api-key"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"data\": [\n {\n \"remoteId\": \"E001\",\n \"firstName\": \"Alice\",\n \"lastName\": \"Smith\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"uploadId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"partNumber": 1,
"status": "uploading",
"uploadedParts": 1,
"totalParts": 3
}{
"message": "<string>",
"statusCode": 123,
"error": "<string>"
}{
"message": "<string>",
"statusCode": 123,
"error": "<string>"
}Authorizations
Path Parameters
Upload session ID from initUpload.
1-based part number.
Required range:
x >= 1Body
application/json
Initialize an outbound multipart upload sessionComplete outbound multipart upload and trigger processing
⌘I