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>"
}Projects API
Update Project
Updates an existing website (project) configuration
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
updatepermission on the website - API key with
updatepermission
Request Body
Website ID to update
New display name
New domain (use with caution - may break tracking)
IANA timezone identifier
Enable or disable public dashboard access
Response
Returns the updated website object with all fields.Website identifier
Updated domain
Updated display name
Updated timezone
Updated public access setting
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"
}
⌘I