Skip to content

Commit 0e34590

Browse files
committed
Fixed wrong docu about STAC create asset
Creating new STAC asset can only be done by PUT not by POST.
1 parent a2e7f53 commit 0e34590

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

download-data/stac-api/authentication.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ The access token you receive is valid only for a limited time, as specified by t
5959
Once you have a valid JWT token (for example, `123456`), you can create a new asset by including the token in the Authorization header:
6060

6161
```bash
62-
curl --request POST \
63-
--url https://data.geoadmin.ch/api/stac/v1/collections/ch.swisstopo.swisstlmregio/items/swisstlmregio-2020/assets \
62+
curl --request PUT \
63+
--url https://data.geoadmin.ch/api/stac/v1/collections/ch.swisstopo.swisstlmregio/items/swisstlmregio-2020/assets/fancy_unique_id \
6464
--header 'Authorization: Bearer 123456' \
6565
--header 'Content-Type: application/json' \
6666
--data '{

releases/20240313.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ date: Wednesday, March 13th 2024
55

66
# Release 20240313 - Wednesday, March 13th 2024
77

8-
### API & applications
8+
## API & applications
99

1010
### API
1111

0 commit comments

Comments
 (0)