api-key-controller
Save API key for user (saveApiKey)
Creates an API key for the given user and returns the token ONCE as 'ApiKey <value>'.
Available for any authorized user.
post/api/apiKey
Request body
Example request
{
"id": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "API_KEY"
},
"createdTime": 1746028547220,
"tenantId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "TENANT"
},
"userId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "USER"
},
"description": "API Key description",
"enabled": true
}Response
OK
Example response
{
"id": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "API_KEY"
},
"createdTime": 1746028547220,
"tenantId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "TENANT"
},
"userId": {
"id": "784f394c-42b6-435a-983c-b7beff2784f9",
"entityType": "USER"
},
"description": "API Key description",
"enabled": true
}