Deletes the profile image that is set for a customer.
Example request
curl --location --request DELETE 'http://eu.api.capillarytech.com/v2/customers/564703420/deleteImage?image_ids=1' \
--header 'Authorization: Basic bWFkaHVzI3MjU2YQ==' \
--header 'Cookie: _cfuvid=UYaVw3yuWRusRWRvItdJ48TY.KSQcYmqJkINxSb_QXs-1744174110851-0.0.1.1-604800000; _cfuvid=dGIwbWm0KYguuf5fXsGxJ3mtpHXlH_k.GmKwtWQNmTM-1745306076287-0.0.1.1-604800000; _cfuvid=LfYENyeS6Y1vCU1Y4hd0xU6z6lxpFmFMWKQSr5LBhhs-1750337938435-0.0.1.1-604800000; _cfuvid=lz.4VRPSCSjAEVc3Q13mvAwa1ev1vKj_dsBEmxMWkvU-1758738086920-0.0.1.1-604800000'
Query parameter
Parameter | Type | Description |
---|---|---|
image_ids* | Integer | Index of the image to be deleted. Images for each customer are stored in a 0-based index order, meaning the first image is at position 0, the second at 1, the third at 2, and so on. To delete an image, you need to pass the index position of that image in the Note: The index values depend on the total number of images available for that specific customer. If more images are added, the index positions will increase accordingly. To find the number of images and indexes associated with the customer refer to Get Customer Image. |
Example response
{
"data": [
{
"code": 200,
"message": "Success",
"status": "true"
}
],
"warnings": [],
"errors": []
}
Response parameters
Parameter | Type | Description |
---|---|---|
message | string | Success/failure message |
status | string | "true" if successful, else "false" |
API specific Error Code
Error Code | Description | Reason |
---|---|---|
8078 | No Image passed to be deleted. | Valid Image not passed. |
8015 | Customer not found for the given identifiers | Valid customer identifiers not passed. |