/patch endpoint returns 404, other endpoints work

My bot and I (as admin) get a 404 on API endpoint /patch, while other endpoints work as expected.

Steps to reproduce
MM_URL/api/v4/users/<user_id> returns the user ok.
MM_URL/api/v4/users/<user_id>/patch returns 404 (same user_id)

We host the official Docker image (10.11.10) with a non-profit Enterprise license.

Anyone has an idea what the problem could be here?

Much obliged,

Ernie.

What HTTP method are you sending? It’s counterintuitive, but the API docs say the method for that endpoint is HTTP PUT. If you’re sending HTTP PATCH or POST, then I’d expect you to get a 404.

I would have expected the endpoint to actually be HTTP PATCH /api/v4/users/{user_id}, in keeping with the other individual user methods, but it’s defined how it’s defined.

1 Like

Thanks, my code used POST indeed :man_facepalming:
PUT works as intended :slight_smile: