Skip to main content
POST
/
projects
/
{project_id}
/
user_data
Create a Project User Data
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": "2026-01-14T15:56:43+00:00",
      "updated_at": "2026-01-14T15:56:43+00:00",
      "decoded_content": "#cloud-config\nruncmd:\n - [ touch,  /home/ubuntu/test ]",
      "project": {
        "id": "proj_8NkvdyMKdeLpx",
        "name": "Intelligent Bronze Car",
        "slug": "intelligent-bronze-car",
        "description": "Small Iron Shoes",
        "provisioning_type": "on_demand",
        "billing_type": "Normal",
        "billing_method": "Normal",
        "bandwidth_alert": false,
        "environment": null,
        "billing": {},
        "stats": {
          "databases": 0,
          "ip_addresses": 0,
          "prefixes": 0,
          "servers": 0,
          "storages": 0,
          "virtual_machines": 0,
          "vlans": 0
        }
      }
    }
  },
  "meta": {}
}

Authorizations

Authorization
string
header
required

Path Parameters

project_id
string
required

Project ID or Slug

Body

data
object
required

Response

201 - application/vnd.api+json

Created

data
object
meta
object