Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hey everyone, I'm here to help!
I'm looking for a way to give access to the app without having to add users to the space.I've got this option in the web client, but I'm just struggling to find the right automation block.
I'm thinking of using a raw API request next. I'm trying to reproduce the request from the WebClient.
Here's the request in browser dev tools:
{"type":"user","assigneeId":"675817b59e7d778f492e5254","roles":["basicconsumer"],
"resourceType":"app","resourceId":"c00b4990-f430-4791-98a2-151536b07d7c",
"resourceName":"Sales and Inventory Analysis in Retaling"}
my RAW API request
get answer
{
"error": "Error calling endpoint \"Qlik Platform Operations - Raw API Request\"",
"endpoint": {
"name": "Raw API Request",
"datasource": "Qlik Platform Operations"
},
"request": {
"url": "https://mycloud.eu.qlikcloud.com/api/v1/spaces ",
"method": "GET"
},
"response": {
"status": 400,
"body": {
"code": "SpaceTypeUnknown",
"title": "unknown space type",
"detail": "a space must have a known type",
"errors": [
{
"code": "Spaces-18",
"title": "unknown space type",
"detail": "a space must have a known type",
"meta": []
}
],
"traceId": "3e9b0e8774beb3dab5cda06d4f3765a9"
}
},
"external error": true
}
when I try set PATH like spaces/6298b66737c3916c3a96ceba/shares request not working
with error
{ "error": "Error calling endpoint \"Qlik Platform Operations - Raw API Request\"", "endpoint": { "name": "Raw API Request", "datasource": "Qlik Platform Operations" }, "request": { "url": "https://mycloud.eu.qlikcloud.com/api/v1/spaces/6298b66737c3916c3a96ceba/shares ", "method": "GET" }, "response": { "status": 400, "body": { "code": "ShareCreatePayloadInvalid", "title": "Share Create Payload invalid", "detail": "Share Create Payload invalid", "errors": [ { "code": "Spaces-43", "title": "Share Create Payload invalid", "detail": "Share Create Payload invalid", "meta": [] } ], "traceId": "84e384f8b8d313d5dce963ed0e139d73" } }, "external error": true }
I'm sorry, but I'm a bit confused. Why is it 'GET' when I've set it to 'POST' in the RAW API request?
Thank you so much in advance for your help.
Hi @korsikov
Scratch what i said about not being able to reach that endpoint with the RAW API REQUEST block (not a problem).
I would say wait for the official release of these blocks, its not officially supported.
Best Regards
Hi @korsikov ,
To me it seems like you wont be able to do this with the "Raw API Request" block.
Two reasons for this:
1. Mainly how will you hit the correct endpoint?
For example
/api/v1/spaces/6294d6b9f8a3ae694e57ae3b/shares
How are you going to include the last part of the URL after /spaces
Even taking query parameters field into account
2. This share endpoint doesn't seem to officially be written in the Qlik Developer site, it seems like an internal endpoint, im not sure you can hit that with a block in QAA
A list of supported spaces api endpoint
Spaces REST | Qlik Developer Portal
Hi @korsikov
I won't comment on the GET/POST in the response, but I can add that at the moment use of the app shares endpoints is unsupported since they are not yet published. We have roadmap to publish these endpoints and create blocks in automations, but no ETA as yet.
Hi @DaveChannon
Am I understanding correctly, I won't be able to repeat the web request even using the RAW request block? Because this endpoint is avalable for automation and API in general. Correct?
Hi @korsikov
Scratch what i said about not being able to reach that endpoint with the RAW API REQUEST block (not a problem).
I would say wait for the official release of these blocks, its not officially supported.
Best Regards