cURL
curl --request PUT \ --url https://{tenant}/admin/org/keys/{keyId} \ --header 'Admin-Auth: <api-key>' \ --header 'Content-Type: application/json' \ --data '{ "alias": "portal-key", "allowance": 1000, "apply_policies": [ "62a0ec9092faf50001395817" ], "enable_detailed_recording": true, "expires": 1718439136, "hmac_enabled": false, "is_inactive": false, "meta_data": { "tyk_developer_id": "62b3fb9a1d5e4f00017226f5" }, "org_id": "5e9d9544a1dcd60001d0ed20", "per": 60, "quota_max": -1, "quota_remaining": 0, "quota_renewal_rate": -1, "quota_renews": 1715847135, "rate": 1000, "tags": [ "edge-eu", "edge" ], "throttle_interval": 0, "throttle_retry_limit": 0 }'
{ "Message": "Key updated", "Meta": null, "Status": "OK" }
Update a key with it’s id.
Api key
The ID of the key.
Show child attributes
Key updated
Was this page helpful?