I’m trying to add some relations to User objects, but am seeing weird results in my app and my REST client.
Are there certain fields that are required when sending a PUT on a user. Right now I’m trying to limit the amount of data I send, so I’m only sending the relations. Is that not possible? I couldn’t find an answer to this in the documentation.
Thanks!
Hi Jeff,
Minimum object to save to User table if following:
{
"email":"e@e.e",
"password": "***",
"___class": "Users"
}
Email property is default identity so if you changed identity, it should be sent instead.
Regards,
Denys
I think maybe I wasn’t correct/clear in my question. I’m trying to save relations of custom objects on Users.
To send a PUT to a user, is there a minimum amount of data I must send?
I think maybe I wasn’t correct/clear in my question. I’m trying to save relations of custom objects on Users.
To send a PUT to a user, is there a minimum amount of data I must send?
If you need to add relations, then just add them to the same JSON Denys provided. For any object the only obligatory field is “___class”, and “objectId” in case you’re establishing a relation to the existing object.
{
"email":"e@e.e",
"password": "***",
"___class": "Users"
"relation1": {
"___class": "MyTable"
}