Skip to content

API: Can't POST /api/websites/<id> without providing name & domain anymore #3581

@fnwbr

Description

@fnwbr

Before

The following API call used to allow to set the shareId for a given website:

POST
/api/websites/<websiteId>
{"shareId":"newShareIdToBeSet"}

After

After updating to v2.18.1 sending the same payload does throw an error:

{"error":["name: Required","domain: Required"]}

Example curl call: curl --silent https://test.umami.com/api/websites/bafaf134-5cd5-4a04-ad5a-e8728ed22ea0 -X POST --data-raw "{\"shareId\":\"ABCDEF\"}" -H 'Content-Type: application/json' -H "Authorization: Bearer <TOKEN>"

Database

PostgreSQL

Which Umami version are you using? (if relevant)

2.18.1

How are you deploying your application? (if relevant)

Docker

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions