API Key

Update

PATCH
Update an API key

Path parameters

idstringRequired

Request

This endpoint expects an object.
name
stringRequired

Response

This endpoint returns an object
success
boolean
data
objectOptional
Represents a ApiKey record
PATCH
$curl -X PATCH https://api.beta.superagent.sh/api/v1/api-keys/string \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json" \
> -d '{
> "name": "string"
>}'
Response
1{
2 "success": true,
3 "data": {
4 "id": "string",
5 "name": "string",
6 "displayApiKey": "string",
7 "createdAt": "2024-01-15T09:30:00Z",
8 "updatedAt": "2024-01-15T09:30:00Z",
9 "apiUserId": "string",
10 "apiUser": {
11 "id": "string",
12 "createdAt": "2024-01-15T09:30:00Z",
13 "updatedAt": "2024-01-15T09:30:00Z"
14 }
15 }
16}