-
-
Notifications
You must be signed in to change notification settings - Fork 110
Open
Description
I made a api key with administrator capabilities, but cannot authenticate sending this post request:
curl -s -X POST "http://*************:8080/api/jsonrpc" \
-H "x-api-key: lt_7lMBL7CkiE0ZXOOijTYrWNQxSnlxNYYe_wFhnzBXA06JFk85weRZGXGt7lOc7ImH3" \
-H "Content-Type: application/json" \
-d '{
"method": "leantime.rpc.tickets.addTicket",
"jsonrpc": "2.0",
"id": "1",
"params": {
"headline": "Nuovo To-Do via API",
"type": "task",
"description": "Creato con curl",
"projectId": "PROJECT_ID",
"status": "new"
}
}'
{"error":"Unauthorized"}
i sent:
curl -X POST "http://*************:8080/api/jsonrpc" -H "x-api-key: lt_7lMBL7CkiE0ZXOOijTYrWNQxSnlxNYYe_wFhnzBXA06JFk85weRZGXGt7lOc7ImH3" -H "Content-Type: application/json" -d "{\"method\":\"leantime.rpc.tickets.getTickets\",\"jsonrpc\":\"2.0\",\"id\":\"1\",\"params\":{\"projectId\":\"1\"}}"
i get:
{"error":"Unauthorized"}
API Key is fresh shows no expiry
Do i have to set any .env variable to use the api ?
Any hint?
Metadata
Metadata
Assignees
Labels
No labels