Assign Access Profile to Segment via API

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.

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

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.