Create Contact/ContactList
You can create contact from here
/ContactEx/CreateUpdateContactListForPWPForExternalUser
Query String
Parameter | Required | Value |
---|---|---|
externalUser | Mandatory | 1 |
Request Header
Parameter | Required | Value |
---|---|---|
TokenKey | Mandatory | User Input |
ModuleKeyRequest | Mandatory | PWP |
Accept-Language | Optional | en-US |
Accept-Encoding | Optional | gzip |
Content-Type | Mandatory | application/json |
Request Body
Parameter | Required | Value |
---|---|---|
Address1 | Optional | User Input |
CompanyName | Optional | User Input |
Mandatory | User Input | |
Fax | Optional | User Input |
FirstName | Mandatory | User Input |
LastName | Optional | User Input |
PhoneWork | Optional | User Input |
*State | Mandatory | User Input |
*Country | Mandatory | User Input |
City | Optional | User Input |
ZipCode | Optional | User Input |
*TimeZone | Mandatory | User Input |
PublicPWAccountID | Mandatory | 1 |
Notes | Optional | User Input |
Example
externalUser:1
TokenKey:Your Token Key
ModuleKeyRequest:PWP
Accept-Language:en-US
Accept-Encoding:gzip
Content-Type:application/json
[{
"Address1":"",
"CompanyName":"test",
"Email":"[email protected]",
"Fax":"",
"FirstName":"",
"LastName":"",
"PhoneWork":"",
"State":{"StateName":"American Samoa","StateID":2169},
"Country":{"CountryName":"USA","CountryID":1},
"City":"",
"ZipCode":"",
"TimeZone":{"TimeZoneName":"(GMT-11:00) Midway Island, Samoa","TimeZoneID":90},
"PublicPWAccountID":1,
"Notes":""
}]
[
{
"PWAccountID": 0,
"EncryptedPWAccountID": "55SMGlXwzNJmamAjfYSQwA%3d%3d",
"Address1": "",
"City": "",
"Country": {
"CountryID": 1,
"CountryName": "USA"
},
"State": {
"StateID": 1,
"StateName": "Alabama",
"TimeZoneID": 0
},
"TimeZone": {
"TimeZoneID": 78,
"TimeZoneName": "India Standard Time",
"TimeDiff": 0
},
"ZipCode": "",
"Fax": "",
"PhoneWork": "",
"YearsInBusiness": 0,
"ProjectRoleID": 0,
"Notes": "",
"ContactIdentifier": "00000000-0000-0000-0000-000000000000",
"EncryptedPWUserID": "CW7njOk%2fRo4%3d",
"CLPWContactID": 0,
"PWContactID": 0,
"EncryptedPWContactID": "n58d6pCEzmcBiIxwtZCzHA%3d%3d",
"PublicPWAccountID": 0,
"EncryptedPublicPWAccountID": "8Hq5jgK1axM%3d",
"FirstName": "test116",
"LastName": "",
"Email": "[email protected]",
"ContactName": "test116",
"CompanyName": "Test Company",
"IsPublicContact": false,
"UserLicenseType": 0,
"PWPLicUserType": 3,
"Admin": false,
"ShareProjectCount": 0,
"GuestPWUserID": 0,
"EncryptedGuestPWUserID": "CW7njOk%2fRo4%3d"
},
{
"PWAccountID": 0,
"EncryptedPWAccountID": "55SMGlXwzNJmamAjfYSQwA%3d%3d",
"Address1": "",
"City": "",
"Country": {
"CountryID": 1,
"CountryName": "USA"
},
"State": {
"StateID": 1,
"StateName": "Alabama",
"TimeZoneID": 0
},
"TimeZone": {
"TimeZoneID": 78,
"TimeZoneName": "India Standard Time",
"TimeDiff": 0
},
"ZipCode": "",
"Fax": "",
"PhoneWork": "",
"YearsInBusiness": 0,
"ProjectRoleID": 0,
"Notes": "",
"ContactIdentifier": "00000000-0000-0000-0000-000000000000",
"EncryptedPWUserID": "CW7njOk%2fRo4%3d",
"CLPWContactID": 0,
"PWContactID": 0,
"EncryptedPWContactID": "n58d6pCEzmdUOaFz0IQFnQ%3d%3d",
"PublicPWAccountID": 0,
"EncryptedPublicPWAccountID": "8Hq5jgK1axM%3d",
"FirstName": "test117",
"LastName": "",
"Email": "[email protected]",
"ContactName": "test117",
"CompanyName": "Test Company",
"IsPublicContact": false,
"UserLicenseType": 0,
"PWPLicUserType": 3,
"Admin": false,
"ShareProjectCount": 0,
"GuestPWUserID": 0,
"EncryptedGuestPWUserID": "CW7njOk%2fRo4%3d"
}
]
Remarks:
- In Request Body: * fields is objects so this fields have their own properties. Below is the property info,
a. State – StateName and StateID
b. Country – CountryName and CountryID
c. TimeZone – TimeZoneName and TimeZoneID
Updated about 7 years ago