pubnub_app_context
Manage user profiles, channel metadata, and membership relationships in PubNub applications. Perform CRUD operations like get, set, remove, and getAll to handle App Context objects efficiently.
Instructions
Manages PubNub App Context (Objects API) for users, channels, and memberships. Supports CRUD operations including get, set, remove, and getAll. Use this tool to manage user profiles, channel metadata, and membership relationships in your PubNub application.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
data | No | Data object for set/remove operations. For users: {name, externalId, profileUrl, email, custom}. For channels: {name, description, custom}. For memberships: {channels: [...]} | |
id | Yes | Identifier: UUID for users, channel name for channels, UUID for memberships (for membership getAll, use channel name to get channel members) | |
operation | Yes | Operation to perform: "get" to retrieve, "set" to create/update, "remove" to delete, "getAll" to list all | |
options | No | Optional parameters for the operation | |
type | Yes | Type of App Context object: "user" for user metadata, "channel" for channel metadata, "membership" for user-channel relationships |