[SOLVED] Programmatic modification of items, rules and sitemaps


Im building a front end to allow end-users modify items, rules and sitemaps (mainly the names and types etc.) Is there a way to parse and modify contents in items, rules and sitemap files through a program without manually editing the file?

Any help of this would be much appreciated!

Items can be created and modified through the REST API.

Rules and sitemaps can only be edited by changing the .rules and .sitemaps files.

For some reason, I thought APIs were just read only. Looks like they are not after all. Thank you very much for your reply!!!