Headers
-
Content-Type string Required
Payload content-type
Value is
application/json
.
Body
-
name string | null
-
description string | null
PATCH /keys/{uid_or_key}
curl \
-X PATCH https://example.meilisearch.com:7700/keys/{uid_or_key} \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"description":"Indexing Products API key"}'
Request example
# Headers
Content-Type: application/json
# Payload
{
"description": "Indexing Products API key"
}
Response examples (200)
{
"uid": "01b4bc42-eb33-4041-b481-254d00cce834",
"key": "d0552b41536279a0ad88bd595327b96f01176a60c2243e906c52ac02375f9bc4",
"name": "Indexing Products API key",
"description": null,
"actions": [
"documents.add"
],
"indexes": [
"products"
],
"expiresAt": "2021-11-13T00:00:00Z",
"createdAt": "2021-11-12T10:00:00Z",
"updatedAt": "2021-11-12T15:00:00Z"
}