---
title: "GET /datasource-preferences"
method: GET
path: "/datasource-preferences"
tags: ["DatasourcePreferences"]
---

# GET /datasource-preferences

`GET /datasource-preferences`

Get Datasource Preferences for given scope.

## Query parameters

- `scope` string, required
- `api-version` string, required

## Response `200`

Success

- DatasourcePreferencesResponseUpdated — Response model for datasource preference API.
  - `value` ConsentServiceModelSimplified[] — Consent details.
    - `kind` string — Consent kind.
    - `status` string — Consent status.
    - `excludedScopes` string[] — List of scopes opted out of this consent.
  - `accountInfo` AccountModelBase — Details of the purview account governing the requested resource.
    - `id` string — Id of the Purview account.
    - `name` string — Name of the Purview account.
    - `location` string — Location (Region) of the Purview account.
    - `tenantId` string — Tenant Id of the Purview account.
    - `gatewayEndpoint` string — Endpoint of the Purview account. This will be used by the RPs to call Purview APIs.
  - `frequency` string — This is an ISO8601 time span value.

## Other responses

- `default` — Error

---

[API](https://skmtc.net/azure/apis/purview-pds.md) · [All operations](https://skmtc.net/azure/apis/purview-pds/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/purview-pds/revisions/07e6713018e8/schema)
