Hrm... I thought xml was standard when doing rest, is this not the case? Is there a method to get rt to handle xml for bother get/post ?
-----Original Message----- From: Tom Lahti [mailto:[email protected]] Sent: Friday, February 27, 2009 2:24 PM To: Joel Schuweiler Cc: [email protected] Subject: Re: [rt-users] REST add/update a user Joel Schuweiler wrote: > Anyone have example code, or know where I can find any, for using rest to > add/update/delete users, including their passwords. > > Thanks, > Joel It's just a form, with the id: field set to "user/<login>" instead of "ticket/<number>", and use the "edit" REST method. To create a user, you'd use the object id "user/new". The rest of the form would be like: id: user/new Name: Some Name EmailAddress: [email protected] Organization: Some Corp Password: blahblah Comments: This is a comment. and so on. -- -- ============================ Tom Lahti BIT Statement LLC (425)251-0833 x 117 http://www.bitstatement.net/ -- ============================ _______________________________________________ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users Community help: http://wiki.bestpractical.com Commercial support: [email protected] Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
