Header

Create a new project

This method allows you to create a new project.

URL

/projects

HTTP Method

POST

Supported Parameters

  • name - The name of the project (required)

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",
    "public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAA...",
    "repository": null
}