跳转到主要内容
POST
Creates a contact under a client, or a temporary contact when no client is given.

授权

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.

请求体

Contact details.

Request body for creating a contact, under a client or, with no client, as a temporary contact.

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"

PrimaryEmail
string
必填

Primary email address. Required. Maximum 200 characters.

Minimum string length: 1
示例:

"jane.doe@contoso.com"

ClientId
integer<int64> | null

Identifier of the client the contact belongs to. Optional. When omitted the contact is created as a temporary contact (IsTemporaryContact true) with no client, the way an email from an unknown requester creates one; a temporary contact can be the contact or a cc contact on a ticket that has no client.

LocationId
integer<int64> | null

Identifier of the client location the contact belongs to. Requires ClientId.

SecondaryEmail
string[] | null

Additional (secondary) email addresses. 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[]