Skip to main content
POST
/
organizations
/
{organizationID}
/
projects
Create a new project
curl --request POST \
  --url https://api.xata.tech/organizations/{organizationID}/projects \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "configuration": {
    "scaleToZero": {
      "baseBranches": {
        "enabled": true,
        "inactivityPeriodMinutes": 123
      },
      "childBranches": {
        "enabled": true,
        "inactivityPeriodMinutes": 123
      }
    }
  }
}'
{
  "id": "<string>",
  "name": "<string>",
  "createdAt": "2023-11-07T05:31:56Z",
  "updatedAt": "2023-11-07T05:31:56Z",
  "configuration": {
    "scaleToZero": {
      "baseBranches": {
        "enabled": true,
        "inactivityPeriodMinutes": 123
      },
      "childBranches": {
        "enabled": true,
        "inactivityPeriodMinutes": 123
      }
    }
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

organizationID
string
required

Unique identifier of the organization to create the project in

Body

application/json
name
string
required

Human-readable name for the new project

configuration
object

Configuration details for a project, including its scale to zero settings

Response

Project successfully created

Details of a project including its ID, name, and creation/update timestamps

id
string
required

Unique identifier for the project

name
string
required

Human-readable name of the project

createdAt
string<date-time>
required

Timestamp when the project was created

updatedAt
string<date-time>
required

Timestamp when the project was last updated

configuration
object
required

Configuration details for a project, including its scale to zero settings