Is it possible to interact with Kibana's internal API's via Python? Do I need to add something to the header of the request besides {'kbn-xsrf': 'true'}
My specific use case is to be able to assign ML jobs to a specific space in Kibana:
POST /internal/ml/saved_objects/update_jobs_spaces
{
"jobIds": ["my_job"],
"jobType": "anomaly-detector",
"spacesToAdd":["test"],
"spacesToRemove":[]
}
This works perfectly from Dev Tools, but I need to run via GitLab CICD.
Thanks Tortoise, I’m aware of that issue and looking forward to it in v9.3 (mid January 2026). In the mean time, my question was about using Kibana’s internal API’s via Python.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.