Solved

Delete IAM user api call

  • 16 May 2023
  • 2 replies
  • 76 views

Badge

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.

 

 

icon

Best answer by Mark Jongeling 16 May 2023, 15:13

View original

This topic has been closed for comments

2 replies

Userlevel 7
Badge +23

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')

Badge

Thanks @Mark Jongeling , it works now!