Organizations API Guide
Learn how to manage organizations using the Wacht Rust SDK.Prerequisites
Before using any API methods, you must initialize the SDK:List Organizations
Retrieve a paginated list of organizations from your deployment.Basic List
With Pagination and Filters
Builder Methods
limit(i32)- Number of results to return (max 100)offset(i32)- Number of results to skipsearch(&str)- Search query to filter resultssort_key(&str)- Field to sort bysort_order(&str)- Sort order (“asc” or “desc”)
Get Organization Details
Retrieve complete information about an organization.Create Organization
Create a new organization in your deployment.Basic Organization Creation
With Optional Fields
Required Fields
name(String) - Organization name
Optional Fields
description(Option<String>) - Organization descriptionpublic_metadata(Option<serde_json::Value>) - Public metadataprivate_metadata(Option<serde_json::Value>) - Private metadataorganization_image(Option<Vec<u8>>) - Organization image data
Update Organization
Update an existing organization’s information. Only provided fields will be updated.Available Update Fields
All fields are optional - only include what you want to change:name(Option<String>)description(Option<String>)public_metadata(Option<serde_json::Value>)private_metadata(Option<serde_json::Value>)disabled(Option<bool>)
Delete Organization
Permanently delete an organization. This action cannot be undone.Manage Organization Members
List Members
Add Member
Update Member Role
Remove Member
Manage Organization Roles
List Roles
Create Role
Update Role
Delete Role
Error Handling
All SDK methods return aResult<T, Error>:
Related
- Installation - SDK setup
- Users Guide - Managing users
- Workspaces Guide - Managing workspaces
- API Reference - Backend API - Full API docs
