Skip to content

Commit

Permalink
Merge pull request umami-software#89 from davquar/master
Browse files Browse the repository at this point in the history
Update field names in /api/websites
  • Loading branch information
mikecao authored Oct 29, 2022
2 parents 949ddba + da34156 commit 9d1b67a
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions content/api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,13 @@ Creates a website.

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

Expand All @@ -93,20 +93,22 @@ None
```
[
{
website_id: 4,
website_uuid: "51f73213-3f01-4343-a135-25496a3ffd31",
user_id: 2,
id: 4,
websiteUuid: "51f73213-3f01-4343-a135-25496a3ffd31",
userId: 2,
name: "Umami",
domain: "umami.is",
share_id: "8PWex1pa",
"created_at":"2021-07-26T17:17:52.846Z"
shareId: "8PWex1pa",
createdAt: "2021-07-26T17:17:52.846Z"
},
{
...
}
]
```

Prior to v1.39 some fields had a different name. If using an old version, use `website_id` instead of `id`, and rewrite the other fields in snake case (for example `share_id` instead of `shareId`).

## Getting stats

There are several endpoints your can call to get stats for your website. All the
Expand Down

0 comments on commit 9d1b67a

Please sign in to comment.