How to Get the List of Draft Datasource using REST API
Published:
This article offers comprehensive guidance to retrieve the list of draft datasources for the current user via REST API.
Note: Support for retrieving draft data sources via the REST API is available from version 15.3 onward.
Authorization
To execute this action, please ensure that an access token is included in your request header. For details on obtaining the access token, please refer to the relevant documentation here.
Authorization: bearer <token>
Self-Hosted Server
For self-hosted instances, use the following endpoint:
https://{yourdomain}/bi/api/site/<site_identifier>/v6.0/datasources/drafts
Bold BI Cloud Server
For Bold BI Cloud instances, the endpoint is:
https://{yourdomain}/bi/api/v6.0/datasources/drafts
Request Type
GET: This request type is used to retrieve the list of draft datasources for the current user.
Example Request and Response
Responses
The API will return different responses based on the outcome of the request:
- 200 OK: List of draft datasources has been retrieved successfully.
- 204: Items not found.
- 401: Access denied.
- 403: Access denied for the item.
- 405: Request type was not GET.