Skip to main content
POST
/
websites
/
update
Update Project
curl --request POST \
  --url https://api.example.com/websites/update \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>",
  "name": "<string>",
  "domain": "<string>",
  "timezone": "<string>",
  "publicAccess": true
}
'
{
  "id": "<string>",
  "domain": "<string>",
  "name": "<string>",
  "timezone": "<string>",
  "publicAccess": true,
  "updatedAt": "<string>"
}

Authentication

Requires either:
  • Session authentication with update permission on the website
  • API key with update permission

Request Body

id
string
required
Website ID to update
name
string
New display name
domain
string
New domain (use with caution - may break tracking)
timezone
string
IANA timezone identifier
publicAccess
boolean
Enable or disable public dashboard access

Response

Returns the updated website object with all fields.
id
string
Website identifier
domain
string
Updated domain
name
string
Updated display name
timezone
string
Updated timezone
publicAccess
boolean
Updated public access setting
updatedAt
string
ISO 8601 timestamp of this update

Example Request

curl -X POST https://api.databuddy.cc/websites/update \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "id": "web_xyz789",
    "name": "New Project Name",
    "publicAccess": true
  }'

Example Response

{
  "id": "web_xyz789",
  "organizationId": "org_abc123",
  "domain": "example.com",
  "name": "New Project Name",
  "timezone": "America/Los_Angeles",
  "publicAccess": true,
  "trackingStatus": "active",
  "createdAt": "2024-01-15T10:30:00Z",
  "updatedAt": "2024-03-01T16:52:00Z"
}

Build docs developers (and LLMs) love