curl --request PUT \
--url https://app2.freyavoice.ai/api/v2/api-keys \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"apiKeys": [
{
"id": "<string>",
"name": "<string>",
"isActive": true,
"expiresAt": "<string>",
"rateLimit": {
"requestsPerMinute": 123,
"requestsPerDay": 123
}
}
]
}
'{
"success": true,
"data": {
"message": "<string>",
"result": {
"updated": [
{
"id": "<string>",
"key": "<string>",
"workspaceId": "<string>",
"userId": "<string>",
"name": "<string>",
"isActive": true,
"createdAt": "<string>",
"lastUsedAt": "<string>",
"expiresAt": "<string>",
"rateLimit": {
"requestsPerMinute": 123,
"requestsPerDay": 123
},
"creator": {
"id": "<string>",
"email": "[email protected]",
"displayName": "<string>"
}
}
],
"errors": [
{
"id": "<string>",
"error": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
]
}
}
}Updates one or more API keys (name, active status, expiration, rate limits).
curl --request PUT \
--url https://app2.freyavoice.ai/api/v2/api-keys \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"apiKeys": [
{
"id": "<string>",
"name": "<string>",
"isActive": true,
"expiresAt": "<string>",
"rateLimit": {
"requestsPerMinute": 123,
"requestsPerDay": 123
}
}
]
}
'{
"success": true,
"data": {
"message": "<string>",
"result": {
"updated": [
{
"id": "<string>",
"key": "<string>",
"workspaceId": "<string>",
"userId": "<string>",
"name": "<string>",
"isActive": true,
"createdAt": "<string>",
"lastUsedAt": "<string>",
"expiresAt": "<string>",
"rateLimit": {
"requestsPerMinute": 123,
"requestsPerDay": 123
},
"creator": {
"id": "<string>",
"email": "[email protected]",
"displayName": "<string>"
}
}
],
"errors": [
{
"id": "<string>",
"error": "<string>",
"details": [
{
"field": "<string>",
"message": "<string>"
}
]
}
]
}
}
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Show child attributes