XM
Powered By GitBook
Update Products In Bulk
Path:
1
POST https://{baseurl}/api-product/v1/product/bulk/update
Copied!
Enables you to update products in bulk.
Headers
Content-Type : application/json
x-site-context : { "date": "2020-08-28T02:35:27.787Z", "channel": 12, "account": 5f493c9f30ec2a0007a94fc8", "stage": "sandbox" }
Authorization: The JWT access token from the Login API. This is applicable only for a logged in user (not for guest user).

Parameters

Type : requestBody
Name : The criteria to update products in bulk.
Required: true

Sample Request

Path:
1
POST https://{baseurl}/api-product/v1/product/bulk/update
Copied!
1
{
2
"skus": [
3
"capio-product"
4
],
5
"action": "UPDATE",
6
"attributeValues": [
7
{
8
"name": "Display Name",
9
"value": "capio product name update"
10
}
11
]
12
}
Copied!

Sample Response

Success Code: 200
Message: OK
Description: You will see this message when the products are successfully updated in bulk.
1
{
2
"success": [
3
{
4
"sku": "capio-product",
5
"itemIdSeq": 169,
6
"message": "SKU updated successfully"
7
}
8
],
9
"failed": [],
10
"itemIds": [
11
"60c7e6c73db9ec0008723078"
12
]
13
}
Copied!

Sample Response

Success Code: 200
Message: OK
Description: You will see this message when the products are updated in bulk.
1
{
2
"success": [
3
{
4
"sku": "capio-product",
5
"itemIdSeq": 255,
6
"message": "SKU partially updated",
7
"errorAttributes": [
8
{
9
"name": "Display image",
10
"message": "Attribute not found"
11
}
12
]
13
}
14
],
15
"failed": [],
16
"itemIds": [
17
"60c7e6c73db9ec0008723078"
18
]
19
}
Copied!

Sample Response

Success Code: 200
Message: OK
Description: You will see this message when the SKU is not found.
1
{
2
"success": [],
3
"failed": [
4
{
5
"sku": "capio-blah blah",
6
"message": "SKU not found"
7
}
8
],
9
"itemIds": []
10
}
Copied!
Error Code: 401
Message: Unauthorized
Description: You will see this error when the Authorization (JWT token from the Login APIs) is not valid.
1
{
2
"code": "INVALID_AUTHORIZATION_TOKEN",
3
"message": "Invalid Authorization Token"
4
}
Copied!

Change Log

    June - 2021 First Updated
Last modified 3mo ago
Copy link
Contents
Change Log