Hi Khurshid,
You can put your inputs in to the same object on the input contract. No need to have multiple objects.
Then your Request URL and Request Body should grab those inputs. Your request body gets the subjectId...and subjectType if needed.
/api/v2/authorization/subjects/${input.subjectId}/bulkadd?subjectType=${input.subjectType}
And your request body you can copy from the API Explorer but based on that I guess would look something like this:
{"grants":[{"roleId":"${input.roleId}","divisionId":"${input.divisionId}"}]}
Hope that works for you.
Thanks,
Marian
------------------------------
Marian OConnell
GEMA Consulting Ireland Limited
------------------------------
Original Message:
Sent: 04-24-2024 03:43
From: Khurshid Ali
Subject: How to create POST data action for adding roles and division to users. API: /api/v2/authorization/subjects/{subjectId}/bulkadd
Hello Community,
How to create POST data action for adding roles and division to users. API: /api/v2/authorization/subjects/{subjectId}/bulkadd
When I run it through developer center, it works fine. But when I try to create a data action, it always fails.
I have tried multiple different ways to pass the input, like first input as array for grants, then the strings > objects> strings, etc
But all in vain. Can someone please help me with this?
This will be used on a digital bot to create user profile with respective roles and division.
#ArchitectureandDesign
#ConversationalAI(Bots,AgentAssist,etc.)
#Integrations
------------------------------
Khurshid Ali,
Consultant / Developer / Tech Lead,
NCR Voyix,
khurshid.ali@ncrvoyix.com,
New Delhi,
India
------------------------------