Hello Everyone,
I want to set the IIQDisabled value as true for accounts via API for a delimited source. I am trying both PATCH as well as PUT Accounts api, but none seems to be working.
For PATCH, I am using the below body:
[
{
“op”: “replace”,
“path”: “/attributes/IIQDisabled”,
“value”: true
}
]
Error: Invalid “path”: “/attributes/IIQDisabled” of JSONPatch: {
“op”: “replace”,
“path”: “/attributes/IIQDisabled”,
“value”: true
}
For PUT, I am using the below body:
{
“attributes”: {
“btEIN”: “MUITA007”,
“IIQDisabled”: true,
“UserAccess”: “Global Disablement Group”,
“givenName”: “MUITA007”,
“familyname”: “srivastava”,
“e-mail”: “[email protected] ”
}
}
Error: 400 Bad Request- “The request was syntactically correct but its content is semantically invalid.”
What exactly am I doing wrong here?
udayputta
(UDAY PUTTA)
June 25, 2025, 5:22pm
2
I tried in my postman. It is working
Can you check in headers if you are passing correct Content-Type in your patch call. I used below
pattabhi
(Pattabhi Nandarapu)
June 25, 2025, 6:32pm
3
Hi @sandashafreen26
my account schema of Delimited Source
my source file
UI:
account details page:
JSON:
{
"attributes": {
"IIQDisabled": "false",
"acctid": "123",
"acctname": "reddy"
}
}
account details page:
pattabhi
(Pattabhi Nandarapu)
June 25, 2025, 6:58pm
4
Similarly, the patch also working fine:
[
{
"op": "replace",
"path": "/attributes/IIQDisabled",
"value": "true"
}
]
do let me know if you need any more details.
pattabhi
(Pattabhi Nandarapu)
June 25, 2025, 7:33pm
5
Hi @sandashafreen26
Just make sure you have the correct double quotes; I observe the difference in double quote character like "
vs “
correct double quote character
[
{
"op": "replace",
"path": "/attributes/IIQDisabled",
"value": true
}
]
wrong double quote character
[
{
“op“: “replace“,
“path“: “/attributes/IIQDisabled“,
“value“: true
}
]
if above is not the case, then cross check the following.
Your environment variables
the JSON body if any hidden characters, open in code editor (like VS Code or Notepad++)
Cross check the correct id of the account mentioned in Params
{this ID value copy from account details page}
Thanks for your response.
I tried the same PATCH body to disable the account on a different source and it worked. But somehow it is not working on a particular source. The only difference between the two sources is that the accounts were created via create account API on which this PATCH api isn’t working.
1 Like