[ { "api_key": "API_KEY_1", "config": { "permissions": "read" } }, { "api_key": "API_KEY_2", "config": { "permissions": "write" } } ]
This endpoint allows you to generate a new API key.
Parameter | Type | Description |
---|---|---|
config | object | Configuration to associate with the API key |
POST /es/api/v1/credentials/api_keys/ { "config": { "permissions": "read" } }
{ "api_key": "NEW_API_KEY", "result": "created" }
{ "detail": [ { "loc": ["query", "source"], "msg": "field required", "type": "value_error.missing" } ] }
Update API Key
Parameter | Type | Description |
---|---|---|
api_key | string | API key to update |
Parameter | Type | Description |
---|---|---|
config | object | Configuration associated with the key |
PUT /es/api/v1/credentials/api_keys/{api_key} { "config": { "permissions": "write" } }
{ "api_key": "EXISTING_API_KEY", "result": "updated" }
{ "detail": [ { "loc": ["query", "source"], "msg": "field required", "type": "value_error.missing" } ] }
This endpoint allows you to delete an API key.
Parameter | Type | Description |
---|---|---|
api_key | string | API key to update |
DELETE /es/api/v1/credentials/api_keys/delete/{api_key}
{ "api_key": "EXISTING_API_KEY", "result": "deleted" }
{ "detail": [ { "loc": ["query", "source"], "msg": "field required", "type": "value_error.missing" } ] }