Materialized Lake Views - Update Mlv Execution Definition
Updates the specified materialized lake views execution definition.
Only the fields provided in the request body are updated; omitted fields retain their existing values.
Permissions
The caller must have contributor or higher workspace role.
Required Delegated Scopes
Lakehouse.ReadWrite.All or Item.ReadWrite.All
Microsoft Entra supported identities
This API supports the Microsoft identities listed in this section.
| Identity | Support |
|---|---|
| User | Yes |
| Service principal and Managed identities | Yes |
Interface
PATCH https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/lakehouses/{lakehouseId}/mlvexecutiondefinitions/{mlvExecutionDefinitionId}
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
lakehouse
|
path | True |
string (uuid) |
The lakehouse ID. |
|
mlv
|
path | True |
string (uuid) |
The materialized lake views execution definition ID. |
|
workspace
|
path | True |
string (uuid) |
The workspace ID. |
Request Body
| Name | Type | Description |
|---|---|---|
| currentLakehouseExecutionContext | CurrentLakehouseExecutionContext: |
The current lakehouse execution context for the materialized lake views execution definition. |
| description |
string |
A short description of the materialized lake views execution definition. |
| displayName |
string |
The materialized lake views execution definition display name. |
| extendedLineageExecutionContext | ExtendedLineageExecutionContextRequest: |
The extended lineage execution context for the materialized lake views execution definition. |
| settings |
The materialized lake views execution definition settings. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
Request completed successfully. |
|
| 429 Too Many Requests |
The service rate limit was exceeded. The server returns a Headers Retry-After: integer |
|
| Other Status Codes |
Common error codes:
|
Examples
Update a materialized lake views execution definition example
Sample request
PATCH https://api.fabric.microsoft.com/v1/workspaces/a0a0a0a0-bbbb-cccc-dddd-e1e1e1e1e1e1/lakehouses/dddddddd-9999-0000-1111-eeeeeeeeeeee/mlvexecutiondefinitions/bbbbbbbb-1111-2222-3333-cccccccccccc
{
"displayName": "Updated Gold Chain – Sales",
"settings": {
"refreshMode": "Full"
},
"currentLakehouseExecutionContext": {
"mode": "All"
},
"extendedLineageExecutionContext": {
"mode": "Selected",
"selectedLakehouses": [
{
"referenceType": "ById",
"itemId": "cccccccc-4444-5555-6666-dddddddddddd",
"workspaceId": "11111111-2222-3333-4444-555555555555"
}
]
}
}
Sample response
{
"id": "bbbbbbbb-1111-2222-3333-cccccccccccc",
"displayName": "Updated Gold Chain – Sales",
"description": "Weekly report on Gold chain",
"settings": {
"environment": {
"referenceType": "ById",
"itemId": "aaaaaaaa-1111-2222-3333-bbbbbbbbbbbb",
"workspaceId": "11111111-2222-3333-4444-555555555555"
},
"refreshMode": "Full"
},
"currentLakehouseExecutionContext": {
"mode": "All"
},
"extendedLineageExecutionContext": {
"mode": "Selected",
"selectedLakehouses": [
{
"referenceType": "ById",
"itemId": "cccccccc-4444-5555-6666-dddddddddddd",
"workspaceId": "11111111-2222-3333-4444-555555555555"
}
]
}
}
Definitions
| Name | Description |
|---|---|
|
Current |
Current lakehouse execution context where all materialized lake views are included. |
|
Current |
Current lakehouse execution context where only selected materialized lake views are included. |
|
Error |
The error related resource details object. |
|
Error |
The error response. |
|
Error |
The error response details. |
|
Execution |
The execution context mode. Additional |
|
Extended |
Extended lineage execution context where all lakehouses are included. |
|
Extended |
Extended lineage execution context where only selected lakehouses are included. |
|
Extended |
Extended lineage execution context where all lakehouses are included (response). |
|
Extended |
Extended lineage execution context where only selected lakehouses are included (response). |
|
Item |
An item reference by ID object. |
|
Item |
An item reference by variable. |
|
Item |
The item reference type. Additional |
|
Materialized |
A materialized lake views execution definition object. |
|
Materialized |
The materialized lake views execution definition settings. |
|
Materialized |
The materialized lake views execution definition settings (response). |
|
Refresh |
The refresh mode for the execution definition. Additional |
|
Update |
Update materialized lake views execution definition request payload. Only the fields provided are updated; omitted fields retain their existing values. |
CurrentLakehouseExecutionContextAll
Current lakehouse execution context where all materialized lake views are included.
| Name | Type | Description |
|---|---|---|
| mode |
string:
All |
The execution context mode for the current lakehouse. |
CurrentLakehouseExecutionContextSelected
Current lakehouse execution context where only selected materialized lake views are included.
| Name | Type | Description |
|---|---|---|
| mode |
string:
Selected |
The execution context mode for the current lakehouse. |
| selectedMlvs |
string[] |
The list of fully qualified names of materialized lake views from the current lakehouse to be refreshed. |
ErrorRelatedResource
The error related resource details object.
| Name | Type | Description |
|---|---|---|
| resourceId |
string |
The resource ID that's involved in the error. |
| resourceType |
string |
The type of the resource that's involved in the error. |
ErrorResponse
The error response.
| Name | Type | Description |
|---|---|---|
| errorCode |
string |
A specific identifier that provides information about an error condition, allowing for standardized communication between our service and its users. |
| isRetriable |
boolean |
When true, the request can be retried. Use the |
| message |
string |
A human readable representation of the error. |
| moreDetails |
List of additional error details. |
|
| relatedResource |
The error related resource details. |
|
| requestId |
string (uuid) |
ID of the request associated with the error. |
ErrorResponseDetails
The error response details.
| Name | Type | Description |
|---|---|---|
| errorCode |
string |
A specific identifier that provides information about an error condition, allowing for standardized communication between our service and its users. |
| message |
string |
A human readable representation of the error. |
| relatedResource |
The error related resource details. |
ExecutionContextMode
The execution context mode. Additional ExecutionContextMode types may be added over time.
| Value | Description |
|---|---|
| All |
All items are included in the execution boundary. |
| Selected |
Only selected items are included in the execution boundary. |
ExtendedLineageExecutionContextRequestAll
Extended lineage execution context where all lakehouses are included.
| Name | Type | Description |
|---|---|---|
| mode |
string:
All |
The execution context mode for extended lineage. |
ExtendedLineageExecutionContextRequestSelected
Extended lineage execution context where only selected lakehouses are included.
| Name | Type | Description |
|---|---|---|
| mode |
string:
Selected |
The execution context mode for extended lineage. |
| selectedLakehouses |
The list of lakehouses to be included in refresh. |
ExtendedLineageExecutionContextResponseAll
Extended lineage execution context where all lakehouses are included (response).
| Name | Type | Description |
|---|---|---|
| mode |
string:
All |
The execution context mode for extended lineage. |
ExtendedLineageExecutionContextResponseSelected
Extended lineage execution context where only selected lakehouses are included (response).
| Name | Type | Description |
|---|---|---|
| mode |
string:
Selected |
The execution context mode for extended lineage. |
| selectedLakehouses | ItemReference[]: |
The list of lakehouses to be included in refresh. |
ItemReferenceById
An item reference by ID object.
| Name | Type | Description |
|---|---|---|
| itemId |
string (uuid) |
The ID of the item. |
| referenceType |
string:
By |
The item reference type. |
| workspaceId |
string (uuid) |
The workspace ID of the item. |
ItemReferenceByVariable
An item reference by variable.
| Name | Type | Description |
|---|---|---|
| referenceType |
string:
By |
The item reference type. |
| variableReference |
string |
A variable reference string that specifies the Variable Library and the variable name inside it. Format: |
ItemReferenceType
The item reference type. Additional ItemReferenceType types may be added over time.
| Value | Description |
|---|---|
| ById |
The item is referenced by its ID. |
| ByVariable |
The item is referenced by a variable. |
MaterializedLakeViewExecutionDefinition
A materialized lake views execution definition object.
| Name | Type | Description |
|---|---|---|
| currentLakehouseExecutionContext | CurrentLakehouseExecutionContext: |
The current lakehouse execution context for the materialized lake views execution definition. |
| description |
string |
A short description of the materialized lake views execution definition. |
| displayName |
string |
The materialized lake views execution definition display name. |
| extendedLineageExecutionContext | ExtendedLineageExecutionContextResponse: |
The extended lineage execution context for the materialized lake views execution definition. |
| id |
string (uuid) |
The materialized lake views execution definition ID. |
| settings |
The materialized lake views execution definition settings. |
MaterializedLakeViewExecutionDefinitionSettingsRequest
The materialized lake views execution definition settings.
| Name | Type | Description |
|---|---|---|
| environment |
The Spark environment reference to be used with the materialized lake views execution definition. |
|
| refreshMode |
The refresh mode setting to be used with the materialized lake views execution definition. Defaults to |
MaterializedLakeViewExecutionDefinitionSettingsResponse
The materialized lake views execution definition settings (response).
| Name | Type | Description |
|---|---|---|
| environment | ItemReference: |
The Spark environment reference to be used with the materialized lake views execution definition. |
| refreshMode |
The refresh mode setting to be used with the materialized lake views execution definition. Defaults to |
RefreshMode
The refresh mode for the execution definition. Additional RefreshMode types may be added over time.
| Value | Description |
|---|---|
| Optimal |
This mode chooses the best strategy to maximize performance from among incremental, full, or no recompute while refreshing each materialized lake view. |
| Full |
This mode enforces the full recompute for materialized lake views being refreshed. |
UpdateMaterializedLakeViewExecutionDefinitionRequest
Update materialized lake views execution definition request payload. Only the fields provided are updated; omitted fields retain their existing values.
| Name | Type | Description |
|---|---|---|
| currentLakehouseExecutionContext | CurrentLakehouseExecutionContext: |
The current lakehouse execution context for the materialized lake views execution definition. |
| description |
string |
A short description of the materialized lake views execution definition. |
| displayName |
string |
The materialized lake views execution definition display name. |
| extendedLineageExecutionContext | ExtendedLineageExecutionContextRequest: |
The extended lineage execution context for the materialized lake views execution definition. |
| settings |
The materialized lake views execution definition settings. |