الانتقال إلى المحتوى الرئيسي
PATCH
Updates an existing contact.

التفويضات

X-API-Key
string
header
مطلوب

Your Gorelo API key. See Generate API key. If your data is hosted in Australia, click the base URL at the top of this page and select https://api.aue.gorelo.io.

معلمات المسار

contactId
integer<int64>
مطلوب

Contact to update.

الجسم

Contact fields to update.

Request body for updating an existing contact. ContactId, bound from the route, identifies the contact. MobilePhone, MobilePhoneCountryCode, OfficePhone, OfficePhoneCountryCode, JobTitle, Department, TimeZone and Description are replaced as sent: a field left out is cleared. LocationId and SecondaryEmail left out keep their current values.

FirstName
string
مطلوب

Contact first name. Required. Maximum 150 characters.

Minimum string length: 1
مثال:

"Jane"

LastName
string
مطلوب

Contact last name. Required. Maximum 150 characters.

Minimum string length: 1
مثال:

"Doe"

ClientId
integer<int64>
مطلوب

Identifier of the client the contact belongs to. Required.

PrimaryEmail
string
مطلوب

Primary email address. Required. Maximum 200 characters.

Minimum string length: 1
مثال:

"jane.doe@contoso.com"

LocationId
integer<int64> | null

Identifier of the client location the contact belongs to. Omit to keep the current location.

SecondaryEmail
string[] | null

Additional (secondary) email addresses, replacing the current set. Omit to keep the current secondary emails; send an empty array to clear them. Maximum 200 characters each.

MobilePhone
string

Mobile phone number, as dialled within its country, e.g. 021 123 4567 for NZ; an international +64 21 123 4567 is accepted too. A number sent without its leading 0 (21 123 4567) is stored with it. Maximum 20 characters.

MobilePhoneCountryCode
string

Mobile phone ISO 3166-1 alpha-2 region code (e.g. US). Maximum 100 characters.

OfficePhone
string

Office phone number, as dialled within its country, e.g. 021 123 4567 for NZ; an international +64 21 123 4567 is accepted too. A number sent without its leading 0 (21 123 4567) is stored with it. Maximum 20 characters.

OfficePhoneCountryCode
string

Office phone ISO 3166-1 alpha-2 region code (e.g. US). Maximum 25 characters.

JobTitle
string

Contact job title. Maximum 100 characters.

Department
string

Contact department. Maximum 150 characters.

TimeZone
string

IANA time zone identifier for the contact (e.g. America/New_York). Maximum 50 characters.

Description
string

Free-text description / notes for the contact. Maximum 2000 characters.

الاستجابة

OK

StatusCode
enum<integer>
الخيارات المتاحة:
100,
101,
102,
103,
200,
201,
202,
203,
204,
205,
206,
207,
208,
226,
300,
301,
302,
303,
304,
305,
306,
307,
308,
400,
401,
402,
403,
404,
405,
406,
407,
408,
409,
410,
411,
412,
413,
414,
415,
416,
417,
421,
422,
423,
424,
426,
428,
429,
431,
451,
500,
501,
502,
503,
504,
505,
506,
507,
508,
510,
511
IsSuccess
boolean
Data
object

A contact belonging to a client. Timestamps are UTC.

DataContext
object | null
مثال:

null

Notifications
object[]