$ curl -i http://localhost:7080/rest/1/metric/schedule/10004 \\ --user rhqadmin:rhqadmin -X PUT -d @/tmp/fooX \\ -HContent-Type:application/xml HTTP/1.1 200 OK Server: Apache-Coyote/1.1 Pragma: No-cache Cache-Control: no-cache Expires: Thu, 01 Jan 1970 01:00:00 CET X-Powered-By: Servlet 2.4; JBoss-4.2.0.CR2 (build: SVNTag=JBoss_4_2_0_CR2 date=200704160918)/Tomcat-5.5 Content-Type: application/json Transfer-Encoding: chunked Date: Sun, 06 Nov 2011 13:09:47 GMT { "collectionInterval":30000, "displayName":"Pattern 2 Trait", "enabled":true, "scheduleId":10004, "scheduleName":"text2", "type":"TRAIT", "unit":"" }