Python (SDK)
import latitudesh_python_sdk
from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.projects.update(project_id="proj_Gr47qleMDAg0m", data={
"id": "proj_Gr47qleMDAg0m",
"type": latitudesh_python_sdk.UpdateProjectProjectsType.PROJECTS,
"attributes": {
"tags": [
"tag_VgrmvzlEGJhbGYv0z8YzHLa9PKV",
"tag_PEAMyKnQZEHpGAWKMpB6F7EVYyYj",
],
},
})
# Handle response
print(res)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_Gr47qleMDAg0m", &operations.UpdateProjectProjectsRequestBody{
Data: operations.UpdateProjectProjectsData{
ID: "proj_Gr47qleMDAg0m",
Type: operations.UpdateProjectProjectsTypeProjects,
Attributes: &operations.UpdateProjectProjectsAttributes{
Tags: []string{
"tag_VgrmvzlEGJhbGYv0z8YzHLa9PKV",
"tag_PEAMyKnQZEHpGAWKMpB6F7EVYyYj",
},
},
},
})
if err != nil {
log.Fatal(err)
}
if res.Object != nil {
// handle response
}
}import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.projects.update({
projectId: "proj_Gr47qleMDAg0m",
requestBody: {
data: {
id: "proj_Gr47qleMDAg0m",
type: "projects",
attributes: {
tags: [
"tag_VgrmvzlEGJhbGYv0z8YzHLa9PKV",
"tag_PEAMyKnQZEHpGAWKMpB6F7EVYyYj",
],
},
},
},
});
console.log(result);
}
run();curl --request PATCH \
--url https://api.latitude.sh/projects/{project_id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"id": "proj_Gr47qleMDAg0m",
"type": "projects",
"attributes": {
"tags": [
"tag_VgrmvzlEGJhbGYv0z8YzHLa9PKV",
"tag_PEAMyKnQZEHpGAWKMpB6F7EVYyYj"
]
}
}
}
'const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
data: {
id: 'proj_Gr47qleMDAg0m',
type: 'projects',
attributes: {tags: ['tag_VgrmvzlEGJhbGYv0z8YzHLa9PKV', 'tag_PEAMyKnQZEHpGAWKMpB6F7EVYyYj']}
}
})
};
fetch('https://api.latitude.sh/projects/{project_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.latitude.sh/projects/{project_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'data' => [
'id' => 'proj_Gr47qleMDAg0m',
'type' => 'projects',
'attributes' => [
'tags' => [
'tag_VgrmvzlEGJhbGYv0z8YzHLa9PKV',
'tag_PEAMyKnQZEHpGAWKMpB6F7EVYyYj'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.patch("https://api.latitude.sh/projects/{project_id}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"data\": {\n \"id\": \"proj_Gr47qleMDAg0m\",\n \"type\": \"projects\",\n \"attributes\": {\n \"tags\": [\n \"tag_VgrmvzlEGJhbGYv0z8YzHLa9PKV\",\n \"tag_PEAMyKnQZEHpGAWKMpB6F7EVYyYj\"\n ]\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.latitude.sh/projects/{project_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"data\": {\n \"id\": \"proj_Gr47qleMDAg0m\",\n \"type\": \"projects\",\n \"attributes\": {\n \"tags\": [\n \"tag_VgrmvzlEGJhbGYv0z8YzHLa9PKV\",\n \"tag_PEAMyKnQZEHpGAWKMpB6F7EVYyYj\"\n ]\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "proj_Gr47qleMDAg0m",
"type": "projects",
"attributes": {
"tags": [
{
"id": "tag_VgrmvzlEGJhbGYv0z8YzHLa9PKV",
"name": "Ted Sandyman",
"description": "Corporis nostrum praesentium deleniti.",
"color": "#020302"
},
{
"id": "tag_PEAMyKnQZEHpGAWKMpB6F7EVYyYj",
"name": "Erchirion",
"description": "Corporis quos sequi mollitia.",
"color": "#0d4e4e"
}
],
"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_5sst6soyu2lzm0",
"type": "Normal",
"method": "Normal"
},
"team": {
"id": "team_mygwarnav0hG97b9393biKZxall",
"name": "198 Team",
"slug": "198-team",
"description": "198 Team",
"address": "Apt. 401 9373 Gregg Islands, Cassinmouth, NC 33577-6685",
"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": 5,
"virtual_machine_gpu": 3,
"elastic_ip": 5,
"virtual_network": 5,
"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": "2026-01-14T15:56:40+00:00",
"updated_at": "2026-01-14T15:56:40+00:00"
}
},
"meta": {}
}Projects
Update project
PATCH
/
projects
/
{project_id}
Python (SDK)
import latitudesh_python_sdk
from latitudesh_python_sdk import Latitudesh
import os
with Latitudesh(
bearer=os.getenv("LATITUDESH_BEARER", ""),
) as latitudesh:
res = latitudesh.projects.update(project_id="proj_Gr47qleMDAg0m", data={
"id": "proj_Gr47qleMDAg0m",
"type": latitudesh_python_sdk.UpdateProjectProjectsType.PROJECTS,
"attributes": {
"tags": [
"tag_VgrmvzlEGJhbGYv0z8YzHLa9PKV",
"tag_PEAMyKnQZEHpGAWKMpB6F7EVYyYj",
],
},
})
# Handle response
print(res)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_Gr47qleMDAg0m", &operations.UpdateProjectProjectsRequestBody{
Data: operations.UpdateProjectProjectsData{
ID: "proj_Gr47qleMDAg0m",
Type: operations.UpdateProjectProjectsTypeProjects,
Attributes: &operations.UpdateProjectProjectsAttributes{
Tags: []string{
"tag_VgrmvzlEGJhbGYv0z8YzHLa9PKV",
"tag_PEAMyKnQZEHpGAWKMpB6F7EVYyYj",
},
},
},
})
if err != nil {
log.Fatal(err)
}
if res.Object != nil {
// handle response
}
}import { Latitudesh } from "latitudesh-typescript-sdk";
const latitudesh = new Latitudesh({
bearer: process.env["LATITUDESH_BEARER"] ?? "",
});
async function run() {
const result = await latitudesh.projects.update({
projectId: "proj_Gr47qleMDAg0m",
requestBody: {
data: {
id: "proj_Gr47qleMDAg0m",
type: "projects",
attributes: {
tags: [
"tag_VgrmvzlEGJhbGYv0z8YzHLa9PKV",
"tag_PEAMyKnQZEHpGAWKMpB6F7EVYyYj",
],
},
},
},
});
console.log(result);
}
run();curl --request PATCH \
--url https://api.latitude.sh/projects/{project_id} \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"data": {
"id": "proj_Gr47qleMDAg0m",
"type": "projects",
"attributes": {
"tags": [
"tag_VgrmvzlEGJhbGYv0z8YzHLa9PKV",
"tag_PEAMyKnQZEHpGAWKMpB6F7EVYyYj"
]
}
}
}
'const options = {
method: 'PATCH',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
data: {
id: 'proj_Gr47qleMDAg0m',
type: 'projects',
attributes: {tags: ['tag_VgrmvzlEGJhbGYv0z8YzHLa9PKV', 'tag_PEAMyKnQZEHpGAWKMpB6F7EVYyYj']}
}
})
};
fetch('https://api.latitude.sh/projects/{project_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.latitude.sh/projects/{project_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'data' => [
'id' => 'proj_Gr47qleMDAg0m',
'type' => 'projects',
'attributes' => [
'tags' => [
'tag_VgrmvzlEGJhbGYv0z8YzHLa9PKV',
'tag_PEAMyKnQZEHpGAWKMpB6F7EVYyYj'
]
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}HttpResponse<String> response = Unirest.patch("https://api.latitude.sh/projects/{project_id}")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"data\": {\n \"id\": \"proj_Gr47qleMDAg0m\",\n \"type\": \"projects\",\n \"attributes\": {\n \"tags\": [\n \"tag_VgrmvzlEGJhbGYv0z8YzHLa9PKV\",\n \"tag_PEAMyKnQZEHpGAWKMpB6F7EVYyYj\"\n ]\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.latitude.sh/projects/{project_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"data\": {\n \"id\": \"proj_Gr47qleMDAg0m\",\n \"type\": \"projects\",\n \"attributes\": {\n \"tags\": [\n \"tag_VgrmvzlEGJhbGYv0z8YzHLa9PKV\",\n \"tag_PEAMyKnQZEHpGAWKMpB6F7EVYyYj\"\n ]\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"data": {
"id": "proj_Gr47qleMDAg0m",
"type": "projects",
"attributes": {
"tags": [
{
"id": "tag_VgrmvzlEGJhbGYv0z8YzHLa9PKV",
"name": "Ted Sandyman",
"description": "Corporis nostrum praesentium deleniti.",
"color": "#020302"
},
{
"id": "tag_PEAMyKnQZEHpGAWKMpB6F7EVYyYj",
"name": "Erchirion",
"description": "Corporis quos sequi mollitia.",
"color": "#0d4e4e"
}
],
"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_5sst6soyu2lzm0",
"type": "Normal",
"method": "Normal"
},
"team": {
"id": "team_mygwarnav0hG97b9393biKZxall",
"name": "198 Team",
"slug": "198-team",
"description": "198 Team",
"address": "Apt. 401 9373 Gregg Islands, Cassinmouth, NC 33577-6685",
"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": 5,
"virtual_machine_gpu": 3,
"elastic_ip": 5,
"virtual_network": 5,
"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": "2026-01-14T15:56:40+00:00",
"updated_at": "2026-01-14T15:56:40+00:00"
}
},
"meta": {}
}Was this page helpful?
⌘I