Create a project

project_create(name, purpose, description = NULL, environment = NULL, ...)

Arguments

name

(character) Name of the project. required

purpose

(character) The purpose of the project. The maximum length is 255 characters. For examples of valid purposes, see the "Purposes" section. required

description

(character) The description of the project. The maximum length is 255 characters. optional

environment

(character) The environment of the project's resources. optional

...

Additional options passed down to POST

Value

A project object

Purposes

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

Environments

The environment attribute must have one of the following values:

  • Development

  • Staging

  • Production

If another value is specified, a 400 Bad Request is returned.

Examples

if (FALSE) { project_create(name = "venus", purpose = "Web Application") }