{
"id": "embed-123",
"name": "Executive Sales Overview",
"error": null
}
curl --request PUT \
--url https://api.usedatabrain.com/api/v2/data-app/embeds/rename \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"embedId": "<string>",
"name": "<string>",
"isRenameDashboard": true
}
'{
"id": "embed-123",
"name": "Executive Sales Overview",
"error": null
}
Rename an existing embed and optionally its underlying dashboard, without changing its access settings.
{
"id": "embed-123",
"name": "Executive Sales Overview",
"error": null
}
curl --request PUT \
--url https://api.usedatabrain.com/api/v2/data-app/embeds/rename \
--header 'Authorization: <authorization>' \
--header 'Content-Type: <content-type>' \
--data '
{
"embedId": "<string>",
"name": "<string>",
"isRenameDashboard": true
}
'{
"id": "embed-123",
"name": "Executive Sales Overview",
"error": null
}
isRenameDashboard to true.
PUT https://api.usedatabrain.com/api/v2/data-app/embeds/rename
Authorization header. Get your API token when creating a data app – see the data app creation guide for details.
For details on managing API tokens, see the API Token guide.
Authorization: Bearer dbn_live_abc123...
application/json for all requests.Content-Type: application/json
"embed-123").true, DataBrain attempts to update the dashboard’s name to match the new embed name. Defaults to false if omitted.null for successful requests.| Status Code | Description |
|---|---|
200 | OK – Embed renamed successfully |
400 | Bad Request – Invalid body, invalid embed ID, or invalid API key |
500 | Internal Server Error – Unexpected server error |
| Error Code | HTTP Status | Description |
|---|---|---|
INVALID_REQUEST_BODY | 400 | Missing or invalid embedId or name |
INVALID_EMBED_ID | 400 | Embed configuration does not exist |
INVALID_DATA_APP_API_KEY | 400 | Missing or invalid data app API key |
INTERNAL_SERVER_ERROR | 500 | Unexpected failure on the server |
// Align embed name with customer-facing label
await fetch('https://api.usedatabrain.com/api/v2/data-app/embeds/rename', {
method: 'PUT',
headers: {
Authorization: 'Bearer dbn_live_abc123...',
'Content-Type': 'application/json',
},
body: JSON.stringify({
embedId: 'embed-123',
name: 'Revenue Overview (ACME)',
}),
});
const renames = [
{ embedId: 'embed-001', name: 'Sales Overview' },
{ embedId: 'embed-002', name: 'Marketing Performance' },
];
for (const rename of renames) {
await fetch('https://api.usedatabrain.com/api/v2/data-app/embeds/rename', {
method: 'PUT',
headers: {
Authorization: 'Bearer dbn_live_abc123...',
'Content-Type': 'application/json',
},
body: JSON.stringify(rename),
});
}