Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs are incorrect for POST /api/websites #2773

Open
seanaye opened this issue Jun 4, 2024 · 0 comments
Open

Docs are incorrect for POST /api/websites #2773

seanaye opened this issue Jun 4, 2024 · 0 comments

Comments

@seanaye
Copy link

seanaye commented Jun 4, 2024

Describe the Bug

According to the docs, the expected response for POST /api/websites is

{
  "id": 4,
  "websiteUuid": "51f73213-3f01-4343-a135-25496a3ffd31",
  "websiteId": 2,
  "name": "Umami",
  "domain": "umami.is",
  "shareId": "8PWex1pa",
  "createdAt": "2021-07-26T17:17:52.846Z"
}

Using umami cloud, the data I receive back from this endpoint is very different.

Database

Umami Cloud

Relevant log output

[src/analytics.rs:63:27] response.json().await? = Object {
    "createdAt": String("2024-06-04T13:20:20.164Z"),
    "createdBy": String("xxxxxxxx-944c-4b89-9020-xxxxxxxxxxxx"),
    "deletedAt": Null,
    "domain": String("http://localhost:8000/"),
    "id": String("xxxxxxxx-29be-4b72-938a-xxxxxxxxxxxx"),
    "name": String("Dashboard"),
    "resetAt": Null,
    "shareId": String("xxxxxxxx"),
    "teamId": Null,
    "updatedAt": String("2024-06-04T13:20:20.164Z"),
    "userId": String("xxxxxxxx-944c-4b89-9020-xxxxxxxxxxxx"),
}

Which Umami version are you using? (if relevant)

N/A

Which browser are you using? (if relevant)

N/A

How are you deploying your application? (if relevant)

Using umami cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant