PATCH
/
cloud
/
v2
/
inference
/
api_keys
/
{key_id}
curl --request PATCH \
  --url https://api.gcore.com/cloud/v2/inference/api_keys/{key_id} \
  --header 'APIKey: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "description": "My first key",
  "expires_at": "2024-08-22T11:21:00Z",
  "inference_instance_ids": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  ],
  "project_id": 1
}'
{
  "created_at": "2022-01-01T00:00:00Z",
  "description": "My first key",
  "expires_at": "2024-08-22T11:21:00Z",
  "inference_instance_ids": [
    "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  ],
  "key_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "name": "my-key",
  "project_id": 1,
  "status": "ACTIVE"
}

Authorizations

APIKey
string
header
required

API key for authentication.

Path Parameters

key_id
string
required

API Key ID

Body

application/json

Response

200
application/json

API Key

The response is of type object.