Embeds
Update an Embed
Update an existing embed to modify access settings, permissions, and datamart associations.
PUT
Modify existing embeds to update access settings, change permissions, or associate with different datamarts. This allows you to evolve your embedded analytics without recreating configurations.
Use this endpoint for all new integrations. This is the recommended endpoint format.
Updates to embed configurations take effect immediately for all active embedded dashboards and metrics using this configuration.
Endpoint Formats
- New Endpoint (Recommended)
- Legacy Endpoint (Deprecated Soon)
Authentication
All API requests must include your API key in the Authorization header. Get your API token when creating a data app - see our data app creation guide for details. Finding your API token: For detailed instructions, see the API Token guide.Headers
string
required
Bearer token for API authentication. Use your API key from the data app.
string
required
Must be set to
application/json for all requests.Request Body
string
required
The unique identifier of the embed configuration to update. Get this from the create embed response or list embeds API.
object
required
Updated access control settings for the embedded view. Only provided fields will be updated.
string
Change the datamart used by this embed configuration.
boolean
Update AI Pilot permission.
boolean
Update email reports permission.
boolean
Update metrics management permission.
boolean
Update metric creation permission.
boolean
Update metric deletion permission.
boolean
Update metric layout change permission.
boolean
Update metric modification permission.
boolean
Update underlying data access permission.
boolean
Update dashboard view creation permission.
boolean
Optional. Enable or disable end-user dashboard filter interactions.
array
Optional allowlist for dashboard filterable columns. Each item must include
tableName and columns.string
required
Fully qualified table name used in dashboard filters.
array[string]
required
Column names allowed for dashboard filter evaluation for the specified table.
'single' | 'multi'
Recommended join strategy for table relationships.
single: single worksheet mode (tables are pre-joined into one worksheet)multi: multi-sheet mode (joins are resolved dynamically based on fields used in each chart)
boolean
Legacy join strategy flag. Prefer using
accessSettings.joinModel instead.'DRAG_DROP' | 'CHAT'
Update the metric creation mode.
Response
string
The ID of the updated embed configuration.
null | object
Error object if the request failed, otherwise
null for successful requests.Examples
Error Codes
string
Embed configuration not found - The specified embed ID doesn’t exist in the workspace
string
Workspace not found - The specified workspace doesn’t exist or you don’t have access
string
Invalid datamart - The specified datamart doesn’t exist in the workspace
string
Insufficient permissions - You don’t have permission to update this embed configuration
string
Invalid API key - Check your API key in dashboard settings
HTTP Status Code Summary
Possible Errors
Update Strategies
1
Permission escalation
Gradually increase permissions based on user needs:
2
Datamart migration
Move embed to a different datamart:
3
Security tightening
Reduce permissions when needed:
Common Update Scenarios
Enable Advanced Features
Migrate to New Datamart
Temporary Permission Reduction
Best Practices
Change Management
- Document all configuration changes
- Test updates in staging first
- Notify stakeholders of permission changes
- Maintain change history and rollback plans
Security
- Follow principle of least privilege
- Regular permission audits
- Monitor for unauthorized changes
- Validate datamart access before updates
Performance
- Batch multiple updates when possible
- Monitor embed performance after changes
- Test with production data volumes
- Update during low-usage periods
User Experience
- Communicate feature changes to users
- Provide training for new capabilities
- Gradual rollout of new permissions
- Collect feedback on configuration changes
Advanced Configuration
Dynamic Permission Updates
Bulk Updates
Quick Start Guide
1
Find your embed ID
List your existing embed configurations to find the one you want to update:
2
Update specific permissions
Update only the settings you want to change. For example, to enable End User Metric Creation:
3
Migrate to new datamart
Change the datamart associated with your embed:
4
Verify the update
The API will return the embed ID on success:
Next Steps
Delete Embed Config
Remove embed configurations you no longer need
List All Embeds
View all embed configurations in your workspace
Generate Guest Token
Create tokens for your updated embed configurations
How to Embed
Learn the basics of embedding DataBrain

