ApexERPHost

<back to all web services

SavePersons

Requires Authentication
The following routes are available for this service:
PUT/Crm/Persons
SavePersons Parameters:
NameParameterData TypeRequiredDescription
PersonbodyCrmPersonsNo
CrmPersons Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
PersonSNformstringNo
PNameformstringNo
FirstNameformstringNo
LastNameformstringNo
SecondNameformstringNo
DateBornformDateTime?No
PhoneformstringNo
MobileformstringNo
WorkPhoneformstringNo
EmailformstringNo
CityIdformstringNo
DescriptionformstringNo
NoteformstringNo
Citizenshipformint?No
Is_RezidentformboolNo
Sexformint?No
SpendformboolNo
UnidformGuidNo
PhonesformList<pPhone>No
EMailsformList<pEmail>No
WebPagesformList<pWebPage>No
PositionformstringNo
pPhone Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
UnidformGuid?No
PhoneTypeformintNo
PhoneformstringNo
PriorityformboolNo
NoteformstringNo
pEmail Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
UnidformGuid?No
EmailTypeformintNo
EmailformstringNo
NoteformstringNo
pWebPage Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
UnidformGuid?No
WebPageTypeformintNo
WebPageformstringNo
NoteformstringNo
SavePersonsResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
ResultformintNo
UnidformGuidNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

PUT /Crm/Persons HTTP/1.1 
Host: apex.nikoratrade.ge 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Person":{"Id":0,"PersonSN":"String","PName":"String","FirstName":"String","LastName":"String","SecondName":"String","DateBorn":"\/Date(-62135596800000-0000)\/","Phone":"String","Mobile":"String","WorkPhone":"String","Email":"String","CityId":"String","Description":"String","Note":"String","Citizenship":0,"Is_Rezident":false,"Sex":0,"Spend":false,"Unid":"00000000000000000000000000000000","Phones":[{"Id":0,"Unid":"00000000000000000000000000000000","PhoneType":0,"Phone":"String","Priority":false,"Note":"String"}],"EMails":[{"Id":0,"Unid":"00000000000000000000000000000000","EmailType":0,"Email":"String","Note":"String"}],"WebPages":[{"Id":0,"Unid":"00000000000000000000000000000000","WebPageType":0,"WebPage":"String","Note":"String"}],"Position":"String"}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"ResponseStatus":{"ErrorCode":"String","Message":"String","StackTrace":"String","Errors":[{"ErrorCode":"String","FieldName":"String","Message":"String","Meta":{"String":"String"}}],"Meta":{"String":"String"}},"Result":0,"Unid":"00000000000000000000000000000000"}