Getting validation failed when using users bulk update features api

Getting validation failed error when using users bulk update features api even though right request is sent.

Passed below sample object -
{
“feature_type”: “user_type”,
“feature_value”: “1”,
“users”:[{id:“123”, email:"sample@gmail.com},{id:“2345”, email:"sample1@gmail.com"}]
}

Error -

Validation Failed.
{
code: 300,
message: ‘Validation Failed.’,
errors: [ { field: ‘users’, message: ‘Invalid Object.’ } ]
}

Is there any limit on the number of objects to be passed in users array.

Hi @jagan.marthy
Thanks for reaching out to us and welcome to our community!
I just did some testing on my end and passed a request body like this and did not get any errors

{
    "feature_type" : "user_type",
    "feature_value" : "2", 
    "users" : [
        {
            "id" : "nCbsQPq9QsdrsdU9Lg",
            "email" :"test@hotmail.com"
        },
        {
            "id" : "NbL36pRUSxasdadA",
            "email" : "test@gmail.com"
        }
    ]
}

I’m also not getting any errors if I pass around 10 or 15 objects in the users array. When I pass like around more than 50 I’m getting the above mentioned error. Could you tell is there any limit on the number of objects to be passed in the users array per request as this is not mentioned in the documentation. Also the error which I got is not mentioned in the documentation.

Hi @jagan.marthy
Thanks for sharing this with me.
I will go ahead and reach out to the Documentation team about this so it is included in the appropriate Docs.
I will also send you a private message to request for more information so I can create an internal ticket about this issue.
Cheers,
Elisa