Create a new template via API
This method allows you to create a new template in your DeployHQ account.
URL
/templates
HTTP Method
POST
Supported Parameters
name
- The name or description for the template (required)project_id
- The identifier of the project you wish to copy the configuration from
Example cURL Request
curl -H "Content-type: application/json" \
-H "Accept: application/json" \
--user adam@atechmedia.com:my-api-key \
-X POST \
-d '{ \
"template":{ \
"project_id":"2f905ec7-107a-4407-865c-dbe9c8704f25", \
"name":"API created" \
} \
}' \
https://atech.deployhq.com/templates
Example Response
{
"name":"API created",
"permalink":"api-created"
}