Skip to main content
PATCH
/
auth
/
v1
/
apikeys
/
{id}
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
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

ID of the user to update

Body

application/json

API key details to be created

isPublic
enum<boolean>
required

Whether the API key is public.

Available options:
true,
false
name
string
required

Name of the API key.

allowedOrigins
string[]

List of allowed origins (only required if isPublic is false).

expiresAt
string<date-time>

Expiration date of the API key.

Response

200 - application/json

User updated successfully

id
string
required
key
string
required
teamId
string
required
uuid
string
required
isPublic
boolean
required
createdAt
string
required
expiresAt
string
required