cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
sau001
Helper IV
Helper IV

Confusion about the REST API Post Import In Group - What do we mean by importing a model.json?

Hello everybody,

I am reading through the REST API documentation of 'Post import in Group' which in simpler terms (as per my understanding) allows us to upload a PBIX to a workspace.

The name of the report as it appears online and the id of the workspace are specified via parameters in the URL while the binary content is specified in the body of the request.

 

The Microsoft documentation goes a step forward and states that this REST API end point can also be used for importing a model.json file.

sau001_0-1617834872004.png

 

Please help me understand. 

Does the model.json refer to the underlying DataModel file which can be extracted out of the PBIX by renaming to ZIP?

 

I was under the impression that the DataModel file - even though viewable by extracting from PBIX is essentially not to be tampered with or relied upon. It should be considered an internal file only.

 

Thank you,

Sau

 

 

 

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi @sau001 ,

 

Power BI dataflows store data in the CDM folder format in Azure storage.CDM folders use text files to store data, and a model.json file to store metadata.

This API refers to model.json in the dataflow, not model.json in pbix.

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

1 REPLY 1
V-lianl-msft
Community Support
Community Support

Hi @sau001 ,

 

Power BI dataflows store data in the CDM folder format in Azure storage.CDM folders use text files to store data, and a model.json file to store metadata.

This API refers to model.json in the dataflow, not model.json in pbix.

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!