Create a new project via API
This method allows you to create a new project.
URL
/projects
HTTP Method
POST
Supported Parameters
name
- The name of the project (required)zone_id
- The region/zone that this project will be located in3
- UK (default)6
- US East9
- US West
Example cURL Request
curl -H "Content-type: application/json" \
-H "Accept: application/json" \
--user adam@atechmedia.com:my-api-key \
-X POST \
-d '{ \
"project":{ \
"name":"My Project" \
} \
}' \
https://atech.deployhq.com/projects/
Example Response
{
"name": "My Project",
"permalink": "my-project",
"zone_id":6,
"public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAA...",
"repository": null
}