Authorizations
Body
Response
201 - application/vnd.api+json
Created
package main
import(
"context"
"os"
latitudeshgosdk "github.com/latitudesh/latitudesh-go-sdk"
"github.com/latitudesh/latitudesh-go-sdk/models/operations"
"log"
)
func main() {
ctx := context.Background()
s := latitudeshgosdk.New(
latitudeshgosdk.WithSecurity(os.Getenv("LATITUDESH_BEARER")),
)
res, err := s.Projects.Create(ctx, operations.CreateProjectProjectsRequestBody{
Data: &operations.CreateProjectProjectsData{
Type: operations.CreateProjectProjectsTypeProjects,
Attributes: &operations.CreateProjectProjectsAttributes{
Name: "Kshlerin, Hand and Beer",
ProvisioningType: operations.CreateProjectProvisioningTypeOnDemand,
Description: latitudeshgosdk.Pointer("Thick slices of French toast bread, brown sugar, half-and-half and vanilla, topped with powdered sugar. With two eggs served any style, and your choice of smoked bacon or smoked ham."),
Environment: operations.CreateProjectEnvironmentDevelopment.ToPointer(),
},
},
})
if err != nil {
log.Fatal(err)
}
if res.Object != nil {
// handle response
}
}{
"data": {
"id": "proj_lkg1De8vqvZE5",
"type": "projects",
"attributes": {
"tags": [],
"name": "Kshlerin, Hand and Beer",
"slug": "kshlerin-hand-and-beer",
"description": "Thick slices of French toast bread, brown sugar, half-and-half and vanilla, topped with powdered sugar. With two eggs served any style, and your choice of smoked bacon or smoked ham.",
"bandwidth_alert": null,
"environment": "Development",
"provisioning_type": "on_demand",
"billing_type": "Normal",
"billing_method": "Normal",
"billing": {
"subscription_id": "sub_xb48v35nx0aybq",
"type": "Normal",
"method": "Normal"
},
"team": {
"id": "team_GJ5KavgA8es2BK0keG7xu4N9ZlY",
"name": "141 Team",
"slug": "141-team",
"description": "141 Team",
"address": "Apt. 307 36420 Randell Hollow, Dungborough, GA 20702",
"currency": {
"id": "cur_AW6Q2D9lqKLpr",
"code": "BRL",
"name": "Brazilian Real",
"currency_id": null
},
"status": "verified",
"feature_flags": [],
"limits": {
"bare_metal": 5,
"bare_metal_gpu": 1,
"virtual_machine": null,
"virtual_machine_gpu": 0,
"database": null,
"filesystem": null,
"block_storage": null
}
},
"stats": {
"databases": 0,
"ip_addresses": 0,
"prefixes": 0,
"servers": 0,
"storages": 0,
"virtual_machines": 0,
"vlans": 0
},
"created_at": "2025-07-16T18:36:34+00:00",
"updated_at": "2025-07-16T18:36:34+00:00"
}
},
"meta": {}
}package main
import(
"context"
"os"
latitudeshgosdk "github.com/latitudesh/latitudesh-go-sdk"
"github.com/latitudesh/latitudesh-go-sdk/models/operations"
"log"
)
func main() {
ctx := context.Background()
s := latitudeshgosdk.New(
latitudeshgosdk.WithSecurity(os.Getenv("LATITUDESH_BEARER")),
)
res, err := s.Projects.Create(ctx, operations.CreateProjectProjectsRequestBody{
Data: &operations.CreateProjectProjectsData{
Type: operations.CreateProjectProjectsTypeProjects,
Attributes: &operations.CreateProjectProjectsAttributes{
Name: "Kshlerin, Hand and Beer",
ProvisioningType: operations.CreateProjectProvisioningTypeOnDemand,
Description: latitudeshgosdk.Pointer("Thick slices of French toast bread, brown sugar, half-and-half and vanilla, topped with powdered sugar. With two eggs served any style, and your choice of smoked bacon or smoked ham."),
Environment: operations.CreateProjectEnvironmentDevelopment.ToPointer(),
},
},
})
if err != nil {
log.Fatal(err)
}
if res.Object != nil {
// handle response
}
}{
"data": {
"id": "proj_lkg1De8vqvZE5",
"type": "projects",
"attributes": {
"tags": [],
"name": "Kshlerin, Hand and Beer",
"slug": "kshlerin-hand-and-beer",
"description": "Thick slices of French toast bread, brown sugar, half-and-half and vanilla, topped with powdered sugar. With two eggs served any style, and your choice of smoked bacon or smoked ham.",
"bandwidth_alert": null,
"environment": "Development",
"provisioning_type": "on_demand",
"billing_type": "Normal",
"billing_method": "Normal",
"billing": {
"subscription_id": "sub_xb48v35nx0aybq",
"type": "Normal",
"method": "Normal"
},
"team": {
"id": "team_GJ5KavgA8es2BK0keG7xu4N9ZlY",
"name": "141 Team",
"slug": "141-team",
"description": "141 Team",
"address": "Apt. 307 36420 Randell Hollow, Dungborough, GA 20702",
"currency": {
"id": "cur_AW6Q2D9lqKLpr",
"code": "BRL",
"name": "Brazilian Real",
"currency_id": null
},
"status": "verified",
"feature_flags": [],
"limits": {
"bare_metal": 5,
"bare_metal_gpu": 1,
"virtual_machine": null,
"virtual_machine_gpu": 0,
"database": null,
"filesystem": null,
"block_storage": null
}
},
"stats": {
"databases": 0,
"ip_addresses": 0,
"prefixes": 0,
"servers": 0,
"storages": 0,
"virtual_machines": 0,
"vlans": 0
},
"created_at": "2025-07-16T18:36:34+00:00",
"updated_at": "2025-07-16T18:36:34+00:00"
}
},
"meta": {}
}Show child attributes
Created
Show child attributes
Was this page helpful?