Expand my Community achievements bar.

SOLVED

API call to download scenario as JSON

Avatar

Level 7

Is there an api call to download a scenario as JSON? I would like to use this combined with AI to help create documentation on scenarios.

1 Accepted Solution

Avatar

Correct answer by
Level 7

After hours and hours of digging I have finally figured out the solution.

First you need a Fusion API key which btw has little to no documentation on how to generate (at least that I could find), I referred to this post. Click on profile in the top right -> Fusion Profile -> API -> Generate API Token

Lawson02_0-1767208234458.png


The use a HTTP Module with URL https://app.workfrontfusion.com/api/v2/scenarios/{scenarioID}/blueprint with a header of "Authorization: Token abcdefab-1234-5678-abcd-112233445566"

View solution in original post

3 Replies

Avatar

Level 10

Hi,

 

You can list the blueprints of a scenario using the following request:

GET https://<apiUrl>/api/v2/scenarios/<scenarioID>/blueprints

 

This shows you the version number, which is the blueprintId. So using the following call will return the scenario as JSON:

GET https://<apiUrl>/api/v2/scenarios/<scenarioID>/blueprint?blueprintId=<version>

 

 

Regards

Lars

Avatar

Level 7

What module would you use to get this in Fusion? I can't seem to get the api modules to work. Also where are you finding this information?

Avatar

Correct answer by
Level 7

After hours and hours of digging I have finally figured out the solution.

First you need a Fusion API key which btw has little to no documentation on how to generate (at least that I could find), I referred to this post. Click on profile in the top right -> Fusion Profile -> API -> Generate API Token

Lawson02_0-1767208234458.png


The use a HTTP Module with URL https://app.workfrontfusion.com/api/v2/scenarios/{scenarioID}/blueprint with a header of "Authorization: Token abcdefab-1234-5678-abcd-112233445566"