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

[dev.icinga.com #12893] POST request creates new object instead of updating it #472

Open
icinga-migration opened this issue Oct 12, 2016 · 1 comment
Labels

Comments

@icinga-migration
Copy link

This issue has been migrated from Redmine: https://dev.icinga.com/issues/12893

Created by tobiasvdk on 2016-10-12 10:10:00 +00:00

Assignee: (none)
Status: New
Target Version: (none)
Last Update: 2016-10-12 10:10:00 +00:00 (in Redmine)


I created a service template "base-service-template" via the director web interface. Afterwards I sent a POST request to https://my-icinga2-master/icingaweb2/director/service with json data

{'object_name': 'base-service-template',
 'object_type': 'template',
  'vars': {'notifications': {'enabled': True}}},

This resulted in creating a new object with the same name instead of updating the existing one. Documentation says "POST: Trigger actions, create or modify objects. Can also be used to partially modify objects"

post_request_creates_new_template_with_same_name.png

I'm using git commit 0a26b94.

Attachments


Relations:

@icinga-migration
Copy link
Author

Updated by tgelf on 2016-10-25 12:09:51 +00:00

  • Blocked set to 12230

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

No branches or pull requests

1 participant