kennym is trying to update a topic body via the API but is having trouble. Falco advises using PUT /posts/:id with post[raw] in FormData, as stated in the official docs. However, kennym clarifies that :id refers to the post ID, not the topic ID.
As explained by Falco, a topic is essentially a collection of posts, and the first post is considered the topic body. To update the topic body, one would need to update the first post. kennym looks into retrieving the topic’s post ID using the GET /t/{id}.json endpoint.
Falco suggests saving the post ID when creating the topic to make future updates easier.
If it’s a sync, you can save the post id of the topic when you create it, so it’s easy when you need to update it later (if that’s a common operation).