cancel
Showing results for 
Search instead for 
Did you mean: 

RESTful API Call Illegal Argument

02-13-2020 4:16 PM
MichaelGrackin Contributor
891 views 3 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

I am attempting to update the description of a folder object using RESTful API calls in JSON format and I am getting an Illegal Argument error. Has anyone encountered this before? Any suggestions? The account I am using with the RESTful call is an administrator account.

Headers for 'Content-Type' and 'Accept' are both set to 'application/json'.

| Request Meth: PUT

| Request URL: /v1/folders/775822

| Request Body: {"description":"Restful Folder updated by RESTfulAPITester"}

| Response Code: 400

{"error_code":"RWS 000019","message":"Illegal Argument: {\"description\":\"Restful Folder updated by RESTfulAPITester\"} (RWS 000019)"}

We are running BusinessObjects 4.2, SP7, Patch 02 on Apache Tomcat 9.0.20

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

daniel_paulsen
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Michael,

it appears the minimum attributes you can pass must include the name of the folder and its parentid. a request body similar to below should work:

{ "name": "Test Folder", "description": "Restful Folder updated by RESTfulAPITester", "parentid": "23" }

Dan

MichaelGrackin
Contributor
0 Likes

AWESOME! Thanks Daniel. This fixed the issue.

How did you determine this? Is this documented anywhere?

MichaelGrackin
Contributor
0 Likes

It appears this is a requirement for updating other objects such as Categories. I was having the same issue with updating Categories and this fixed the issue.

Answers (0)