Create Search Attribute Config API not working

Hi All,

I am trying to create a Search Attribute using the Create Search Attribute Config API but I am getting 400 error. Below is the body and URL I am using please let me know if there is any issue in calling the API.
API URL

https://tenant.api.identitynow.com/beta/accounts/search-attribute-config/

Body

{

"name": "NewpersonalEmail",

"displayName": "NewpersonalEmail",

"applicationAttributes": [

    {

        "2c9180877cb94719017cbb93a3571234": "mail"

    }

]

}

Result

{

"detailCode": "400.0 Bad request syntax",

"trackingId": "c23546e814bd464d8542735a5f5428d5",

"messages": [

    {

        "locale": "en-US",

        "localeOrigin": "DEFAULT",

        "text": "The request could not be parsed."

    }

],

"causes": []

}

Thanks for you help.

Hi Nitin,

Will you please try this body instead (without the square brackets around applicationAttributes):

{
"name": "NewpersonalEmail",
"displayName": "NewpersonalEmail",
"applicationAttributes": 
    {
        "2c9180877cb94719017cbb93a3571234": "mail"
    }
}

I believe this should work; please reply if it does not work correctly.

Thanks,

Lisa Ivy

Hi Lisa,

Yes it did worked thanks for the reply, it seems Sailpoint API documentation requires an updates as it still has mentioned in the same.

Thanks,
Nitin

Thanks, Nitin. I’ve submitted a ticket for our documentation team to fix the API body example.

I am getting this error when using the same api call:

{

"detailCode": "404 Not found",

"trackingId": "6211a278207e4a54a96eecd772fcdcfd",

"messages": [

    {

        "locale": "en-US",

        "localeOrigin": "DEFAULT",

        "text": "The server did not find a current representation for the target resource."

    }

],

"causes": []

}

This is my body:
{

"name": "searchUidNumber",

"displayName": "searchUidNumber",

"applicationAttributes": {

    "2c91808873c525a60173dd64a4fe430a": "uidNumber"

}

}

@jsr749

You are receiving a 404 Not Found. Are you sure that the application ID and the attribute name are correct?

1 Like