Hey,
On Sat Apr 07 18:26:47 2018, aaronk4576@gmail.com wrote:
Show quoted text> The following command returns the error “Could not resolve host
> Owner":
This error is coming from curl, not RT.
There are several things wrong with your curl command.
The payload is:
‘{ “Owner”: {“id”: “root”}}’
The single and double quotes are Unicode characters. They need to be ASCII, so: ' and ". When you change the owner, you need to specify the id, not another hash. The correct command is:
curl -X PUT -H "Content-Type: application/json" -u 'root:password' -d '{ "Owner": 1 }'
http://10.0.0.26:8080/REST/2.0/ticket/5
Where the ID passed in to Owner is the actual ID, for me it was 12 (go figure).
Cheers,
Andrew