I am trying to create new job from jaspersoft rest php client api but am unable to create new job. However, searching and updating job codes are working fine.
Initially I got the exception An unexpected HTTP status code was returned by the server and somehow I have managed to resolve this by removing the toJSON() method call from createjob as it was already in json format. After this it throws 502 - Bad Gateway Error and I could not find any solutions yet.
The sample code taken is from https://community.jaspersoft.com/wiki/php-client-sample-code url.
Any help would be highly appreciable.