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