You, sir, are a gent of the highest order!
It’s working now.
For fellow travellers, it seems that you can’t use the Ruby API gem’s create_topic
method…
client.create_topic(...)
…as it looks like the API only passes known fields through.
Instead, I had to use the raw client’s post method, like so:
args = {
title: title,
raw: content,
category: child_category["id"],
event: {
"start" => event_start.to_s,
"end" => event_end.to_s
}
}
new_topic = client.post("/posts", args.to_h)
EDIT: I can live with not being able to set the settings for the event plugin at the category level as that is pretty much a one-time thing.
PS, @angus, why did it take you 24 minutes to respond - I expect better service that than! *
* for the avoidance of doubt, this is dripping with British sarcasm and irony.