Update an item
curl --request PUT \
--url https://app.getswipe.in/api/partner/v2/product \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form product_images=@example-fileimport requests
url = "https://app.getswipe.in/api/partner/v2/product"
files = { "product_images": ("example-file", open("example-file", "rb")) }
headers = {"Authorization": "Bearer <token>"}
response = requests.put(url, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('product_images', '<string>');
const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://app.getswipe.in/api/partner/v2/product', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"message": "Message",
"error_code": "",
"errors": {},
"data": {
"message": "No data found!"
}
}{
"success": true,
"message": "Message",
"error_code": "",
"errors": {},
"data": {
"message": "No data found!"
}
}{
"success": true,
"message": "Message",
"error_code": "",
"errors": {},
"data": {
"message": "No data found!"
}
}Products
Update an item
Updates an item’s master record in the catalog. This is the only way to change catalog details — item fields sent inside a document apply to that document only.
PUT
/
v2
/
product
Update an item
curl --request PUT \
--url https://app.getswipe.in/api/partner/v2/product \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form product_images=@example-fileimport requests
url = "https://app.getswipe.in/api/partner/v2/product"
files = { "product_images": ("example-file", open("example-file", "rb")) }
headers = {"Authorization": "Bearer <token>"}
response = requests.put(url, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('product_images', '<string>');
const options = {method: 'PUT', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://app.getswipe.in/api/partner/v2/product', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"message": "Message",
"error_code": "",
"errors": {},
"data": {
"message": "No data found!"
}
}{
"success": true,
"message": "Message",
"error_code": "",
"errors": {},
"data": {
"message": "No data found!"
}
}{
"success": true,
"message": "Message",
"error_code": "",
"errors": {},
"data": {
"message": "No data found!"
}
}Uploading Product ImagesTo upload or update product images, use
multipart/form-data instead of application/json. All the regular JSON fields are supported as form fields, plus:product_images: Array of image files (JPEG, PNG, etc.)- For complex fields like
custom_columns,alternative_units, andpreferences, send them as JSON strings
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is an API key from the API Integration section of your dashboard. Keys are scoped to the company they are generated in — for testing, add a separate test company and generate the key there, so requests never touch your real books.

