{
"detailCode": "400.1 Bad request content",
"trackingId": "SSSSSSSS",
"messages": [
{
"locale": "und",
"localeOrigin": "REQUEST",
"text": "The request was syntactically correct but its content is semantically invalid."
},
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "The request was syntactically correct but its content is semantically invalid."
}
],
"causes": []
}
Hi @GOKUL_ANANTH_M
thanks for prompt response. I tried the curl you shared ( with actual tenant and account ID) but the error remains the same. I am not seeing much difference between your curl and mine. could you please highlight which specific line you trying to replace here?
P.S: I am getting valid response for same endpoint with GET operation though.
Error:{âdetailCodeâ:â400.1 Bad request contentâ,âtrackingIdâ:âwwwwwwwwâ,âmessagesâ:[{âlocaleâ:âundâ,âlocaleOriginâ:âREQUESTâ,âtextâ:âThe request was syntactically correct but its content is semantically invalid.â},{âlocaleâ:âen-USâ,âlocaleOriginâ:âDEFAULTâ,âtextâ:âThe request was syntactically correct but its content is semantically invalid.â}],âcausesâ:}
Hi Rakesh,
If you need to modify display name then given all the attribute values in the body and perform the put operation
âattributesâ: {
âcityâ: âAustinâ,
âdisplayNameâ: âtest, new nameâ,
âuserNameâ: âjdoeâ,
âsAMAccountNameâ: âjDoeâ,
âmailâ: â[email protected]â
}
Perform get account operation and get the attributes :{ } details from it then modify the display value in it and perform the operation.
Thanks!!
Understood, but if you are going for PUT operation then the payload should contain all the account information not just a displayname (though you are changing the displayname alone).
SailPoint recommends, if you are doing update on very few attributes then go for PATCH operation, if you are changing many attributes then go for PUT operation.
Thanks. I tried putting all the attributes that i am getting from GET operation for the user but still it failed with same error. I am wondering if its because of below note: Note: You can only use this PUT endpoint to update accounts from flat file sources.
my source is not flat file but connected system. So i guess that could be the reason.
That is most likely the reason. I donât think the PATCH operation has that limitation, so you should be able to use it to update accounts on connected sources. However, be aware that any changes you make to accounts via this API will be overwritten the next time the source is aggregated.
As per my experience when you get this error it means, your API is correct but what you are trying to do is not allowed. So, most probably you can not update accounts coming from connected source.