Skip to main content
Solved

Delete IAM user api call


Forum|alt.badge.img

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.

 

 

Best answer by Mark Jongeling

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

View original
Did this topic help you find an answer to your question?
This topic has been closed for comments

2 replies

Mark Jongeling
Administrator
Forum|alt.badge.img+23
  • Administrator
  • 3936 replies
  • Answer
  • May 16, 2023

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


Forum|alt.badge.img
  • Author
  • Apprentice
  • 5 replies
  • May 16, 2023

Thanks @Mark Jongeling , it works now!


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings