[rt-users] REST add/update a user

Joel Schuweiler Joel.Schuweiler at schmoozecom.com
Fri Feb 27 15:42:10 EST 2009


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:toml at bitstatement.net] 
Sent: Friday, February 27, 2009 2:24 PM
To: Joel Schuweiler
Cc: rt-users at lists.bestpractical.com
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: some at name.com
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/
-- ============================



More information about the rt-users mailing list