Partial update of provisioning policy - Path Help

Hi all,

Need some help please, I’m still early days in my API learnings so I appreciate any help I can get!

Trying to update provisioning policies and I’m not so sure as to what the ‘path’ should be? I can’t see any obvious documentation and struggling to make sense of it.

For example, say I am trying to update the 'Dummy Test provisioning policy:

What should this path be?

This is the API I am trying to use:

& when I try accessing the transform guide I get a 404 error:

https://developer.sailpoint.com/idn/docs/transforms/guides/transforms-in-provisioning-policies

Hi Sean

Personally, I find it easier to delete the provisioning policy then re-create it.

But for your case, if you want to replace the Dummy Test, then it would be /fields/1

(displayName in your screenshot is /fields/0 )

The reason is you can see fields is an Array (line 6, it is inside [ ] ) and array counting starts at zero.

Thanks Jason, yeah likewise - generally adding seems to be cleaner I 100% agree.

But I’d still like to learn how to replace as it’s a gap in my understanding of this API.

So from what you’re saying, it sounds like the number is the index of provisioning policy?

/fields/0 = Policy 1 (displayName)

/fields/1 = Policy 2 (Dummy Test)

And so on?

Just checking that the bracket starting on line 12 wouldn’t be considered a field for the path ?

The path for line 12 would be

/fields/0/transform/attributes/values

I would test just to make sure it works as expected

Nice, so the path for line 31 would be:

/fields/1/transform/attributes/value

Yeah this is all in UAT environment - it’s breakable xD!

line 31 would be /fields/1/name

/fields/1/transform/attributes/value is line 35

1 Like

Great thank you Jason! I’ll give this a try - appreciate you taking time to walk me through that.

Cheers!

1 Like

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