cURL
curl --request PATCH \ --url https://api-dev.meeamitech.com/auth/v1/apikeys/{id} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "Suresh", "isPublic": true } '
{ "message": "API key is updated successfully", "data": { "_id": "67c52a1526865c41a282c4e9", "teamId": "67a2ea1d828c9098134e7b92", "name": "Suresh", "key": "3289e233-93f7-411e-9d06-308c26fc278f", "createdAt": "2025-03-03T03:58:10.357+00:00", "expiresAt": "2025-03-10T04:03:33.131+00:00", "uuid": "67af1bcea4f8dca74f0d51b0", "isPublic": true } }
Update a user by ID
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
ID of the user to update
API key details to be created
Whether the API key is public.
true
false
Name of the API key.
List of allowed origins (only required if isPublic is false).
Expiration date of the API key.
User updated successfully