Version 7.11.18. Creating relationships works great in general using the JSON API but I have having an issue. I needed bugs/meetings to have a many to many relationship so I added a new relationship (called bugs_meetings_1). If I try to create that relationship to Bugs using the API I get the following error:
“Link field has not found in Meeting to determine relationship for Bug”
The data I am sending it is just { “type”: “Bugs”, “id”: “xxx” } which works for all other relationships.
I found what appears to be a bug in the API - when you retrieve a meeting using the API you get a link for bugs (“related”: “V8/module/Meeting/xxx/relationships/bugs_meetings_1”
) but retrieving that link results in “data”: [ { “type”: “Bug”, “id”: “xxxx”, “links”: {“self”: “V8/module/Bug/xxxx” } } ]
which is an invalid link because it is …/Bug/… instead of …/Bugs/…and results in an error
When I look at the initial error received when trying to create the relationship it notice is “Link field … relationship for Bug” as opposed to “Bugs” so now I have no idea if the problem is something I am doing or something related to the invalid Bug vs Bugs.
Any help would be much appreciated. Thank you.