Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions download-data/stac-api/authentication.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ The access token you receive is valid only for a limited time, as specified by t
Once you have a valid JWT token (for example, `123456`), you can create a new asset by including the token in the Authorization header:

```bash
curl --request POST \
--url https://data.geoadmin.ch/api/stac/v1/collections/ch.swisstopo.swisstlmregio/items/swisstlmregio-2020/assets \
curl --request PUT \
--url https://data.geoadmin.ch/api/stac/v1/collections/ch.swisstopo.swisstlmregio/items/swisstlmregio-2020/assets/fancy_unique_id \
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The rest of the example uses concrete names (like ch.swisstopo.swisstlmregio), not placeholders. So I would suggest to replace fancy_unique_id with an actual asset name/ID in that collection.

--header 'Authorization: Bearer 123456' \
--header 'Content-Type: application/json' \
--data '{
Expand Down
Loading
Loading