cURL
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>" }
Updates an existing website (project) configuration
update
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 }'
{ "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" }