Skip to main content
PATCH
/
projects
/
{project_id}
Go (SDK)
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.Update(ctx, "proj_WVQJDMMwDRbyE", &operations.UpdateProjectProjectsRequestBody{
        Data: operations.UpdateProjectProjectsData{
            ID: latitudeshgosdk.Pointer("proj_WVQJDMMwDRbyE"),
            Type: operations.UpdateProjectProjectsTypeProjects,
            Attributes: &operations.UpdateProjectProjectsAttributes{
                Tags: []string{
                    "tag_xNrKWa1ZaMtBKwaZnYaMTBE2XQb",
                    "tag_Ge9E4oboPgILP5e9aKNAUB4Gaw5",
                },
            },
        },
    })
    if err != nil {
        log.Fatal(err)
    }
    if res.Object != nil {
        // handle response
    }
}
{
  "data": {
    "id": "proj_WVQJDMMwDRbyE",
    "type": "projects",
    "attributes": {
      "tags": [
        {
          "id": "tag_xNrKWa1ZaMtBKwaZnYaMTBE2XQb",
          "name": "Belladonna Took",
          "description": "Error excepturi et voluptatum.",
          "color": "#2424c2"
        },
        {
          "id": "tag_Ge9E4oboPgILP5e9aKNAUB4Gaw5",
          "name": "Eglantine Banks",
          "description": "Totam est sit qui.",
          "color": "#535341"
        }
      ],
      "name": "Moore-Durgan",
      "slug": "moore-durgan",
      "description": "Sequi occaecati eaque exercitationem.",
      "bandwidth_alert": true,
      "environment": "Production",
      "provisioning_type": "on_demand",
      "billing_type": "Normal",
      "billing_method": "Normal",
      "billing": {
        "subscription_id": "sub_gn4j87r9d8dt8s",
        "type": "Normal",
        "method": "Normal"
      },
      "team": {
        "id": "team_eP8xa4KJl8t3GmjwLw4JfEKMXyr5",
        "name": "160 Team",
        "slug": "160-team",
        "description": "160 Team",
        "address": "68937 Leopoldo Greens, New Columbusmouth, NC 91874",
        "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:35+00:00",
      "updated_at": "2025-07-16T18:36:35+00:00"
    }
  },
  "meta": {}
}

Authorizations

Authorization
string
header
required

Path Parameters

project_id
string
required

The project ID or Slug

Body

data
object
required

Response

200 - application/vnd.api+json

Success

data
object