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
Bearer token for API authentication. Use your API key from the data app.
Must be set to
application/json for all requests.Request Body
The unique identifier of the embed configuration to update. Get this from the create embed response or list embeds API.
Updated access control settings for the embedded view. Only provided fields will be updated.
Change the datamart used by this embed configuration.
Update AI Pilot permission.
Update email reports permission.
Update metrics management permission.
Update metric creation permission.
Update metric deletion permission.
Update metric layout change permission.
Update metric modification permission.
Update underlying data access permission.
Update dashboard view creation permission.
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)
Legacy join strategy flag. Prefer using
accessSettings.joinModel instead.Update the metric creation mode.
Response
The ID of the updated embed configuration.
Error object if the request failed, otherwise
null for successful requests.Examples
Error Codes
Embed configuration not found - The specified embed ID doesn’t exist in the workspace
Workspace not found - The specified workspace doesn’t exist or you don’t have access
Invalid datamart - The specified datamart doesn’t exist in the workspace
Insufficient permissions - You don’t have permission to update this embed configuration
Invalid API key - Check your API key in dashboard settings
HTTP Status Code Summary
| Status Code | Description |
|---|---|
200 | OK - Embed configuration updated successfully |
400 | Bad Request - Invalid request parameters |
401 | Unauthorized - Invalid or missing API key |
403 | Forbidden - Insufficient permissions to update |
404 | Not Found - Embed configuration not found |
409 | Conflict - Update conflicts with existing configuration |
429 | Too Many Requests - Rate limit exceeded |
500 | Internal Server Error - Server error occurred |
Possible Errors
| Error Code | HTTP Status | Description |
|---|---|---|
EMBED_NOT_FOUND | 404 | Embed configuration not found |
INVALID_WORKSPACE_NAME | 404 | Workspace not found |
INVALID_DATAMART | 404 | Datamart not found |
INSUFFICIENT_PERMISSIONS | 403 | No permission to update |
AUTHENTICATION_ERR | 401 | Invalid API key |
INVALID_ACCESS_SETTINGS | 400 | Invalid access settings |
CONFLICTING_UPDATE | 409 | Update conflicts with existing config |
RATE_LIMIT_EXCEEDED | 429 | Too many requests |
INTERNAL_SERVER_ERROR | 500 | Server error |
Update Strategies
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
Update specific permissions
Update only the settings you want to change. For example, to enable End User Metric Creation:
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

