# Fault Templates

## Update the fault templates in a hub

 - [PUT /gateway/chaos/manager/api/rest/faults/{identity}](https://apidocs.harness.io/fault-templates/updatefault.md): Update the fault templates in a hub based on tag

## Delete the fault templates in a hub

 - [DELETE /gateway/chaos/manager/api/rest/faults/{identity}](https://apidocs.harness.io/fault-templates/deletefault.md): Delete the fault templates in a hub based on tag

## List all the fault templates in a hub

 - [GET /gateway/chaos/manager/api/rest/faulttemplates](https://apidocs.harness.io/fault-templates/listfaulttemplate.md): List all the fault templates in a hub based on tag

## Create fault templates in a hub

 - [POST /gateway/chaos/manager/api/rest/faulttemplates](https://apidocs.harness.io/fault-templates/createfaulttemplate.md): Create fault templates in a hub based on tag

## List all the fault templates in a hub

 - [GET /gateway/chaos/manager/api/rest/faulttemplates/{identity}](https://apidocs.harness.io/fault-templates/getfaulttemplate.md): List all the fault templates in a hub based on tag

## Update the fault templates in a hub

 - [PUT /gateway/chaos/manager/api/rest/faulttemplates/{identity}](https://apidocs.harness.io/fault-templates/updatefaulttemplate.md): Update the fault templates in a hub based on tag

## Delete the fault templates in a hub

 - [DELETE /gateway/chaos/manager/api/rest/faulttemplates/{identity}](https://apidocs.harness.io/fault-templates/deletefaulttemplate.md): Delete the fault templates in a hub based on tag

## Get the difference between 2 revisions of a fault template

 - [GET /gateway/chaos/manager/api/rest/faulttemplates/{identity}/compare](https://apidocs.harness.io/fault-templates/comparefaulttemplaterevisions.md): Get the difference between 2 revisions of a fault template in a hub

## List all the revision of a fault template in a hub

 - [GET /gateway/chaos/manager/api/rest/faulttemplates/{identity}/revisions](https://apidocs.harness.io/fault-templates/getfaulttemplaterevisions.md): List all the revision of a fault template in a hub

## Get the list of inputs in a fault template

 - [GET /gateway/chaos/manager/api/rest/faulttemplates/{identity}/variables](https://apidocs.harness.io/fault-templates/getfaulttemplatevariables.md): Get the list of inputs in a fault template based on revision

## Get a fault template yaml

 - [GET /gateway/chaos/manager/api/rest/faulttemplates/{identity}/yaml](https://apidocs.harness.io/fault-templates/getfaulttemplateyaml.md): Get a fault template yaml based on revision

