Support Topics Documentation Slack YouTube Blog

Backendless 4.0 create object with relationship with POST REST API


(Sebastian Zajec) #1

Hello,

I am not able to create new object with relationship(POST call) via REST Api also this call is working properly on 3.0 version. Am i need to do 2 separated call then 3rd one to connect these two objects ?

Example request:

{
"spec":"XYZ",
"person":{
"name":"XXX",
"surname":"YYY"
}
}

Best regards,
Sebastian


(Mark Piller) #2

Hi Sebastian,

Establishing relations between objects has changed in version 4. For details, please see the documentation:
https://backendless.com/docs/rest/doc.html#related_objects

Regards,
Mark