Edit a cluster’s name and/or deletion protection setting.
This endpoint allows updating a cluster’s name and deletion protection status. At least one field must be provided. The cluster must be owned by the user and not assigned to any job.
Args: cluster: The ID or name of the cluster to edit edit_request: Contains cluster_name and/or deletion_protection to update
Returns: EditResponse: Success message describing what was changed
Raises: HTTPException: For various error conditions (400, 403, 500)
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Request model for editing a cluster.
New name for the cluster. Must be unique within user/org scope.
"renamed-cluster"
Update deletion protection setting. Set to true to protect cluster from accidental deletion, or false to allow deletion. Must be disabled before cluster can be destroyed.
true
Successful Response
Response model for edit endpoints (cluster and storage).