diff --git a/sahara/api/v2/cluster_templates.py b/sahara/api/v2/cluster_templates.py index 694be8b3..4485b205 100644 --- a/sahara/api/v2/cluster_templates.py +++ b/sahara/api/v2/cluster_templates.py @@ -49,7 +49,7 @@ def cluster_templates_get(cluster_template_id): return u.to_wrapped_dict(api.get_cluster_template, cluster_template_id) -@rest.put('/cluster-templates/') +@rest.patch('/cluster-templates/') @acl.enforce("data-processing:cluster-templates:modify") @v.check_exists(api.get_cluster_template, 'cluster_template_id') @v.validate(ct_schema.CLUSTER_TEMPLATE_UPDATE_SCHEMA, diff --git a/sahara/api/v2/data_sources.py b/sahara/api/v2/data_sources.py index eb859b23..2781bc3c 100644 --- a/sahara/api/v2/data_sources.py +++ b/sahara/api/v2/data_sources.py @@ -56,7 +56,7 @@ def data_source_delete(data_source_id): return u.render() -@rest.put('/data-sources/') +@rest.patch('/data-sources/') @acl.enforce("data-processing:data-sources:modify") @v.check_exists(api.get_data_source, 'data_source_id') @v.validate(v_d_s_schema.DATA_SOURCE_UPDATE_SCHEMA) diff --git a/sahara/api/v2/job_binaries.py b/sahara/api/v2/job_binaries.py index d4090cdc..46f1cc9d 100644 --- a/sahara/api/v2/job_binaries.py +++ b/sahara/api/v2/job_binaries.py @@ -68,7 +68,7 @@ def job_binary_data(job_binary_id): return data -@rest.put('/job-binaries/') +@rest.patch('/job-binaries/') @acl.enforce("data-processing:job-binaries:modify") @v.validate(v_j_b_schema.JOB_BINARY_UPDATE_SCHEMA, v_j_b.check_job_binary) def job_binary_update(job_binary_id, data): diff --git a/sahara/api/v2/node_group_templates.py b/sahara/api/v2/node_group_templates.py index 344eb77b..0d37b555 100644 --- a/sahara/api/v2/node_group_templates.py +++ b/sahara/api/v2/node_group_templates.py @@ -51,7 +51,7 @@ def node_group_templates_get(node_group_template_id): api.get_node_group_template, node_group_template_id) -@rest.put('/node-group-templates/') +@rest.patch('/node-group-templates/') @acl.enforce("data-processing:node-group-templates:modify") @v.check_exists(api.get_node_group_template, 'node_group_template_id') @v.validate(ngt_schema.NODE_GROUP_TEMPLATE_UPDATE_SCHEMA,