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

PATCH won't change task id #613

Closed
gargooza opened this issue Jun 4, 2016 · 0 comments
Closed

PATCH won't change task id #613

gargooza opened this issue Jun 4, 2016 · 0 comments

Comments

@gargooza
Copy link

gargooza commented Jun 4, 2016

v0.13

I'm trying to change the name of a task. The API docs say "If a task already exists then use the PATCH method to modify any property of the task." The task id is listed as a property so I had hoped I could change the name of a task by issuing a PATCH with a new id. Even though the API replies with a 204, the task name is not actually changed.

For example, if I try to change my task name from "myTaskName" to "aNewTaskName" by sending a PATCH to kapacitor/v1/tasks/myTaskName with a JSON payload of {"id":"aNewTaskName"} I get a 204 response but the name stays the same.

As a sanity check, I am able to successfully modify other properties such as status using PATCH to that endpoint.

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

1 participant