/v1/users/71100af5c548eb5c7ebc7819/api-keys/689b34c3799e47c88fa2f89d with the request body, query parameters, or multipart fields shown below. Authorization: Bearer <apiKey>. The key must be active, unexpired, scoped to the correct community, and include the permission required by this endpoint.data with status and message.400 invalid request body, query, ObjectId, pagination, file format, or missing required field.401 missing, invalid, expired, or insufficient API key/token.403 key is valid but cannot access this community/channel/user/resource, where supported by the service.404 target resource, route, or community-scoped record was not found.409 duplicate or conflicting state for create/update operations, where applicable.500 unexpected Returning.AI service error.curl --location --request PUT 'https://api.returning.ai/v1/users/71100af5c548eb5c7ebc7819/api-keys/689b34c3799e47c88fa2f89d' \
--header 'Content-Type: text/plain' \
--data '{
"name": "Updated API Key Name",
"permissions": [
"readOwnProfile",
"updateOwnProfile",
"readOwnMessages"
],
"expirePeriod": 180,
"expireDate": "2025-06-30T23:59:59Z",
"isActive": true
}'{}