0

Create event via the API with a null value for a list

Hey Guys,

Can I just check if the following should or shouldn't be allowed...

"Create an event via the API with a null value for a list"

Currently get the following back out the API:

{"type":"DATA_VALIDATION_ERROR","message":"There are data validation errors in the form.","errorDetails":[{"jsonPath":"properties/IT.","details":"Specified value not found in the list of configured values"},{"jsonPath":"properties/IT","details":"Specified value not found in the list of configured values"}]}

We understand null is not configured hence the error but wanted to ask the question. 

If null are allowed the code in our script is alot cleaner as we only have to build one request, if not we'll have to create a number of "if else" statements and omit null from being submitted in the first place which works but balloons the code.... we like less code :)

As ever thanks in advance!

George

 

4 comments

Please sign in to leave a comment.