π§ Create with password
Create an user with a password. This route will create an account with the password you set in the body of the request.
You can allow or disallow sending the email with the last parameter "isSendingEmailAllowed".
Description
| ENDPOINT | DESCRIPTION | METHOD | EXEMPLE | 
|---|---|---|---|
| /_plugin/Comexposium/user/create | Necessary informations to create an user | POST | https://api.preprod.comexposium-sso.com/_login | 
Body
{
  "email": "[email protected]",
  "fromSalon": "foire_de_paris",
  "fromSessionSalon": "foire_de_paris_2017",
  "language": "fre-FR // Accepted languages are fre-FR and eng-GB",
  "fromThirdParty": "f9c7c303bbc3531781fe52b6e4123d5e40ba8581",
  "password": "MyPasswordSecur3d!",
  "isSendingEmailAllowed": true
}
Call Exemple
curl -X POST "https://api.preprod.comexposium-sso.com/_plugin/Comexposium/user/createWithPassword" -H "accept: application/json" -H "content-type: application/json" -d "{ \"email\": \"[email protected]\", \"fromSalon\": \"foire_de_paris\", \"fromSessionSalon\": \"foire_de_paris_2017\", \"language\": \"fre-FR // Accepted languages are fre-FR and eng-GB\", \"fromThirdParty\": \"d7770a23e600e4ce6f8eae6211a24e92a937eb1e\", \"password\": \"MyPasswordSecur3d!\", \"isSendingEmailAllowed\": true}"
Details
Responses
You can only get a 200 status code by using this endpoint, you will find results in the statusCode attribute.
Success
statusCode": 0, "message": "create_user_success"
Exemple:
{
  "requestId": "43f0ff05-5986-490d-8cf3-3e6a7b97e9a1",
  "status": 200,
  "error": null,
  "controller": "Comexposium/AuthController",
  "action": "createUserWithPassword",
  "collection": null,
  "index": null,
  "volatile": null,
  "result": {
    "statusCode": 0,
    "message": "generic_success",
    "data": {}
  }
}
Errors
statusCode: 1 || 132 || 133 || 134 || 135 || 161 || 170: Internal error
statusCode: 124: Wrong configuration on url reference
statusCode: 131: Missing credentials
statusCode: 143: Email already exists
statusCode: 187: There is no configured template
Exemple:
{
  "requestId": "7316640e-a565-40c8-891e-56bbc1a395cf",
  "status": 200,
  "error": null,
  "controller": "Comexposium/AuthController",
  "action": "createUserWithPassword",
  "collection": null,
  "index": null,
  "volatile": null,
  "result": {
    "statusCode": 143,
    "message": "create_user_already_exist"
  }
}