Skip to main content

Suggest an Idea

Vote for your favorite Qlik product ideas and add your own suggestions.

Announcements
This page is no longer in use. To suggest an idea, please visit Browse and Suggest.

Nprinting API: Create Role method

e_petrasevicius21
Partner - Contributor III
Partner - Contributor III

Nprinting API: Create Role method

Hi,

We are working on Nprinting automation and we need dynamic way to create Nprinting Roles via APIs. Currently it is not possible due to lack of method POST/roles

Also it would be perfect with API call GET/roles extract role parameters (full Role information)

Current set of possible API methods for Roles:

https://help.qlik.com/en-US/nprinting/May2021/APIs/NP+API/index.html?page=124#Roles

Qlik NPrinting #API #Automation

Tags (1)
3 Comments
andregas
Partner - Creator II
Partner - Creator II

Hello @e_petrasevicius21,

It's not documented but you could do this using internal use API https://server:4993/npe/roles with POST.

You must set the following header:

  • Content-Type:application/json
  • X-XSRF-TOKEN:<the cookie>

Following a json example for the body:

{
"apps": [],
"actions": [
{
"id": "f436fd9d-c184-4bf1-a639-fb1d4db12ccc",
"section": "Filter",
"name": "View",
"description": null,
"sortIndex": 0,
"selected": true
},
{
"id": "ff1e78c3-7f58-4219-bf43-418686159688",
"section": "App",
"name": "View",
"description": null,
"sortIndex": 0,
"selected": true
},
{
"id": "b97db432-8729-428c-b10c-ddb809e950de",
"section": "Condition",
"name": "View",
"description": null,
"sortIndex": 0,
"selected": true
},
{
"id": "7dcc5090-368a-4579-b464-0238f3b67064",
"section": "Connection",
"name": "View",
"description": null,
"sortIndex": 0,
"selected": true
},
{
"id": "e9def81b-21b0-4e2c-b63c-073f57511ed0",
"section": "Report",
"name": "View",
"description": null,
"sortIndex": 0,
"selected": true
}
],
"enabled": true,
"name": "name example",
"description": "description example",
"hasAllApps": true
}

To retrive the list of the actions with them guid you must do a GET call to https://nprinting.horsa.it:4993/npe/roles/actions

To retrive complete infos (the action list) of a role you could use the following https://server:4993/npe/roles/<roleid>
You must call one at time.

 

Hope it can help you, regards

Andrew_Kruger
Employee
Employee
 
Status changed to: Open - Not Planned
Meghann_MacDonald

Hi, this idea has been in "Not Planned" status for over a year and is still not in consideration. If you'd like to open a new request, please visit the Browse and Suggest page and click "Suggest features" and open a new request.

Meghann

Status changed to: Closed - Archived