Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
sanekagr2
Partner - Contributor III
Partner - Contributor III

[QlikCloud] REST API App publish request, body data parameter has unclear values.

Hello,
 
I tried to publish an app using this function 
and received an internal error. 
What must be inserted into these values, data: source and target?
 
sanekagr2_0-1706722871175.png

 

Labels (2)
2 Solutions

Accepted Solutions
Vincenzo_Esposito

As far as I know they are optional. Try with this body

 

 

{

    "spaceId": "{{targetSpaceId}}",

    "attributes": {

        "name": "Published App",

        "description": "This is the published app for end users"

    }

}

View solution in original post

Damien_V
Support
Support

Hello @sanekagr2 

target/source are not parameter names, they are possible values of the "data" parameter.

"source" is when publishing a new app in a managed space, "target" is when overwriting an already published app.


"source" needs spaceId

{"spaceId":"65c192539f1a7c73874e3174","attributes":{"name":"test4","description":"test"},"data":"source"}

"target" needs targetId (ID of the app that you want to replace) :

{"targetId":"042caa57-96f8-4802-9e9b-2f7a0d131afa","data":"target","attributes":{"name":"test4","description":"test"}}

 
Hope this helps,

If the issue is solved please mark the answer with Accept as Solution.

View solution in original post

5 Replies
Vincenzo_Esposito

You can find on the right an example

 

Screenshot 2024-02-01 at 13.37.37.png

sanekagr2
Partner - Contributor III
Partner - Contributor III
Author

Thank you for your response. What should be the value of the "data" parameter? As I see in the documentation, it must include "source" and "target"

Vincenzo_Esposito

As far as I know they are optional. Try with this body

 

 

{

    "spaceId": "{{targetSpaceId}}",

    "attributes": {

        "name": "Published App",

        "description": "This is the published app for end users"

    }

}

Damien_V
Support
Support

Hello @sanekagr2 

target/source are not parameter names, they are possible values of the "data" parameter.

"source" is when publishing a new app in a managed space, "target" is when overwriting an already published app.


"source" needs spaceId

{"spaceId":"65c192539f1a7c73874e3174","attributes":{"name":"test4","description":"test"},"data":"source"}

"target" needs targetId (ID of the app that you want to replace) :

{"targetId":"042caa57-96f8-4802-9e9b-2f7a0d131afa","data":"target","attributes":{"name":"test4","description":"test"}}

 
Hope this helps,

If the issue is solved please mark the answer with Accept as Solution.
sanekagr2
Partner - Contributor III
Partner - Contributor III
Author

Thanks for the explanation