Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v7.0.11 API PATCH User - MethodNotAllowed #15435

Closed
2 tasks done
ptn-aviation opened this issue Sep 2, 2024 · 3 comments
Closed
2 tasks done

v7.0.11 API PATCH User - MethodNotAllowed #15435

ptn-aviation opened this issue Sep 2, 2024 · 3 comments

Comments

@ptn-aviation
Copy link

Debug mode

Describe the bug

When I try to PATCH a user via API call, I receive:

{"status":"error","messages":"Method not allowed","payload":null}%

This happens since Version v7.0.11

Reproduction steps

  1. execute curl:
curl -X PATCH "https://snipeit.domain/api/v1/users/123" \
-H "Authorization: Bearer TOKEN" \
-H "accept: application/json" \
-H "Content-Type: application/json" \
--data '{
    "activated": "1"
}' \
--max-time 300
  1. Receive error response:
    {"status":"error","messages":"Method not allowed","payload":null}

Expected behavior

It should return 200 ok

Screenshots

No response

Snipe-IT Version

v7.0.11

Operating System

Ubuntu

Web Server

Apache

PHP Version

snipe/snipe-it latest Docker Image

Operating System

No response

Browser

No response

Version

No response

Device

No response

Operating System

No response

Browser

No response

Version

No response

Error messages

No response

Additional context

No response

Copy link

welcome bot commented Sep 2, 2024

👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.

@snipe
Copy link
Owner

snipe commented Sep 2, 2024

This was already fixed on develop and master

@snipe snipe closed this as completed Sep 2, 2024
@snipe snipe reopened this Sep 2, 2024
@snipe
Copy link
Owner

snipe commented Sep 2, 2024

Ah, actually, maybe not - checking further now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants