Unable to Patch Source Schema in delimited file connector

Hi ,
We have a script for creating a delimited file connector source and to upload the account schema file but are facing difficulties when trying to update the attribute as “group” and mark it as both “entitlement” and “multivalued.”

Attached below is a screenshot that illustrates the error we’re receiving—a 400 error

Any suggestions on where i’m doing wrong here.
Thanks,
Divya

Hi Divya,

Patch bodies are often in this format:

[
{
“op”: “replace”,
“path”: “/description”,
“value”: “New description”
}
]

To update the attribute you are looking for, I would suggest doing a GET request to view the format of the schema. From there you should be able to work out the path you need to make the request.

Hope this is helpful.

I am updating the IsGroup attribute as mentioned in below API
update-source-schema | SailPoint Developer Community
{
“name”: “groups”,
“type”: “STRING”,
“schema”: {
“type”: “CONNECTOR_SCHEMA”,
“id”: “2c9180887671ff8c01767b4671fc7d60”,
“name”: “group”
},
“description”: “The groups, roles etc. that reference account group objects”,
“isMulti”: true,
“isEntitlement”: true,
“isGroup”: true
}

I understand the confusion via the documentation. Further down it gives you the body it requires along with an example :slight_smile:

Hi @jade-townsend
Could you please provide some assistance on how we can only update the details of SystemAccess attribute as below using patch. Since the account schema has many attributes
{
“name”: “SystemAccess”,
“type”: “STRING”,
“schema”: {
“type”: “CONNECTOR_SCHEMA”,
“id”: “5b50d679252e4a55b267c2d5818e7ed5”,
“name”: “group”
},
“description”: “The groups, roles etc. that reference account group objects”,
“isMulti”: true,
“isEntitlement”: true,
“isGroup”: true
}

You will need to do a GET request to see where the desired attribute is in the ‘attributes’ array.

For example, my ‘group’ attribute on the account schema is 7.

From here, you will be able to do a PATCH request, example body below:

[
  {
    "op": "replace",
    "path": "/attributes/7/isMulti",
    "value": "true"
  },
  {
    "op": "replace",
    "path": "/attributes/7/isEntitlement",
    "value": "true"
  }
]

Hope this is helpful :slight_smile:

Thanks much @jade-townsend
it really helped.

1 Like