apicheats.dev Cheat sheet Raw .md
POST

Try POST /organization/projects/{project_id}/api_keys/{api_key_id} — OpenAI API

OpenAI playground

Update project API key

Credentials

Kept in this tab only. Requests go through apicheats.dev's same-origin proxy straight to api.openai.com; the proxy stores and logs nothing about them.

Path

Body application/json

2 body fields
  • expires_in_seconds · optional · integer — Number of seconds from this request until the API key expires. Must comply with the organization and project expiry policies. Expired keys cannot be updated. Retrying resets the expiry relative to the new request. Omit to keep the current expiration.
  • scopes · optional · string[] — Replace the API key scope restrictions. Omit to leave scopes unchanged. An empty array removes key restrictions (All permissions), subject to the owner's effective permissions. Use ["api.all.read"] for read-only access. Scopes do not change the owner's roles or grant administrative permissions.