Hey Folks!
I am new to this community, here is my first request:
This involves the development of a Python script for integration with the Freshservice API. The aim is to dynamically synchronize service catalog items, in particular bundles (articles with additional items), and to ensure that the IDs used are correct and that the articles in the bundle are consistent with the data and availability of the individual article.
If, for example, an item contained in the bundle (is_bundle) is deleted or the title is changed, the script running via cron should also adjust the title in all bundles in which the item appears or remove it if it no longer exists. In other words, the changes to the individual items are synchronized across existing additional items that are present in bundles.
Now that either the “display-id” or the “item_id” is used correctly in the appropriate places, the logic is in place to determine whether and which changes need to be made, I’m running into a brick wall.
PROBLEM: It is not possible for me to update, delete and regenerate the items or anything similar. All attempts end in :
requests.exceptions.HTTPError: 405 Client Error: Method Not Allowed for url: https://xxxxxxx.freshservice.com/api/v2/service_catalog/items/54000289399
I can’t find any information about update, delete or PUT in the API. At least not as far as the “Service Catalog” area is concerned. Such functions are probably possible in other areas.
The following Support/Forum article also briefly addresses this topic. Although the author intended something different, “Freddy” says that an update would be possible in exactly the way I have chosen.
This statement is probably simply wrong, am I right here? Has anyone ever wanted to do the same thing? Or is it planned for the future to carry out updates, deletes, etc. in the service catalog via API?
Greetz!!