Hello everyone,
So im having some problems when trying to post a new discussion with the API. I can add a new discussion and everything is fine in that regard but I'm unable to add any tags to it. I cant seem to figure out what im doing wrong. Maybe you can see it? This is the JSON I send in the body to api/discussion using POST:
{
"data": {
"attributes": {
"title": "Some title",
"content": "Some content"
}
},
"relationships": {
"tags": {
"data": [ {
"type": "tags",
"id": "1"
} ]
}
},
"type": "discussions"
}
After this is sent the server replies with the discussion data and the tags array is empty. The discussion appears under "All discussions" but not under the specified tag. What am I doing wrong?