post https://api.talkdeskapp.com/record-lists//records/bulks
In the record list
Scope
record-lists:manage
Request Body (required)
{
"records": [
{
"phone_numbers": [
{
"phone_number": "+351929312319",
"phone_type": "MOBILE"
}
],
"first_name": "Joey",
"last_name": "Tribbiani",
"timezone": "Europe/Lisbon",
"priority": 7,
"extra_data": {
"country": "USA",
"state": "California",
"job": "Actor"
}
},
{
"phone_numbers": [
{
"phone_number": "+351929312318",
"phone_type": "MOBILE"
}
],
"first_name": "Jane",
"last_name": "Doe",
"timezone": "GMT",
"priority": 5,
"extra_data": {
"country": "USA",
"state": "California",
"job": "Actress"
}
}
]
}
Records Body Parameters
Parameter | Type | Description | Required |
---|---|---|---|
phone_number | string | Phone number of the record. >= 1 characters <= 20 characters | deprecated |
phone_numbers | array[object] | List of phone numbers of the record. >= 1 items "phone_numbers" subdivides into: 1 - "phone_number" (string) - record phone number. >= 1 characters <= 20 characters Required. 2 - "phone_type" (string) - The type of the phone number >= 4 characters <= 7 characters Allowed values: "HOME", "OFFICE", "MOBILE", "EXTRA_1", "EXTRA_2", "EXTRA_3". Required. | yes |
first_name | string | First name of the record. >= 1 characters <= 80 characters | yes |
last_name | string | Last name of the record. >= 1 characters <= 80 characters | yes |
timezone | string | Timezone of the record. >= 1 characters <= 35 characters | no |
external_provider | string | external_provider of the record | no |
external_id | string | external ID of the record | no |
external_url | string | external_url of the record | no |
sync_external_id | boolean | sync_external_id of the record | no |
priority | integer | Priority of the record within the record list. >= 1 <= 10 | no |
extra_data | object | _ | no |
Body Response - Schema
201 (records created)
Parameter | Type | Description | Required |
---|---|---|---|
record_list_id | string | Record list ID. >= 1 characters <= 36 characters | no |
has_error | boolean | true if records upload has errors | no |
total_errors | integer | Total number of errors found in the multiple records upload. >= 0 <= 100 | no |
total_created | integer | Total number of records created in multiple records upload request. >= 0 <= 100 | no |
_links | object | "_links" subdivides into: 1 - "self" (object). Required. 1.1 - "href" (string). Required. 2 - "record_list" (object). Required. 2.1 - "href" (string). Required. | no |
_embedded | object | List of records resulted from insertion. "_embedded" subdivides into: 1 - "records" (array[object]) - array of records. 1.1 - "id" (string) - record ID. 1.2 - "record_list_id" (string) - record list ID. 1.3 - "phone_number" (string) - phone number of the record. Deprecated. 1.4 - "phone_numbers" (array[object]) - list of phone numbers of the record. >= 1 items 1.4.1 - "phone_number" (string) - record phone number. >= 1 characters <= 20 characters Required. 1.4.2 - "phone_type" (string) - The type of the phone number >= 4 characters <= 7 characters Allowed values: "HOME", "OFFICE", "MOBILE", "EXTRA_1", "EXTRA_2", "EXTRA_3". Required. 1.5 - "first_name" (string) - first name of the record. 1.6 - "last_name" (string) - last name of the record. 1.7 - "timezone" (string) - timezone of the record. 1.8 - "priority" (integer) - Priority of the record within the record list. >= 1 <= 10 1.9 - "extra_data" (object) - extra data of the record. 1.10 - "external_provider" (string) - reference for external provider source. 1.11 - "external_id" (string) - unique identifier for resource in external source. 1.12 - "external_url" (string) - resource location in external source. 1.13 - "sync_external_id" (boolean) - sync external ID with contacts. 1.14 - "errors" ( array[string]) - Allowed values: "PHONE_NUMBER_INVALID", "PHONE_NUMBER_MISSING", "PHONE_NUMBER_NOT_UNIQUE", "FIRST_NAME_INVALID", "FIRST_NAME_MISSING", "LAST_NAME_INVALID", "LAST_NAME_MISSING", "TIMEZONE_INVALID", "TIMEZONE_MISSING", "TIMEZONE_UNMATCHED", "PRIORITY_INVALID", "EXTERNAL_REF_MISSING", "EXTERNAL_ID_AND_PROVIDER_NOT_UNIQUE", "OTHER" 1.15 - "created_at" (string) - record creation date. 1.16 - "updated_at" (string) - record update date. 1.17 - "_links" (string) - record update date. 1.17.1 - "self" (object) 17.1.1 - "href" (string) 1.17.2 - "record_list" (object) 1.17.2.1 - "href" (string) | no |
400 (errors found in the submitted data), 401 (unauthorized), 403 (forbidden), 404 (record list not found)
Parameter | Type | Description | Required |
---|---|---|---|
code | string | n/a | yes |
message | string | n/a | yes |
description | string | n/a | no |
fields | array[object] | "fields" subdivides into: "name" (string) "description" (string) | yes (name and description) |
Troubleshooting
If you have any questions regarding the usage of this API, or if you’re having any technical issues, please open a ticket using this form.