Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Backing up assets

Steven Vits May 21, 2024

I want to create a flow (using power automate) to backup the assets.

Following some Info i get the workspaceID using an http get action to https://MySite.atlassian.net/rest/servicedeskapi/assets/workspace

I do however get stuck in the next step when I do use the workspaceID from the return of that call. https://MySite.atlassian.net/rest/servicedeskapi/assets/workspace/{'workspaceID'} is giving me a 404 not found response.

Anyone that can help me out with this please?

 

1 answer

0 votes
Dirk Ronsmans
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 21, 2024

@Steven Vits ,

Are you including the { } in the url? those are placeholder and you just need to add the id itself behind the /

Dirk Ronsmans
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 21, 2024

Ah i see what you missed here.

To get the workspace ID you indeed use 

https://<JSM Premium Site Name>.atlassian.net/rest/servicedeskapi/assets/workspace

However then to communicate with the Assets module you actually use

https://api.atlassian.com/jsm/assets/workspace/{workspaceId}/v{version}/object/{id}

So once you have the workspaceid you actually call https://api.atlassian.com/jsm/assets/workspace/{workspaceId} (so api.atlassian.com)

Like Steven Vits likes this
Steven Vits May 21, 2024

https://api.atlassian.com/jsm/assets/workspace/c2d6a42d-e349-495d-ad64-126e959c61c7/v1/object/4 return:

{
    "errorMessages": [
        "NotFoundInsightException: Could not find Object with id: 4"
    ],
    "errors": {}
}

however using devtools in edge It was possible to retrieve
https://MySite.atlassian.net/gateway/api/jsm/assets/workspace/c2d6a42d-e349-495d-ad64-126e959c61c7/v1/objecttypeexport/4

contaminated with a payload

Not the cleanest way but it seems to work.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events