Update Account Api not working

Hello,
I am using Insomnia (Similar to Postman) to update the account attribute value of an account. The api used is “Update Account v2024”

I would like to update the roles value of the account attribute for the user:

Body of the request:

[{
  "attributes": {
    "roles": "DWH_DEVELOPER"
  }
}]

request URL:https://{{tenant}}.api.identitynow.com/v2024/accounts/:accountid

Headers:
Accept: application/json
Content-Type: application/json-patch+json

Json payload Error recieved:

{
	"detailCode": "400.0 Bad request syntax",
	"trackingId": "69163de5347745cb88a0199f042f9d9e",
	"messages": [
		{
			"locale": "en-US",
			"localeOrigin": "DEFAULT",
			"text": "The request could not be parsed."
		},
		{
			"locale": "und",
			"localeOrigin": "REQUEST",
			"text": "The request could not be parsed."
		}
	],
	"causes": []
}

Can you please tell me what is missing here? The get account getails api is working fine but the patch update account is giving error

I also tried updating the body of the patch request. got an invald path error

i

@salam1 ,
Try request body as below

[
  {
    "op": "replace",
    "path": "/attributes/roles",
    "value": "DWH_DEVELOPERS"
  }
]

Still giving me the same error. I tried updating another attribute value as well.

@salam1 I think there are some limitations on API to update only attributes of flat file accounts and you can only modify account assignment. Please check this with SailPoint support team.

You can try the same with one on of flat file account attribute to update and confirm.

Ahh that is a good catch. Not sure if there is any other api that would do this.