cURL
curl --request PATCH \ --url https://api.faces.sh/v1/auth/api-keys/{key_id} \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "budget_usd": 123, "reset_spent": false, "allowed_face_ids": [ "<string>" ], "allowed_llm_models": [ "<string>" ], "clear_iam_allowlist": false, "clear_llm_allowlist": false, "clear_budget": false } '
{ "detail": [ { "loc": [ "<string>" ], "msg": "<string>", "type": "<string>", "input": "<unknown>", "ctx": {} } ] }
Update an API key’s metadata, budget, and access control allowlists.
allowed_face_ids accepts face USERNAMES (not UUIDs).
Fields:
Requires JWT authentication (not API key auth).
Successful Response