Skip to content
Luna
Esc
↑↓navigate↵open⌘Jpreview

Create a project

Creates a project in an organisation, with its production environment. Luna makes the slug from the name. Answers 409 when the organisation already has a project of that name. An API key needs to reach the whole organisation.

POST/_luna/orgs/{org}/projects
Authorization
AuthorizationBearer token · headerrequired

An account key (la_…), an API key (lt_…) or a session token (ls_…). The scopes listed are the permissions the operation needs.

Scopes:projects:write
Path parameters
orgstringrequired

The organisation, by its slug.

Request body
requiredapplication/json
namestring

At most 100 characters.

Responses
200

The new project.

idstringrequired
rootstringrequired

The name of its production tenant. Every other tenant of the project starts with it.

orgstringrequired

The slug of its organisation.

slugstringrequired
namestringrequired
pathstringrequired

organisation/project, as the CLI names it.

createdMsinteger<int64>required
min 0
default

The request failed. The status says how and error.message says why.

errorErrorDetailrequired
Show properties
codestring | null

A code for programs to branch on, when the error has one.

messagestringrequired

What went wrong, in a sentence a person can read.

Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST 'https://luna.example.com/_luna/orgs/string/projects' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "string"
}'
Response
{
  "id": "string",
  "root": "string",
  "org": "string",
  "slug": "string",
  "name": "string",
  "path": "string",
  "createdMs": 0
}

Was this page helpful?