βοΈ Remove user Status
Allow a third party application to remove one or more user status for a specific account for a specific session
Description
ENDPOINT | DESCRIPTION | METHOD | EXEMPLE |
---|---|---|---|
/_plugin/Comexposium/thirdParty/removeUserStatus | Allow a third party application to remove one or more user status for a specific account for a specific session | POST | https://api.preprod.comexposium-sso.com/_login |
Body
{
"email": "[email protected]",
"statusList": [
"exhibitor",
"vip"
],
"fromSessionSalon": "foire_de_paris_2017",
"applicationToken": "f9c7c303bbc3531781fe52b6e4123d5e40ba8581"
}
Call Exemple
curl -X POST "https://api.preprod.comexposium-sso.com/_plugin/Comexposium/thirdParty/removeUserStatus" -H "accept: application/json" -H "Authorization: bearer myBearerToken" -H "content-type: application/json" -d "{ \"email\": \"[email protected]\", \"statusList\": [ \"exhibitor\", \"vip\" ], \"fromSessionSalon\": \"foire_de_paris_2017\", \"applicationToken\": \"f9c7c303bbc3531781fe52b6e4123d5e40ba8581\"}"
Details
Responses
You can only get a 200 or 403 status code by using this endpoint, you will find results in the statusCode attribute.
Success
statusCode: 0, message: generic_success
Exemple:
{
"requestId": "2f3f5566-fb31-4fb1-a9f2-a850360c4187",
"status": 200,
"error": null,
"controller": "Comexposium/thirdPartyController",
"action": "removeUserStatus",
"collection": null,
"index": null,
"volatile": null,
"result": {
"statusCode": 0,
"message": "generic_success",
"data": {
"salon": "foire_de_paris",
"session": "foire_de_paris_13969",
"userId": "57f1d1ae-fbea-4a7c-aeac-3a1abac76a03",
"availableUserTypes": [
"exhibitor",
"vip",
"speaker"
],
"alreadyAbsentFrom": [
"exhibitor",
"vip"
],
"removedFrom": []
}
}
}
Errors
statusCode: 180: Error fetching thirdParty informations
statusCode: 181: Your application token is not authorized to change a user status
statusCode: 203: Error fetching thirdParty informations
statusCode: 208: Missing credentials
statusCode: 210: Email not found
Exemple:
{
"requestId": "fd4fd0f6-d5d3-46d6-b420-54d0a7590738",
"status": 200,
"error": null,
"controller": "Comexposium/thirdPartyController",
"action": "removeUserStatus",
"collection": null,
"index": null,
"volatile": null,
"result": {
"statusCode": 210,
"message": "Email not found"
}
}