Create a project
project_create(name, purpose, description = NULL, environment = NULL, ...)
A project object
(character) Name of the project. required
(character) The purpose of the project. The maximum length is 255 characters. For examples of valid purposes, see the "Purposes" section. required
(character) The description of the project. The maximum length is 255 characters. optional
(character) The environment of the project's resources. optional
Additional options passed down to POST
POST
The purpose attribute can have one of the following values:
Just trying out DigitalOcean
Class project / Educational purposes
Website or blog
Web Application
Service or API
Mobile Application
Machine learning / AI / Data processing
IoT
Operational / Developer tooling
If specify another value for purpose, for example "your custom purpose", your purpose will be stored as Other: your custom purpose
The environment attribute must have one of the following values:
Development
Staging
Production
If another value is specified, a 400 Bad Request is returned.
if (FALSE) { project_create(name = "venus", purpose = "Web Application") }
Run the code above in your browser using DataLab