This method allows you to edit an existing template.

## URL

```
/templates/<permalink>
```

* Replace `<permalink>` with the permalink of your template.

## HTTP Method

```
PUT
```

## Supported Parameters

* `name` - a name or description for your template

## Example cURL request

```bash
curl -H "Content-type: application/json" \
-H "Accept: application/json" \
--user adam@atechmedia.com:my-api-key \
-X PUT \
-d '{ \
   "template":{ \
     "name":"API created (edited)" \
   } \
}' \
https://atech.deployhq.com/templates/api-created
```

## Example response

```json
{
  "name":"API created (edited)",
  "permalink":"api-created"
}
```
