cancel
Showing results for 
Search instead for 
Did you mean: 

add person RESTful API, need help...

yzh
Champ in-the-making
Champ in-the-making
I was trying the add person API, but just can't figure out  how to pass in the new user's info, like firstName, lastName etc. I called the login API as admin first and got the ticket, but I don't know how to apply that ticket to the add person API, can anyone here give me an detailed example how to use the Add Person URI? Following is the link describes the api and I'm calling it from Druapl. Thanks in advance!
Add Person API link:
http://wiki.alfresco.com/wiki/Repository_RESTful_API_Reference#Add_Person
3 REPLIES 3

openpj
Elite Collaborator
Elite Collaborator
You have to append the Alfresco ticket in this way:

/alfresco/service/api/xxxx?alf_ticket=TICKET_xxxxxxxx
So you only need to add a parameter in your request (POST, GET, DELETE, PUT) called alf_ticket.

Hope this helps.

yzh
Champ in-the-making
Champ in-the-making
Thank you so much for the reply, but I was using the ticket exactly the way you put in your reply. But still, my question is how do I pass in the new person's name and pwd etc along with this ticket to add a new person in Alfresco? where do I put the user name and pwd and email? Could you give me a detailed example? Thanks!

oops_007
Champ in-the-making
Champ in-the-making
Where you successful in Adding a Person Record to Alfresco using the Rest API?…

I am using HttpClient to do POST/Get for the Alfresco Rest URL..

Thanks,
Ravi Upasi