ApiKeys

Update an API key

Updates the name or description of an API key and returns the updated key. Use this endpoint to update an API key through the Samva email API.

PATCH
/v1/api-keys/{id}

Updates the name or description of an API key and returns the updated key.

x-api-key<token>

In: header

Path Parameters

id*string
Match^key_[0-9a-hjkmnp-tv-z]{16,24}$

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

name?|null
description?string|null

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://example.com/v1/api-keys/string" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "string",  "name": "string",  "key": "string",  "start": "string",  "description": "string",  "createdAt": "string",  "expiresAt": "string",  "lastUsedAt": "string",  "isActive": true,  "permissions": {    "property1": [      "string"    ],    "property2": [      "string"    ]  },  "roleName": "string"}