💣 Delete from favorite
Delete an item from favorites list. Only 'event’, 'exhibitor', 'brand' or 'product' are acceptable itemType
Description
ENDPOINT | DESCRIPTION | METHOD | EXEMPLE |
---|---|---|---|
/_plugin/Comexposium/mySelection/delete | Payload to delete an item from favorites | POST | https://api.preprod.comexposium-sso.com/_login |
Body
{
"itemId": "140260",
"itemType": "exhibitor",
"sessionSalon": "foire_de_paris_13969"
}
Call Exemple
curl -X POST "https://api.preprod.comexposium-sso.com/_plugin/Comexposium/mySelection/delete" -H "accept: application/json" -H "Authorization: Bearer myBearerToken" -H "content-type: application/json" -d "{ \"itemId\": \"140260\", \"itemType\": \"exhibitor\", \"sessionSalon\": \"foire_de_paris_13969\"}"
Details
Responses
You can only get a 200 or 401 status code by using this endpoint, you will find results in the statusCode attribute .
Success
statusCode: 0, message: generic_success
Exemple:
{
"requestId": "ba7b3c7b-243c-4d93-942a-235f7f76d27b",
"status": 200,
"error": null,
"controller": "Comexposium/MySelectionController",
"action": "deleteItemMySelection",
"collection": null,
"index": null,
"volatile": null,
"result": {
"statusCode": 0,
"message": "generic_success",
"data": {
"count": 12
}
}
}
Errors
statusCode: 24 || 28: Internal error
statusCode: 23: Missing credentials
statusCode: 25: Wrong JWT token
statusCode: 27: Selection not found
statusCode: 197: Wrong itemType
Exemple:
{
"requestId": "105c1698-d07d-4c08-b808-9109a27634c2",
"status": 200,
"error": null,
"controller": "Comexposium/MySelectionController",
"action": "deleteItemMySelection",
"collection": null,
"index": null,
"volatile": null,
"result": {
"statusCode": 197,
"message": "generic_error"
}
}