Skip to content

update user api request should return 400 if registration data present #2488

Open
@bhalsey

Description

@bhalsey

update user api request should return 400 if registration data present

Description

If an update request is made to the user api containing registration information, it is just ignored. Instead, a 400 response code should be returned.

Affects versions

All versions

Steps to reproduce

Steps to reproduce the behavior:

  1. Make PUT request to /api/user/{userId} with payload like
{
	"user": {
		"email": "[email protected]",
		"registrations":  [{"applicationId": "48f6f797-5606-436e-be70-ba6c185d92e2", "verified": true}]
	}
}
  1. Get 200 response.

Expected behavior

A400 response with code invalidJSON

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions