Actions164
- API Key Actions
- Automation Rule Actions
- Call Actions
- Catalog Actions
- Channel Actions
- Chat Actions
- Contact Actions
- Group Actions
- Add Participants
- Approve Membership Requests
- Create
- Delete Picture
- Demote Participants
- Get
- Get Invite Code
- Get Join Info
- Get Membership Requests
- Get Picture
- Get Settings
- Join
- Leave
- List
- Promote Participants
- Reject Membership Requests
- Remove Participants
- Revoke Invite Code
- Set Member Label
- Set Picture
- Update Description
- Update Settings
- Update Subject
- Label Actions
- Media Actions
- Message Actions
- Observability Actions
- Presence Actions
- Profile Actions
- Session Actions
- Status Actions
- System Actions
- Template Actions
- Webhook Actions
API Key → Update
AI-generatedSummary
Update an existing API key's properties by specifying its ID and the fields to modify. Only the provided fields in the update request are changed, leaving other properties intact.
Inputs
- API Key Name or ID (required) — The identifier of the API key to update; select from a dropdown of existing keys or provide an ID via expression.
- Fields — One or more optional fields to update on the API key (e.g., name, allowed chats, allowed IPs, allowed sessions, expiration date, role). Only specified fields are changed; unspecified fields remain unchanged.
Output shape
a single record representing the updated API key object with its current properties.
Fields sent in the update will overwrite existing values; fields left out remain unchanged. Empty lists in allowed chat/IP/session restrictions do not clear existing restrictions. The update requires providing a valid key ID; invalid or blank fields are rejected.
Examples
Example 1: Rename an API key and restrict it to specific chats
Set the key ID to the target API key. In fields, set 'Name' to the new name and 'Allowed Chats' to a comma-separated list of chat IDs.