Update a Personal Contact

Update a personal contact of the current user.

Request URL

PUT {base_url}/uc-ccontact/api/v1/personal-contacts/{id}

Request parameters

Headers
Parameter Required Type Description
Authorization Yes String The access token used for authentication.

Format: Bearer {access_token}.

x-tenant-code Yes String The tenant name.
Note: You can obtain tenant name using the Query Tenants interface.
Path parameters
Parameter Required Type Description
id Yes String The ID of the personal contact to update.
Note: You can obtain the ID using the Search Personal Contacts interface.
Body parameters
Parameter Required Type Description
firstName No String The contact's first name.
lastName No String The contact's last name.
company No String The name of the company to which the contact belongs.
email No String The contact's email address.
organization No String The organization or department to which the contact belongs.
jobTitle No String The contact's job title.
position No String The contact's position.
industry No String The industry associated with the contact's organization.
supervisor No String The contact's supervisor.
remark No String Additional notes about the contact.
street No String The street address of the contact.
city No String The city where the contact's address is located.
state No String The state or province where the contact's address is located.
country No String The country where the contact's address is located.
zipCode No String The postal code for the contact's address.
mobilePhone No String The contact's primary mobile phone number.
businessPhone No String The contact's primary business phone number.
homePhone No String The contact's primary home phone number.
businessFax No String The contact's primary business fax number.
homeFax No String The contact's primary home fax number.
mobile2Phone No String The contact's secondary mobile phone number.
business2Phone No String The contact's secondary business phone number.
home2Phone No String The contact's secondary home phone number.
otherPhone No String The contact's additional phone number.

Response parameters

Parameter Type Description
requestId String The unique ID of the request, which can be used to quickly locate the request.
code String The HTTP status code of the request.
  • 200: Request succeeded.
  • Non-200 value: Request failed.
message String The status message of the request.
detailMessage String The detailed error information.

When the request is successful, this parameter returns empty.

result Object<Personal_Contact> The details of the personal contact.
Personal_Contact
Parameter Type Description
id String The unique identifier of the contact.
firstName String The contact's first name.
lastName String The contact's last name.
company String The name of the company to which the contact belongs.
email String The contact's email address.
organization String The organization or department to which the contact belongs.
jobTitle String The contact's job title.
position String The contact's position.
industry String The industry associated with the contact's organization.
supervisor String The contact's supervisor.
remark String Additional notes about the contact.
street String The street address of the contact.
city String The city where the contact's address is located.
state String The state or province where the contact's address is located.
country String The country where the contact's address is located.
zipCode String The postal code for the contact's address.
mobilePhone String The contact's primary mobile phone number.
businessPhone String The contact's primary business phone number.
homePhone String The contact's primary home phone number.
businessFax String The contact's primary business fax number.
homeFax String The contact's primary home fax number.
mobile2Phone String The contact's secondary mobile phone number.
business2Phone String The contact's secondary business phone number.
home2Phone String The contact's secondary home phone number.
otherPhone String The contact's additional phone number.
extension String The extension number of the contact.
Note: This parameter is returned with a value when the contact type is CONTACT_TYPE_USER.
presenceStatus String

The presence status of the contact (internal user).

  • AVAILABLE
  • AWAY
  • DND
  • LUNCH
  • BUSINESS_TRIP
  • OFF_WORK
avatarUrl String The URL of the contact avatar.
Note: This parameter returns with a value only when the contact type is CONTACT_TYPE_USER.
contactType String

The type of the contact.

  • CONTACT_TYPE_USER: Internal users.
  • CONTACT_TYPE_PERSONAL: Personal contacts.
  • CONTACT_TYPE_COMPANY: Company contacts.
contactName String The display name of the contact.
isFavorited Boolean Whether the current user has added the contact to favorites.
online Boolean Whether the contact is online.
Note: This parameter returns with a value only when the contact type is CONTACT_TYPE_USER.

Example

Request example

