Update product
Patch fields on an existing product.
PATCH
/
v1
/
products
/
{productId}
Update product
curl --request PATCH \
--url https://api.quickshops.app/v1/products/{productId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"description": "<string>",
"imageUrl": "<string>",
"imageKey": "<string>",
"isActive": true,
"downloadUrl": "<string>",
"fileStorageKey": "<string>",
"fileName": "<string>",
"fileSizeBytes": 123,
"fileContentType": "<string>",
"fileSize": "<string>",
"sku": "<string>",
"trackInventory": true,
"quantityOnHand": 123,
"requiresShipping": true,
"category": "<string>",
"tags": [
"<string>"
],
"name": "<string>",
"priceInCents": 1,
"taxCode": "<string>"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
description: '<string>',
imageUrl: '<string>',
imageKey: '<string>',
isActive: true,
downloadUrl: '<string>',
fileStorageKey: '<string>',
fileName: '<string>',
fileSizeBytes: 123,
fileContentType: '<string>',
fileSize: '<string>',
sku: '<string>',
trackInventory: true,
quantityOnHand: 123,
requiresShipping: true,
category: '<string>',
tags: ['<string>'],
name: '<string>',
priceInCents: 1,
taxCode: '<string>'
})
};
fetch('https://api.quickshops.app/v1/products/{productId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.quickshops.app/v1/products/{productId}"
payload = {
"description": "<string>",
"imageUrl": "<string>",
"imageKey": "<string>",
"isActive": True,
"downloadUrl": "<string>",
"fileStorageKey": "<string>",
"fileName": "<string>",
"fileSizeBytes": 123,
"fileContentType": "<string>",
"fileSize": "<string>",
"sku": "<string>",
"trackInventory": True,
"quantityOnHand": 123,
"requiresShipping": True,
"category": "<string>",
"tags": ["<string>"],
"name": "<string>",
"priceInCents": 1,
"taxCode": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
description: '<string>',
imageUrl: '<string>',
imageKey: '<string>',
isActive: true,
downloadUrl: '<string>',
fileStorageKey: '<string>',
fileName: '<string>',
fileSizeBytes: 123,
fileContentType: '<string>',
fileSize: '<string>',
sku: '<string>',
trackInventory: true,
quantityOnHand: 123,
requiresShipping: true,
category: '<string>',
tags: ['<string>'],
name: '<string>',
priceInCents: 1,
taxCode: '<string>'
})
};
fetch('https://api.quickshops.app/v1/products/{productId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": "<unknown>"
}{
"error": "<string>",
"code": "UNAUTHORIZED"
}{
"error": "<string>",
"code": "UNAUTHORIZED"
}{
"error": "<string>",
"code": "UNAUTHORIZED"
}{
"error": "<string>",
"code": "UNAUTHORIZED"
}{
"error": "<string>",
"code": "UNAUTHORIZED"
}{
"error": "<string>",
"code": "UNAUTHORIZED"
}{
"error": "<string>",
"code": "UNAUTHORIZED"
}{
"error": "<string>",
"code": "UNAUTHORIZED"
}Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Was this page helpful?
⌘I
Update product
curl --request PATCH \
--url https://api.quickshops.app/v1/products/{productId} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"description": "<string>",
"imageUrl": "<string>",
"imageKey": "<string>",
"isActive": true,
"downloadUrl": "<string>",
"fileStorageKey": "<string>",
"fileName": "<string>",
"fileSizeBytes": 123,
"fileContentType": "<string>",
"fileSize": "<string>",
"sku": "<string>",
"trackInventory": true,
"quantityOnHand": 123,
"requiresShipping": true,
"category": "<string>",
"tags": [
"<string>"
],
"name": "<string>",
"priceInCents": 1,
"taxCode": "<string>"
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
description: '<string>',
imageUrl: '<string>',
imageKey: '<string>',
isActive: true,
downloadUrl: '<string>',
fileStorageKey: '<string>',
fileName: '<string>',
fileSizeBytes: 123,
fileContentType: '<string>',
fileSize: '<string>',
sku: '<string>',
trackInventory: true,
quantityOnHand: 123,
requiresShipping: true,
category: '<string>',
tags: ['<string>'],
name: '<string>',
priceInCents: 1,
taxCode: '<string>'
})
};
fetch('https://api.quickshops.app/v1/products/{productId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.quickshops.app/v1/products/{productId}"
payload = {
"description": "<string>",
"imageUrl": "<string>",
"imageKey": "<string>",
"isActive": True,
"downloadUrl": "<string>",
"fileStorageKey": "<string>",
"fileName": "<string>",
"fileSizeBytes": 123,
"fileContentType": "<string>",
"fileSize": "<string>",
"sku": "<string>",
"trackInventory": True,
"quantityOnHand": 123,
"requiresShipping": True,
"category": "<string>",
"tags": ["<string>"],
"name": "<string>",
"priceInCents": 1,
"taxCode": "<string>"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
description: '<string>',
imageUrl: '<string>',
imageKey: '<string>',
isActive: true,
downloadUrl: '<string>',
fileStorageKey: '<string>',
fileName: '<string>',
fileSizeBytes: 123,
fileContentType: '<string>',
fileSize: '<string>',
sku: '<string>',
trackInventory: true,
quantityOnHand: 123,
requiresShipping: true,
category: '<string>',
tags: ['<string>'],
name: '<string>',
priceInCents: 1,
taxCode: '<string>'
})
};
fetch('https://api.quickshops.app/v1/products/{productId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": "<unknown>"
}{
"error": "<string>",
"code": "UNAUTHORIZED"
}{
"error": "<string>",
"code": "UNAUTHORIZED"
}{
"error": "<string>",
"code": "UNAUTHORIZED"
}{
"error": "<string>",
"code": "UNAUTHORIZED"
}{
"error": "<string>",
"code": "UNAUTHORIZED"
}{
"error": "<string>",
"code": "UNAUTHORIZED"
}{
"error": "<string>",
"code": "UNAUTHORIZED"
}{
"error": "<string>",
"code": "UNAUTHORIZED"
}