Skip to main content
POST
/
api
/
projects
/
beta
/
projects
Create a project
curl --request POST \
  --url https://api.example.com/api/projects/beta/projects \
  --header 'Content-Type: application/json' \
  --header 'X-Domino-Api-Key: <api-key>' \
  --data '
{
  "description": "<string>",
  "name": "<string>",
  "isRestricted": true,
  "ownerId": "<string>"
}
'
{
  "metadata": {
    "notices": [
      "<string>"
    ],
    "requestId": "<string>"
  },
  "project": {
    "collaborators": [
      {
        "id": "662604702b7e5d347dbe7a908"
      }
    ],
    "description": "<string>",
    "id": "626046fcb7e5d347dbe7a904",
    "isRestricted": true,
    "name": "My Project",
    "ownerId": "662604702b7e5d347dbe7a908",
    "ownerUsername": "steve_holt",
    "billingTag": {
      "tag": "<string>"
    },
    "internalTags": [
      "<string>"
    ],
    "mainRepository": {
      "defaultRef": {
        "value": "<string>"
      },
      "id": "62604702b7e5d347dbe7a908",
      "uri": "https://github.com/torvalds/linux",
      "name": "<string>"
    }
  }
}

Authorizations

X-Domino-Api-Key
string
header
required

Body

application/json

Project to create

description
string
required

Project description.

name
string
required

Name of this project. The name must be unique and cannot contain white space.

visibility
enum<string>
required

Project visibility

Available options:
public,
searchable,
private
billingTag
object

Billing Tag to assign to projects for cost aggregation

isRestricted
boolean

Optional flag for setting a new project as restricted. ProjectClassifier permission required for use.

mainRepository
object
ownerId
string

Optional Id of a user to own this project. Defaults to the calling user if not provided. Does not currently support creating projects owned by Organizations.

repoToCreate
object

An object representing a new git repo to create in a remote repository

templateDetails
object

Response

Success

metadata
object
required
project
object
required