Update API Key
Rename a key, or change what it may do. You can remove any permission; you can add only permissions your own key holds.
Path
The key's id, from List API Keys.
Headers
Optional. The id of the organization to act in. Leave it out to act in the API key's own organization. Here a key acts in another organization only as one of its members: with "Use this key across all of your organizations" on, in an organization its creator belongs to with a role. Child organizations and MindCloud staff access do not reach this endpoint. Every response's X-Company-Id header names the organization it acted in. See Organizations.
Body
A new name, up to 256 characters.
The full new set of permissions. Replaces the current set.
workflow:viewWorkflows: View workflows.workflow:createWorkflows: Create workflows.workflow:editWorkflows: Edit workflows.workflow:deleteWorkflows: Delete workflows.workflow:runWorkflows: Run and cancel workflows.log:viewRuns: View runs and logs.credential:viewConnections: View connections.credential:createConnections: Create connections and connect links.credential:editConnections: Edit, reconnect, and test connections.credential:deleteConnections: Delete connections.universal:readUniversal API: Run read actions and lookups.universal:createUniversal API: Run create actions.universal:updateUniversal API: Run update actions.universal:deleteUniversal API: Run delete actions.member:viewMembers and roles: View members and roles.member:createMembers and roles: Invite members.member:editMembers and roles: Change member roles.member:deleteMembers and roles: Remove members.member:owner_editMembers and roles: Invite, change, or remove Owners.role:manageMembers and roles: Create, edit, and delete roles.company:viewCompany: View company and environments.company:editCompany: Edit company profile.environment:editCompany: Create, edit, and delete environments.company:parent:manageCompany: Accept, decline, or leave a parent organization.subscription:viewCompany: View usage and spend limits.subscription:manageCompany: Set member spend limits.api_key:manageAPI keys: See and revoke all API keys.embedded:viewEmbedded: View end users and their connections.embedded:createEmbedded: Create end users and connect links.embedded:editEmbedded: Edit end users.embedded:deleteEmbedded: Delete end users.analytics:page:viewAnalytics: View Analytics pages, panels and data sources.analytics:page:createAnalytics: Create Analytics pages and manage data sources, publications, themes, folder shares and template installs.analytics:page:editAnalytics: Edit, publish, share and delete Analytics pages.child_company:accessChild organizations: Act in child organizations.child_company:manageChild organizations: Create, link, release, and close child organizations.
true or false: "Use this key across all of your organizations". Turning it off is always allowed; only a calling key that has it may turn it on, or rename or add permissions to a key that has it.
"Use this key across all of your organizations". Only a key that has it may turn it on.
Response fields
idstringUnique id of the key.
namestringThe name the key was created with.
companyIdstringThe organization the key belongs to. A key with isAllOrganizations is listed in every organization its creator opens, so it may belong to another one.
isAllOrganizationsboolean"Use this key across all of your organizations": the key can act, through X-Company-Id, in every organization its creator can open in the app, with no more than the creator may do there.
accessLevelstringA summary of the key permissions: full_access, run_workflows, read_only, or none. Derived from permissions; it is never set directly.
read_onlyrun_workflowsfull_accessnone
permissionsarray of stringThe permissions the key holds. A request may use one only while the key's creator also holds it.
usedOndateThe last time the key was used. Old dates are rotation candidates.
revokedOndateWhen the key was revoked. Empty while it is active.
createdOndateWhen the key was created.
createdBystringWho created it.
updatedOndateWhen it was last changed.