PUT /uc-ccontact/api/v1/personal-contacts/368216339134636032 HTTP/1.1
Host: api.cn.novoone.com
Authorization: Bearer eyJraWQiOiJjbi0wLWtleS0xIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiIxMDAwQGNvbG9ydGVzdDIiLCJncmFudF90eXBlIjoicGFzc3dvcmQiLCJ1c2VyX25hbWUiOiIxMDAwQGNvbG9ydGVzdDIiLCJzY29wZSI6WyJyZWFkIiwid3JpdGUiXSwiY2xpZW50X2V4dCI6eyJkZXNjcmlwdGlvbiI6IueuoeeQhuWQjuWPsFdlYuW6lOeUqCIsInBsYXRmb3JtIjoid2ViIn0sImV4cCI6MTc5MTg3ODQxNiwiaWF0IjoxNzkxODU2ODE2LCJqdGkiOiI2MjQ1OTZmZS0wYjIzLTRjN2QtODRiYS0wYTM3NTZjNWM4MWQiLCJjbGllbnRfaWQiOiJub3ZvLWFkbWluLXdlYiIsInNpZCI6ImU4OGM5ODIwLTdiMmMtNGZjNi1hODVkLTVhMDc3ZTAyOWJmMSIsInVzZXJfZXh0Ijp7InJvbGVJZHMiOlsxMDJdLCJwdWlkIjozMDc2OTEzNjQ0OTE1OTk4NzIwLCJ0ZW5hbnRJZCI6MjA3OTUwNDIwNTMwOTE5NDI0MSwicGFyZW50VWNJZCI6MzA3NjkxMzY0NDg5MDgzMjg5NiwidGVuYW50Q29kZSI6ImNvbG9ydGVzdDIiLCJ0eXBlIjoiVF9VU0VSIiwidXNlcklkIjoyMDc5NzQ2OTE1Mzg4MDc2MDMzLCJlbWFpbCI6Imxlb0BzYW1wbGUuY29tIiwidXNlcm5hbWUiOiIxMDAwQGNvbG9ydGVzdDIiLCJ1Y0lkIjozMDc2OTEzNjQ0ODkwODMyODk2fX0.hijQ7xSuUFb7STxgMG03-ivPInTKDu6FS_qvktSa6TLa9Pnwwy3ziEEyNBT6Sp4dYukzLhhOyWnOMrhXxNxWYyL5Q_fua0i6wpa5mg1G17D6wuxTgOJ4YSBkZ_v27e5P0jC-ML1cEfdD2Erix2kcK118NfBgUxwh6XdjzOxIxAhem2vykL327J5FVmOn3QrASXiXubBg1y_7-HTOd48OrPEBTt6x1skU4T9EuU8H3MHxb_Be4M2_IRhbmRjN7Hi9iR3DAK1Cr4kNVzDxeMXuxIerudn0EL6xkmOHp-8gOpavsOPUUEfrajrHp9F0_Tzl9PgIqAm3Ju-UppzBVoDW_w
Content-Type: application/json
x-tenant-code: jint
{
  "mobilePhone": "+8613800000011"
}

Response example

HTTP/1.1 200 OK
{
  "requestId": "5b110eebaf56479fdc87041e2c92c8a5",
  "code": "200",
  "message": "SUCCESS",
  "detailMessage": "",
  "result": {
    "id": "368216339134636032",
    "firstName": "Leo",
    "lastName": "Ball",
    "company": "Sample",
    "email": "leo@sample.com",
    "organization": "",
    "jobTitle": "",
    "position": "",
    "industry": "",
    "supervisor": "",
    "remark": "",
    "street": "",
    "city": "",
    "state": "",
    "country": "",
    "zipCode": "",
    "mobilePhone": "+8613800000011",
    "businessPhone": "+8613900001111",
    "homePhone": "",
    "businessFax": "",
    "homeFax": "",
    "mobile2Phone": "",
    "business2Phone": "",
    "home2Phone": "",
    "otherPhone": "",
    "extension": "",
    "presenceStatus": "AVAILABLE",
    "avatarUrl": "",
    "contactType": "CONTACT_TYPE_UNSPECIFIED",
    "contactName": "Leo Ball",
    "isFavorited": false,
    "online": false
  }
}