bsouzadock
(Bruno Souza)
September 11, 2023, 9:26pm
1
I need to create segments and add access profiles after creation via API. I looked at the documentation but didn’t find anything like that.
The v3 and beta documentation allows the creation and updating of segments but does not allow adding access profiles to the segment.
How can I do this?
Thanks.
sharvari
(Sharvari Bharatiya)
September 12, 2023, 9:12am
2
Try this API
POST https://tenant.api.identitynow.com/beta/segments/:id/change-assignments
{
"assignments": [{"id":"xxxxxxxxxxxxxxx","type":"ACCESS_PROFILE"}],
"removals": []
}
If that doesn’t work you can add segments to an access profile using the PATCH Access Profile API and passing the segment id(s) as an array. You can see an example here:
2 Likes
system
(system)
Closed
November 11, 2023, 9:12am
3
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.