Updates an API key for the project
patch
/v1/projects/{ref}/api-keys/{id}OAuth scopes
- secrets:write
The fine-grained token must include the following permissions to access this endpoint:
- api_gateway_keys_write
Path parameters
- refRequiredstring
Project ref
- idRequiredstring
Query parameters
- revealOptionalstring
Boolean string.
Truthy values:
true,1,yes,on,y,enabledFalsy values:
false,0,no,off,n,disabled
Body
- nameOptionalstring
- descriptionOptionalstring
- secret_jwt_templateOptionalobject
Response codes
- 200
- 401
- 403
- 429
Response (200)
{ "api_key": "lorem", "id": "lorem", "type": "legacy", "prefix": "lorem", "name": "lorem", "description": "lorem", "hash": "lorem", "secret_jwt_template": { "property1": null, "property2": null }, "inserted_at": "4404-02-29T04:24Z", "updated_at": "4404-02-29T04:24Z"}