Authorizations
Path Parameters
Project ID or Slug
curl --request POST \
--url https://api.latitude.sh/projects/{project_id}/user_data \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"data": {
"type": "user_data",
"attributes": {
"content": "I2Nsb3VkLWNvbmZpZwpydW5jbWQ6CiAtIFsgdG91Y2gsICAvaG9tZS91YnVudHUvdGVzdCBd",
"description": "User Data description"
}
}
}'
{
"data": {
"id": "ud_pRMLydp0dQKr1",
"type": "user_data",
"attributes": {
"description": "User Data description",
"content": "I2Nsb3VkLWNvbmZpZwpydW5jbWQ6CiAtIFsgdG91Y2gsICAvaG9tZS91YnVudHUvdGVzdCBd",
"created_at": "2025-07-16T18:36:39+00:00",
"updated_at": "2025-07-16T18:36:39+00:00",
"decoded_content": "#cloud-config\nruncmd:\n - [ touch, /home/ubuntu/test ]"
}
},
"meta": {}
}
Allows you to create User Data in a project, which can be used to perform custom setup on your servers after deploy and reinstall.
curl --request POST \
--url https://api.latitude.sh/projects/{project_id}/user_data \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"data": {
"type": "user_data",
"attributes": {
"content": "I2Nsb3VkLWNvbmZpZwpydW5jbWQ6CiAtIFsgdG91Y2gsICAvaG9tZS91YnVudHUvdGVzdCBd",
"description": "User Data description"
}
}
}'
{
"data": {
"id": "ud_pRMLydp0dQKr1",
"type": "user_data",
"attributes": {
"description": "User Data description",
"content": "I2Nsb3VkLWNvbmZpZwpydW5jbWQ6CiAtIFsgdG91Y2gsICAvaG9tZS91YnVudHUvdGVzdCBd",
"created_at": "2025-07-16T18:36:39+00:00",
"updated_at": "2025-07-16T18:36:39+00:00",
"decoded_content": "#cloud-config\nruncmd:\n - [ touch, /home/ubuntu/test ]"
}
},
"meta": {}
}
Project ID or Slug
Show child attributes
Was this page helpful?