πŸ”¨ Create

Create an user. This route will send an email with a create account link to the email posted in the request's body.

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"
}

Call Exemple

curl -X POST "https://api.preprod.comexposium-sso.com/_plugin/Comexposium/user/create" -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\": \"f9c7c303bbc3531781fe52b6e4123d5e40ba8581\"}"

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": "19f96daa-724c-469e-b72b-a1665097df6e",
  "status": 200,
  "error": null,
  "controller": "Comexposium/AuthController",
  "action": "createUser",
  "collection": null,
  "index": null,
  "volatile": null,
  "result": {
    "statusCode": 0,
    "message": "create_user_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": "27e5599a-0817-4154-8826-6136ce352499",
  "status": 200,
  "error": null,
  "controller": "Comexposium/AuthController",
  "action": "createUser",
  "collection": null,
  "index": null,
  "volatile": null,
  "result": {
    "statusCode": 124,
    "message": "generic_error"
  }
}