Update locked provisioning template with API v2

Hi all,

i am trying to update a locked provisioning template with the apipie bindings but i get a 422 error and the Foreman log says that the template is locked and that it should be cloned to be edited.
I already tried to set the “locked” attribute to false for the update. Is there any other way to unlock it or can it just be deleted?


I guess you’d need to first unlock it by separate API call, then update it and potentially lock it again. Though we discourage from modifying default templates, custom changes would be overidden on upgrades.

great, making a separate call with :locked => false only did the trick.

thx a lot,