API
Version 7.x > API > working with contacts using REST View modes: 
User avatar
Member
Member
mikaitza89-yahoo - 12/11/2012 10:31:28 AM
   
working with contacts using REST
Is it posible to add contact using the rest REST modul, if so could you give me an example?
Where can I view contact using REST?

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 12/15/2012 6:18:07 PM
   
RE:working with contacts using REST
Hello,

Yes, you can retrieve or edit the contact information with a query in the following format:

Retrieval:
<domain>/rest/om.contact/<contact id>

Update:
PUT <domain>/rest/om.contact/<contact id> HTTP/1.1

Authorization: Basic YWRtaW5pc3RyYXRvcjo=
Host: localhost
Content-Type: text\xml
User-Agent: Fiddler
Content-Length: 93

<data>
<OM_Contact>
<ContactFirstName>test 2</ContactFirstName>
</OM_Contact>
</data>

For more information please check this documentation about retrieving REST data and about REST data manipulation.

Best regards,
Boris Pocatko

User avatar
Member
Member
mikaitza89-yahoo - 12/16/2012 12:59:09 AM
   
RE:working with contacts using REST
Thanks a lot.
Best regards,
Mihai