# Microsoft Fabric Environment REST APIs API

> Microsoft Fabric Environment REST APIs API on Apizie: 30 endpoints (Get environment staging spark compute., Update environment staging spark compute. If you want to delete a spark property, set its value as null., Get environment spark compute., Get environment staging spark compute., …) returned as clean JSON through one API key. Send your own provider key in the x-upstream-key header. Call it over REST at https://www.apizie.tech/v1/analytics:microsoft-fabric-environment/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `analytics:microsoft-fabric-environment`
- Category: Analytics
- Status: byok
- Source: https://learn.microsoft.com/rest/api/fabric/
- Page: https://www.apizie.tech/api/analytics/microsoft-fabric-environment
- OpenAPI: https://www.apizie.tech/api/analytics/microsoft-fabric-environment/openapi.json



## Endpoints

### Get environment staging spark compute.
`GET https://www.apizie.tech/v1/analytics:microsoft-fabric-environment/staging-get-spark-compute-beta` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | string | yes | The workspace ID. |
| environmentId | string | yes | The environment ID. |
| beta | boolean | yes | This parameter specifies which version of the API to use. Set to `true` to use the beta version described on this page, or to `false` to… |

### Update environment staging spark compute. If you want to delete a spark property, set its value as null.
`POST https://www.apizie.tech/v1/analytics:microsoft-fabric-environment/staging-update-spark-compute-beta` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | string | yes | The workspace ID. |
| environmentId | string | yes | The environment ID. |
| beta | boolean | yes | This parameter specifies which version of the API to use. Set to `true` to use the beta version described on this page, or to `false` to… |
| body | object | yes | JSON request body |

### Get environment spark compute.
`GET https://www.apizie.tech/v1/analytics:microsoft-fabric-environment/published-get-spark-compute-beta` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | string | yes | The workspace ID. |
| environmentId | string | yes | The environment ID. |
| beta | boolean | yes | This parameter specifies which version of the API to use. Set to `true` to use the beta version described on this page, or to `false` to… |

### Get environment staging spark compute.
`GET https://www.apizie.tech/v1/analytics:microsoft-fabric-environment/staging-get-spark-compute` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | string | yes | The workspace ID. |
| environmentId | string | yes | The environment ID. |
| beta | boolean | yes | This parameter specifies which version of the API to use. Set to `false` to use the release version. |

### Update environment staging spark compute. If you want to delete a spark property, set its value as null.
`POST https://www.apizie.tech/v1/analytics:microsoft-fabric-environment/staging-update-spark-compute` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | string | yes | The workspace ID. |
| environmentId | string | yes | The environment ID. |
| beta | boolean | yes | This parameter specifies which version of the API to use. Set to `false` to use the release version. |
| body | object | yes | JSON request body |

### Get environment spark compute.
`GET https://www.apizie.tech/v1/analytics:microsoft-fabric-environment/published-get-spark-compute` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | string | yes | The workspace ID. |
| environmentId | string | yes | The environment ID. |
| beta | boolean | yes | This parameter specifies which version of the API to use. Set to `false` to use the release version. |

### Returns a list of environments from the specified workspace.
`GET https://www.apizie.tech/v1/analytics:microsoft-fabric-environment/items-list-environments` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | string | yes | The workspace ID. |
| recursive | boolean | no | Lists items in a folder and its nested folders, or just a folder only. True - All items in the folder and its nested folders are listed,… |
| rootFolderId | string | no | This parameter allows users to filter items based on a specific root folder. If not provided, the workspace is used as the root folder. |
| continuationToken | string | no | A token for retrieving the next page of results. |

### Creates an environment in the specified workspace.
`POST https://www.apizie.tech/v1/analytics:microsoft-fabric-environment/items-create-environment` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | string | yes | The workspace ID. |
| body | object | yes | JSON request body |

### Returns properties of the specified environment.
`GET https://www.apizie.tech/v1/analytics:microsoft-fabric-environment/items-get-environment` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | string | yes | The workspace ID. |
| environmentId | string | yes | The environment ID. |

