5.5.Update a post — PATCH /v1/ats/posts/:id

5.5.Update a post — PATCH /v1/ats/posts/:id

Partially updates an existing post. The writable fields are content_html, timespent, and enabled (the last only with core.edit.state).

Example request:

PATCH /api/index.php/v1/ats/posts/101Authorization: Bearer <token>Accept: application/vnd.api+jsonContent-Type: application/json{  "content_html": "<p>Updated reply text.</p>"}

HTTP codes:

200 OK

Returns the updated post resource.

403 Forbidden

The API user does not have edit permission on this post, or the post does not exist.