hagmannStephan / M347_reactFrontend

https://m347-react-frontend.vercel.app
0 stars 1 forks source link

Backend DB #12

Closed hagmannStephan closed 3 months ago

hagmannStephan commented 3 months ago

Discarded idea of the vercel DB because the API-Documentation is wrong. The following command: curl -X 'PATCH' 'https://api.vercel.com/v1/edge-config/your_edge_config_id_here/items' \ -H 'Authorization: Bearer your_vercel_api_token_here' \ -H 'Content-Type: application/json' \ -d $'{ "items": [ { "operation": "create", "key": "example_key_1", "value": "example_value_1" }, { "operation": "update", "key": "example_key_2", "value": "new_value" } ] }' (Source: https://vercel.com/docs/storage/edge-config/vercel-api) Returns: {"error":{"code":"forbidden","message":"The request is missing an authentication token","missingToken":true}} no matter how I try to debug it