Skip to content

Context Map reference

How the account's Fabric items connect, as the BI Pixie portal's Context Map shows them, read as the signed-in person. Offered where the Context Map is available, and while an administrator has not turned it off for AI apps.

Every route below follows the conventions in Work with the BI Pixie API. You can also download the OpenAPI document.

Read the Context Map #

POST /v1/contextMap/{op}

One read of the Context Map, as the signed-in person: the same read the BI Pixie portal's Context Map page makes. The person reaches only the workspaces they can open in Power BI, and the answer holds item names, types and counts, never data. op is search (items that match words), item (one item with its neighbours), items (several items by key), reach (what depends on an item, and what it depends on) or fields (a semantic model's fields). The body is the one the portal sends for the same read. Reading spends no allowance.

Reading Power BI needs permission on the signed-in person's behalf; without it the request answers 403 FabricConsentRequired. While an administrator has turned the Context Map off for AI apps, every read answers 403 ContextMapOffForAiApps. Each other refusal names the Context Map's own reason in the parameter contextMapCode.

Scope
BIPixie.ReadWrite.All
Plan
Every plan
Counts against
Calls that read, 300 a minute

Parameters

Parameters for Read the Context Map
Name In Type Required Description
op path string Yes The read to make. One of search, item, items, reach, fields.

Request body

JSON, object. The body is required.

Responses

200. The read's answer.

Headers of the 200 response to Read the Context Map
Header Description
x-ms-request-id The id of this request. Quote it to support.

Errors

Every refusal is an ErrorResponse with a stable errorCode. See Errors for what each HTTP status means and every code the API can return.

This is an example of a refusal. Every refusal has the same fields.

Example refusal
HTTP/1.1 404 Not Found
Content-Type: application/json
x-ms-request-id: cbf21b6d-b661-4b52-88cb-d79712e504fc

{
  "errorCode": "ItemNotFound",
  "message": "No item with this id is visible to the signed-in person in this workspace, or it is not of the type the route takes.",
  "isRetriable": false,
  "moreDetails": [
    {
      "errorCode": "AiProviderChoice",
      "message": "The semantic model could not be read.",
      "relatedResource": {
        "resourceId": "0b232f66-b3d8-4657-b20e-ec28e825e201",
        "resourceType": "AiProvider"
      }
    }
  ],
  "relatedResource": {
    "resourceId": "d972b3f5-a2fa-47ec-94ff-0403a4d159fa",
    "resourceType": "SemanticModel"
  },
  "parameters": [
    {
      "name": "itemId",
      "value": "d972b3f5-a2fa-47ec-94ff-0403a4d159fa"
    }
  ],
  "requestId": "cbf21b6d-b661-4b52-88cb-d79712e504fc"
}

Example

Request
curl -i -X POST \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{}' \
  "https://api.bipixie.com/v1/contextMap/$OP"

An example of what the call answers. The values are fictional.

Response, 200
HTTP/1.1 200 OK
Content-Type: application/json
x-ms-request-id: cbf21b6d-b661-4b52-88cb-d79712e504fc

{}

What's next

Search the docs, the blog and the product pages.