Skip to main content

Hi,

I try to delete an iam user, using the indicium api. 

Creating and fetching a user works fine, but when I try to delete a user I get the following error: 

400 Bad Request - Invalid OData URL.

Below you can see what I tried.
Can somebody tell me what i’m doing wrong? 

Request Type Endpoint Body Result
POST {{base_url}}/indicium/iam/iam/usr

{"tenant_id": 1

,"usr_id": "test_user"

,"first_name": "test_user"

,"sur_name": ""

,"gender": 0

,"time_zone_id":"Etc/UTC"

,"appl_lang_id": "ENG"

,"authentication_type":3

}

OK
GET {{base_url}}/indicium/iam/iam/usr(1, 'test_user') none OK
DELETE {{base_url}}/indicium/iam/iam/usr(1, 'test_user') none Invalid OData URL.

 

 

Hi Sergio,

Just confirmed, when having a Primary key consisting of multiple columns, you'll have to specify the column name, like so:

{{base_url}}/indicium/iam/iam/usr(tenant_id=1, usr_id='apiuser')


Thanks @Mark Jongeling , it works now!