diff --git a/api4/post.go b/api4/post.go index b29a0699d7..b5521b4094 100644 --- a/api4/post.go +++ b/api4/post.go @@ -431,7 +431,7 @@ func updatePost(c *Context, w http.ResponseWriter, r *http.Request) { // The post being updated in the payload must be the same one as indicated in the URL. if post.Id != c.Params.PostId { - c.SetInvalidParam("post_id") + c.SetInvalidParam("id") return } diff --git a/api4/team.go b/api4/team.go index 53ee61bba7..1fed90a64c 100644 --- a/api4/team.go +++ b/api4/team.go @@ -139,7 +139,7 @@ func updateTeam(c *Context, w http.ResponseWriter, r *http.Request) { // The team being updated in the payload must be the same one as indicated in the URL. if team.Id != c.Params.TeamId { - c.SetInvalidParam("team_id") + c.SetInvalidParam("id") return }