最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

azure - Is it possible modify the definition of a DataPipeline using the API? [Microsoft Fabric] - Stack Overflow

programmeradmin0浏览0评论

I am trying to modify a DataPipeline using the API, but I only see one endpoint that allows me to change two things: name and description ->

With sempy_labs, I have been able to see my pipeline's definition, and I wanted to know if it is possible to modify that definition using the Fabric API -> .html#sempy_labs.get_data_pipeline_definition

I have been trying with this: to upload a new payload, but I only get 403 and 401 errors. I'm also not sure if this is the correct way.

I was trying doing this request for example:

import requests

item_url = f";

headers = {
  "Authorization": f"Bearer {access_token}",
  "Content-Type": "application/json"
}

body = {
  "displayName": "Item's New name",
  "description": "Item's New description"
}

# Use the `json` parameter to send the body as JSON data
response = requests.patch(item_url, headers=headers, json=body)

if response.status_code == 200:
    print("Pipeline updated.")
else:
    print(f"Error updating the item: {response.status_code} - {response.text}")

And get: Error updating the item: 400 - {"requestId":"3b4f09cc-036a-4209-b968-5879ae43bbcc","errorCode":"PrincipalTypeNotSupported","message":"The operation is not supported for the principal type"}

I had Tenant.ReadAndWriteAll scope on PowerBI services

发布评论

评论列表(0)

  1. 暂无评论