Modify an existing API key’s permissions, description, or other metadata. You can change permissions, update descriptions, and modify expiration dates.
Requires the keys:manage
permission. You can only update keys that you have
created or have been granted access to.
Request
The unique identifier of the API key to update
Your API key with keys:manage
permission
Body Parameters
Updated description for the API key
Array of permission strings to grant to this key Show Available Permissions
Update and delete API keys
Schedule LinkedIn actions
ISO 8601 timestamp when the key should expire (optional)
Examples
Update Key Permissions
curl -X PUT "https://api.buena.ai/api/v2/keys/key_123abc" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"description": "Updated marketing automation key",
"permissions": [
"leads:read",
"leads:write",
"leads:enrich",
"linkedin:schedule"
]
}'
Response
Always true
for successful requests
Updated API key information Unique identifier for the API key
Description of the API key
Array of permissions granted to this key
ISO 8601 timestamp when the key was created
ISO 8601 timestamp when the key was last updated
ISO 8601 timestamp when the key was last used
ISO 8601 timestamp when the key expires (null if never expires)
{
"success" : true ,
"data" : {
"id" : "key_123abc" ,
"description" : "Updated marketing automation key" ,
"permissions" : [
"leads:read" ,
"leads:write" ,
"leads:enrich" ,
"linkedin:schedule"
],
"createdAt" : "2024-01-15T10:30:00Z" ,
"updatedAt" : "2024-01-20T15:30:00Z" ,
"lastUsed" : "2024-01-20T14:25:00Z" ,
"expiresAt" : null
}
}
Next Steps