I am able to create a new node with body field, but when I try to set the value for my entity reference field, I get
{"form_errors":{"field_drawing][und":"An illegal choice has been detected. Please contact the site administrator."}}
I am sending a structure similar to the working body field, but with 'target_id' instead of 'value':
'field_drawing' = {
'und' = [
0 = {
'target_id' = 123
}
]
}
123 is the nid of an existing node. What would cause an 'illegal choice' response?