cURL
curl --request PATCH \ --url https://api.gcore.com/cloud/v1/faas/keys/{project_id}/{region_id}/{key_name} \ --header 'Authorization: <api-key>' \ --header 'Content-Type: application/json' \ --data '{ "description": "key-description", "expire": "2023-08-22T11:21:00Z", "functions": [ { "name": "function-name", "namespace": "namespace-name" } ] }'
{ "created_at": "2023-08-22T11:21:00Z", "description": "key-description", "expire": "2023-08-22T11:21:00Z", "functions": [ { "name": "function-name", "namespace": "namespace-name" } ], "name": "key-name", "status": "Expired" }
Update the configuration of an existing API key. Only specified fields will be modified.
Show child attributes
Was this page helpful?