Status: Open
Status: Answered
Status: Closed
Status: Duplicate

OTDS REST API - Getting error while adding user to a group

Posted Jun 21 by Pamela Ferrari.

Good morning,
We are trying to add users to groups on OTDS using the OTDS REST APIs. The group ID contains blank spaces, for example "Finances - Managers".

The call the following: POST - http://servername:8080//otdsws/v1/groups/Finances - Managers/members

Within the body of the request we entered the stringList parameter with the correct entryDN of the user.
If we run the request using a test tool like Postman, the user is correctly placed in the group.
However, if we run the request from our Java application (via HttpURLConnection), the user is not included in the group receiving a "Bad request" response.
We thought the blank spaces could cause the error, so we replaced it with %20 but the error is the same.

Can you help me?
Thanks so much,
Pamela Ferrari

1 Answer

BEST ANSWER: As chosen by the author.

I opened a ticket with OpenText and my error was the body parameters.
With otdws/v1 I have to use string_list otherwise with otdws/rest I have to use camelCase stringList.

 You have subscribed and will receive email notifications of updates to this topic. To unsubscribe, uncheck the checkbox.


Related categories

Related tags

Your answer

To leave an answer, please sign in.