Skip to content

API module returns only status/message on post create/update instead of the full object #324

@armanist

Description

@armanist

Current behavior

When creating or updating a post through the API module template, the response on success only includes status and message:

{
  "status": "success",
  "message": "Updated successfully"
}

Expected behavior

The create and update endpoints should return the same data structure used by the list and get endpoints, e.g.:

{
  "status": "success",
  "message": "Updated successfully",
  "data": {
    "uuid": "9a3466fc-9e01-11f0-b8cc-20474703c3bf",
    "title": "King and Queen of Hearts were seated",
    "content": "<p>Bill! I wouldnt be so proud...</p>",
    "image": "baa960f2-7e06-37c5-b07c-4b885be19108/king-and-queen-of-hearts-were-seated-on-their.jpg",
    "date": "2025/10/06 13:13",
    "author": "Gregory Huels Dietrich"
  }
}

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions