dlogify docs
API referenceAPI keys

Rename an API key

PATCH/v1/keys/{key_id}

Requires role admin or higher.

Changes only the name; the key itself keeps working. Revoked keys can be renamed too.

Authorization

AuthorizationBearer <token>

A session token from /v1/auth/sign-in/email (CLI, scripts).

In: header

Path Parameters

key_id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X PATCH "https://example.com/v1/keys/string" \  -H "Authorization: Bearer $DLOGIFY_SESSION" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{  "created_at": "2019-08-24T14:15:22Z",  "created_by": "string",  "id": "string",  "last_used_at": "2019-08-24T14:15:22Z",  "name": "string",  "project_id": "string",  "revoked_at": "2019-08-24T14:15:22Z",  "scopes": [    "ingest:write"  ]}