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

[bug]: ISSUE PATCH API Does Nothing #6173

Open
1 task done
jvilalta opened this issue Dec 9, 2024 · 2 comments
Open
1 task done

[bug]: ISSUE PATCH API Does Nothing #6173

jvilalta opened this issue Dec 9, 2024 · 2 comments
Assignees
Labels
🐛bug Something isn't working

Comments

@jvilalta
Copy link

jvilalta commented Dec 9, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When I attempt to add assignees or labels to an issue via the PATCH method, I get a success response code (200), but the issue is not updated.

Steps to reproduce

curl --location --request PATCH 'https://api.plane.so/api/v1/workspaces/{my-slug}/projects/{projectId}/issues/{IssueId}'
--header 'x-api-key: mykey'
--header 'Content-Type: application/json'
--data '{
"labels":["{labelID}"]
}'

Environment

Production

Browser

None

Variant

Cloud

Version

Latest

@jvilalta jvilalta added the 🐛bug Something isn't working label Dec 9, 2024
@NarayanBavisetti
Copy link
Collaborator

Hey @jvilalta, I just tried to replicate the issue mentioned above. I was able to create the labels successfully, and they are being attached correctly. Can you please check it again?

@jvilalta
Copy link
Author

I see what the issue is now, the API is returning a 301 when I make a patch request, redirecting the same url with GET as the method.
When I do a post, it works, fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants