400 Invalid Body Error for New User Registration REST calls

If you are using a REST call to register new users to Jigx, you may run into a code 400 Invalid Body error.

One cause for this is when you try to specify an invite language, but yet you indicated that you don’t wish to send any email invites by using the disabled property.

By removing the language parameter in the example below, the REST call executes as expected.

Example of an invalid REST call:

{
"firstName": "Chanelle",
"lastName": "Kruger",
"password": "Password",
"name": "Chanelle Jigx",
"passwordPermanent": false,
"invite": {
    "language": "ENG",
    "disabled": true
},
"userRole": "USER",
"email": "chanelle@jigx.com"
}

Example of a valid REST call:

{
"firstName": "Chanelle",
"lastName": "Kruger",
"password": "Password",
"name": "Chanelle Jigx",
"passwordPermanent": false,
"invite": {
    "disabled": true
},
"userRole": "USER",
"email": "chanelle@jigx.com"
}
1 Like