Edit Semantic Model - Adds a relationship between two tables in a Power BI dataset within a specific workspace

Adds a relationship between two tables in a Power BI dataset within a specific workspace.

post
Authorizations
Path parameters
workspaceIdstringRequired

Enter ID of the workspace for which the theme details are requested.

datasetIdstringRequired

Enter ID of an existing dataset

Query parameters
versionstringOptional

The requested API version

Default: 1.0
Header parameters
embedfast-user-idstringOptional

Optional User Id

Body

Represents a model for defining a relationship between tables in a Power BI dataset.

toTableNamestring | nullableOptional

The name of the table on the "To" side of the relationship.

toColumnNamestring | nullableOptional

The name of the column on the "To" side of the relationship.

fromTableNamestring | nullableOptional

The name of the table on the "From" side of the relationship.

fromColumnNamestring | nullableOptional

The name of the column on the "From" side of the relationship.

fromCardinalitystring | nullableOptional

Specifies the cardinality of the "From" side of the relationship (e.g., one or many).

toCardinalitystring | nullableOptional

Specifies the cardinality of the "To" side of the relationship (e.g., one or many).

isActivebooleanOptional

Specifies whether the relationship should be active or inactive.

crossFilterDirectionstring | nullableOptional

Specifies the cross-filter direction (e.g., single or both).

securityFilteringDirectionstring | nullableOptional

Represents the direction of security filtering in a Power BI dataset relationship.

Responses
200

Success: The relationship was created or updated successfully.

No content

post
POST /workspace/{workspaceId}/dataset/{datasetId}/relationship HTTP/1.1
Host: 
Authorization: Bearer JWT
Content-Type: application/json
Accept: */*
Content-Length: 221

{
  "toTableName": "text",
  "toColumnName": "text",
  "fromTableName": "text",
  "fromColumnName": "text",
  "fromCardinality": "text",
  "toCardinality": "text",
  "isActive": true,
  "crossFilterDirection": "text",
  "securityFilteringDirection": "text"
}

No content

Last updated