Typescript
import { Latitudesh } from "latitudesh-typescript-sdk"; const latitudesh = new Latitudesh({ bearer: process.env["LATITUDESH_BEARER"] ?? "", }); async function run() { const result = await latitudesh.userData.createNew({ data: { type: "user_data", attributes: { description: "User Data description", content: "I2Nsb3VkLWNvbmZpZwpydW5jbWQ6CiAtIFsgdG91Y2gsICAvaG9tZS91YnVudHUvdGVzdCBd", }, }, }); console.log(result); } run();
{ "data": { "id": "ud_GKN4ydzgqVob3", "type": "user_data", "attributes": { "description": "User Data description", "content": "I2Nsb3VkLWNvbmZpZwpydW5jbWQ6CiAtIFsgdG91Y2gsICAvaG9tZS91YnVudHUvdGVzdCBd", "created_at": "2025-07-16T18:37:12+00:00", "updated_at": "2025-07-16T18:37:12+00:00", "decoded_content": "#cloud-config\nruncmd:\n - [ touch, /home/ubuntu/test ]" } }, "meta": {} }
Allows you to create User Data in a team, which can be used to perform custom setup on your servers after deploy and reinstall.
Show child attributes
Created
Was this page helpful?