You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Using REST APIs: Update Workzone from Metadata

edited Jul 21, 2016 7:50AM in Field Service 1 comment

Content

Hello,

 

We are trying to make a process to update our workzones, we can get the workzones using get work zone from METADATA, and this is OK.

But the request to update work zone doesn't work. We use java and jersey client to do this, the response always is the same: "returned a response status of 400 Bad Request"

I put here our code(it's very simple code), if somebody can help us I thank you in advance:

 

String output = (String) response.getEntity(String.class);

String jsons="'{\"workZoneLabel\":\"AlavaPeriferia\",\"status\":\"inactive\",\"travelArea\":\"company_area\",}'";
                                                                
response = (ClientResponse) webResource.accept(

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!