- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2025 12:32 PM
Hi Team,
I am trying to find REST API reference for swapping a cluster but unable to find it in the documentation. Can anyone please tell me what is the REST API reference for swapping an existing cluster to another existing cluster, if present?
If not present, can anyone help me how to achieve this using update REST API reference and provide me a sample JSON body? I have unable to find the correct fieldname through which I can give the update cluster ID. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2025 12:39 PM
Hi @IUC08 ,
By swapping you mean to use other existing cluster in your jobs?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2025 03:01 PM
Yes, I want to swap the present cluster of the job to one of the other existing cluster and I want to achieve this using rest API. As I couldn't find any swap reference to do this, can it be done using update reference? If so, can you please share a sample JSON body?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2025 03:35 PM
Hi @IUC08 ,
Here's the API you're looking for. There's also provided sample body of request:
https://docs.databricks.com/api/workspace/jobs/update
If you encounter trouble or you're not sure how to use it let us know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2025 10:27 PM
Hi @szymon_dybczak,
It helps! I am able to change the clusters. Thanks a lot!