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){
"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,
"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": {}
}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){
"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,
"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?