POST
/
project
curl --request POST \
  --url https://api.ubicloud.com/project \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "my-project-name"
}'
{
  "credit": 25.4,
  "discount": 10,
  "id": "pjkkmx0f2vke4h36nk9cm8v8q0",
  "name": "my-project"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
name
string
required
Example:

"my-project-name"

Response

200
application/json
A Project
credit
number
required

Remaining credit of the project in $

Example:

25.4

discount
integer
required

Discount of the project as percentage

Example:

10

id
string
required
Example:

"pjkkmx0f2vke4h36nk9cm8v8q0"

name
string
required

Name of the project

Example:

"my-project"