access_grants
Access grant models for resource permissions.
Access grants provide fine-grained permission control over resources like models, tools, notes, channels, and knowledge collections.
Classes
AccessGrantModel
Bases: BaseModel
Full access grant model with all fields.
Used when storing and retrieving access grants from the database.
Returned by:
-
Code Reference
models
- channels Classes ChannelModel Attributes access_grants
- folders Classes
- knowledge Classes KnowledgeModel Attributes access_grants
- models Classes ModelModel Attributes access_grants
- notes Classes NoteModel Attributes access_grants
- prompts Classes PromptModel Attributes access_grants
- skills Classes
- tools Classes
Attributes
resource_type
Type of resource: 'knowledge', 'model', 'prompt', 'tool', 'note', 'channel', 'file', 'folder', or 'skill'.
AccessGrantResponse
Bases: BaseModel
Slim grant model for API responses.
Resource context (resource_type, resource_id) is implicit from the parent response.