### Updates the properties of the specified environment.
`POST https://www.apizie.tech/v1/analytics:microsoft-fabric-environment/items-update-environment` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | string | yes | The workspace ID. |
| environmentId | string | yes | The environment ID. |
| body | object | yes | JSON request body |

### Deletes the specified environment.
`POST https://www.apizie.tech/v1/analytics:microsoft-fabric-environment/items-delete-environment` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | string | yes | The workspace ID. |
| environmentId | string | yes | The environment ID. |
| hardDelete | boolean | no | Specifies whether to perform a hard delete. When set to `true`, the item is permanently deleted and cannot be recovered. When set to… |

### Returns the specified environment public definition.
`POST https://www.apizie.tech/v1/analytics:microsoft-fabric-environment/items-get-environment-definition` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | string | yes | The workspace ID. |
| environmentId | string | yes | The environment ID. |
| format | string | no | The format of the environment public definition. |

### Overrides the definition for the specified environment.
`POST https://www.apizie.tech/v1/analytics:microsoft-fabric-environment/items-update-environment-definition` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | string | yes | The workspace ID. |
| environmentId | string | yes | The environment ID. |
| updateMetadata | boolean | no | When set to true and the .platform file is provided as part of the definition, the item's metadata is updated using the metadata in the… |
| body | object | yes | JSON request body |

### Get a list of libraries staged into environment.
`GET https://www.apizie.tech/v1/analytics:microsoft-fabric-environment/staging-list-libraries` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | string | yes | The workspace ID. |
| environmentId | string | yes | The environment ID. |
| beta | boolean | yes | This parameter specifies which version of the API to use. Set to `false` to use the release version. |
| continuationToken | string | no | Token to retrieve the next page of results, if available. |

### Upload spark library into environment.
`POST https://www.apizie.tech/v1/analytics:microsoft-fabric-environment/staging-upload-custom-library-beta` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | string | yes | The workspace ID. |
| environmentId | string | yes | The environment ID. |

### Deletes a library from environment. It supports deleting one file at a time.
`POST https://www.apizie.tech/v1/analytics:microsoft-fabric-environment/staging-delete-custom-library-beta` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | string | yes | The workspace ID. |
| environmentId | string | yes | The environment ID. |
| libraryToDelete | string | yes | The library file to be deleted. The library name needs to include its extension, for example samplefile.jar. |

### Get environment staging libraries.
`GET https://www.apizie.tech/v1/analytics:microsoft-fabric-environment/staging-list-libraries-beta` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | string | yes | The workspace ID. |
| environmentId | string | yes | The environment ID. |
| beta | boolean | yes | This parameter specifies which version of the API to use. Set to `true` to use the beta version described on this page, or to `false` to… |

### Upload spark library into environment.
`POST https://www.apizie.tech/v1/analytics:microsoft-fabric-environment/staging-upload-custom-library` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | string | yes | The workspace ID. |
| environmentId | string | yes | The environment ID. |
| libraryName | string | yes | The library name to be uploaded. The library name needs to include its extension, for example `samplefile.jar`. |

### Delete a custom library from environment. It supports deleting one file at a time. The supported file…
`POST https://www.apizie.tech/v1/analytics:microsoft-fabric-environment/staging-delete-custom-library` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | string | yes | The workspace ID. |
| environmentId | string | yes | The environment ID. |
| libraryName | string | yes | The library name to be deleted. The library name needs to include its extension if it is a custom library, for example `samplefile.jar`. |

### Delete a spark external library from an environment.
`POST https://www.apizie.tech/v1/analytics:microsoft-fabric-environment/staging-remove-external-library` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | string | yes | The workspace ID. |
| environmentId | string | yes | The environment ID. |
| body | object | yes | JSON request body |

### Upload spark external libraries as an `environment.yml` file into environment. It overrides the list of…
`POST https://www.apizie.tech/v1/analytics:microsoft-fabric-environment/staging-import-external-libraries` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | string | yes | The workspace ID. |
| environmentId | string | yes | The environment ID. |

