GoRouter
Справочник APIManagement A P I

Изменить inference-ключ

PATCH
/keys/{hash}
AuthorizationBearer <ключ>

Inference key для запросов к моделям, management key для Management API.

In: header

Параметры пути

hash*string

HMAC-идентификатор из поля hash.

Тело запроса

application/json

Типы TypeScript

Use the request body type in TypeScript.

Properties1 <= properties

Ответ

application/json

application/json

application/json

curl -X PATCH "https://example.com/keys/string" \  -H "Content-Type: application/json" \  -d '{    "disabled": true  }'
{  "data": {    "hash": "string",    "workspace_id": "0967198e-ec7b-4c6b-b4d3-f71244cadbe9",    "member_id": "string",    "privacy": {      "version": 1,      "blockLogging": true,      "blockTraining": true,      "allowedProviders": [        "string"      ],      "ignoredProviders": [        "string"      ]    },    "label": "string",    "name": "string",    "disabled": true,    "limit": 0,    "limit_remaining": 0,    "limit_reset": "daily",    "usage": 0,    "usage_daily": 0,    "usage_weekly": 0,    "usage_monthly": 0,    "currency": "RUB",    "created_at": "2019-08-24T14:15:22Z",    "updated_at": "2019-08-24T14:15:22Z",    "expires_at": "2019-08-24T14:15:22Z",    "sensitive_data": {      "enabled": false,      "action": "replace",      "categories": [        "email"      ],      "dictionary": [        {          "term": "string",          "substitute": "string"        }      ]    }  }}