yuuvis® RAD Q&A

0 votes
by (2.1k points)

Hello

I am trying to remote the data of a single indexfield of an object. This needs to be done for all of them and I have about 160000 of them.

The update batch Endpoint seems to be fitting for my usecase.

This is the (post) request, that I am trying to use:

URL: /rest-ws/service/dms/batch
Body:

{
    "query": {
        "type": "datenuebernahme"
    },
    "data": {
        "name": {
            "value": ""
        }
    }
}

The response is an error that my json can not be parsed. There seems to be something wrong with the query, even though it is pretty simple.

Error Message:
"Next state not found with field name query. Possible fieldnames are : [Lcom.os.ecm.ws.model.batch.DmsObjectBatchJsonParser$State;@a099d9f\n at [Source: com.os.ecm.ws.monitor.MonitoringInputStream@3693a04a; line: 2, column: 15]"

What am I doing wrong here?

Thanks Peter

1 Answer

+1 vote
by (19.6k points)
selected by
 
Best answer

Hello Peter,

I think you are using the wrong http method. It should be PUT not POST.

Regards
Nicolai

by (2.1k points)
Whoops, my bad that was pretty obvious.

That fixed it, thank you. :)
...