### Export a set of external libraries saved in the environment in YML format.
`GET https://www.apizie.tech/v1/analytics:microsoft-fabric-environment/staging-export-external-libraries` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | string | yes | The workspace ID. |
| environmentId | string | yes | The environment ID. |

### Get environment published libraries.
`GET https://www.apizie.tech/v1/analytics:microsoft-fabric-environment/published-list-libraries` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | string | yes | The workspace ID. |
| environmentId | string | yes | The environment ID. |
| continuationToken | string | no | Token to retrieve the next page of results, if available. |
| beta | boolean | yes | This parameter specifies which version of the API to use. Set to `false` to use the release version. |

### Get environment published libraries.
`GET https://www.apizie.tech/v1/analytics:microsoft-fabric-environment/published-list-libraries-beta` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | string | yes | The workspace ID. |
| environmentId | string | yes | The environment ID. |
| beta | boolean | yes | This parameter specifies which version of the API to use. Set to `true` to use the beta version described on this page, or to `false` to… |

### Export a set of external libraries published in the environment in `YML` format.
`GET https://www.apizie.tech/v1/analytics:microsoft-fabric-environment/published-export-external-libraries` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | string | yes | The workspace ID. |
| environmentId | string | yes | The environment ID. |

### Trigger an environment publish operation.
`POST https://www.apizie.tech/v1/analytics:microsoft-fabric-environment/items-publish-environment` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | string | yes | The workspace ID. |
| environmentId | string | yes | The environment ID. |
| beta | boolean | yes | This parameter specifies which version of the API to use. Set to `false` to use the release version. |

### Trigger an environment publish operation.
`POST https://www.apizie.tech/v1/analytics:microsoft-fabric-environment/items-publish-environment-beta` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | string | yes | The workspace ID. |
| environmentId | string | yes | The environment ID. |
| beta | boolean | yes | This parameter specifies which version of the API to use. Set to `true` to use the beta version described on this page, or to `false` to… |

### Trigger an environment publish cancellation.
`POST https://www.apizie.tech/v1/analytics:microsoft-fabric-environment/items-cancel-publish-environment` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | string | yes | The workspace ID. |
| environmentId | string | yes | The environment ID. |

### Lists pool activations for the specified environment.
`GET https://www.apizie.tech/v1/analytics:microsoft-fabric-environment/pool-activations-list-pool-activations` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | string | yes | The workspace identifier. |
| environmentId | string | yes | The environment identifier. |
| continuationToken | string | no | A token for retrieving the next page of results. |
| pageSize | integer | no | The requested number of items per page. The server may return fewer items. If unspecified or exceeds the server maximum, the server uses… |
| filter | string | no | An expression that filters the collection. Supported filter: `state eq ' '`. Supported values for ` `: `NotStarted`, `InProgress`,… |

### Gets properties of the specified pool activation.
`GET https://www.apizie.tech/v1/analytics:microsoft-fabric-environment/pool-activations-get-pool-activation` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| workspaceId | string | yes | The workspace identifier. |
| environmentId | string | yes | The environment identifier. |
| activationId | string | yes | The pool activation identifier. |

## Example
```
curl "https://www.apizie.tech/v1/analytics:microsoft-fabric-environment/staging-get-spark-compute-beta" \
  -H "x-api-key: $APIZIE_KEY" \
  -H "x-upstream-key: $PROVIDER_KEY"
```

## FAQ

### How do I call the Microsoft Fabric Environment REST APIs API?
Create a free Apizie key, then send GET https://www.apizie.tech/v1/analytics:microsoft-fabric-environment/staging-get-spark-compute-beta with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the Microsoft Fabric Environment REST APIs API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card. Microsoft Fabric Environment REST APIs itself also needs your own key from fabric.microsoft.com.

### Can AI agents use the Microsoft Fabric Environment REST APIs API?
Yes. Add the Apizie MCP server (https://www.apizie.tech/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key analytics:microsoft-fabric-environment.

### What is the status of the Microsoft Fabric Environment REST APIs API?
Needs your own provider key (bring your own key)
