Skip to content
dimmiDocs

More

Send migration records

Applies a batch of 1 to 100 records of one kind in dimmi's import format to the migration, as quiet history: nothing is sent and no event goes out. Each record is kept under its source_id, so sending it again updates what it became or skips it when unchanged, and a record naming one not sent yet waits for it. It needs the settings:write ability and the imports:manage permission. Returns a result per record, in the order sent, and the waiting records this batch let through.

POST/api/v1/migrations/{migration}/records

Authorization

Authorizationstringrequired

An API token, sent as Bearer <token>.

Needs the settings:write ability

Path parameters

migrationstringrequired

Migration: text.

Body

application/json
kindstringrequired

Kind: one of teammate, team, tag, attribute_definition, company, contact, contact_note, ticket_type, help_center, collection, article, snippet, saved_reply, schedule, workflow, conversation, ticket.

Available options:teammateteamtagattribute_definitioncompanycontactcontact_noteticket_typehelp_centercollectionarticlesnippetsaved_replyscheduleworkflowconversationticket

recordsany[] | nullrequired

Records of the kind in the import format, version 1.

Minimum items: 1 · Maximum items: 100

Response 200

OK
dataobjectrequired
Show child attributes
kindstringrequired

The kind of the records sent.

objectstringrequired

The kind of record this is, the same for every record of its kind, such as article.

resolvedobject[] | nullrequired

Records sent before that waited for this batch and are now applied or failed.

Show child attributes
conflictsobject[] | nullrequired

Fields a teammate changed in dimmi, which this sync left as they are.

Show child attributes
dimmianyrequired

The value it holds in dimmi now, which the sync kept.

fieldstringrequired

The field a teammate changed in dimmi since the migration wrote it, such as status.

sourceanyrequired

The value the other tool sent, which was not applied.

errorobjectrequired
Show child attributes
codestringrequired

A stable code for why the record failed, such as company_exists.

fieldstring

The record field at fault, such as external_id. Null when no single field is.

messagestringrequired

What went wrong, in words for a person.

idstring | nullrequired

The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.

kindstringrequired

The record's kind.

source_idstringrequired

The record's id in the other tool.

statusstringrequired

created, updated, unchanged (sent before as it is and skipped), deferred, failed or unsupported.

Available options:createdupdatedunchangeddeferredfailedunsupported

waiting_forobject[] | nullrequired

The records a deferred record waits for. Empty otherwise.

Show child attributes
kindstringrequired

The kind of the record named, such as contact or teammate.

source_idstringrequired

The record's id in the other tool.

warningsobject[] | nullrequired

Fields left out of the record, each with a code and why.

Show child attributes
codestringrequired

A stable code for the warning, such as not_supported_yet or file_unavailable.

fieldstringrequired

The record field left out, such as custom_attributes.

messagestringrequired

What was left out and why, in words for a person.

resultsobject[] | nullrequired

A result per record, in the order sent.

Show child attributes
conflictsobject[] | nullrequired

Fields a teammate changed in dimmi, which this sync left as they are.

Show child attributes
dimmianyrequired

The value it holds in dimmi now, which the sync kept.

fieldstringrequired

The field a teammate changed in dimmi since the migration wrote it, such as status.

sourceanyrequired

The value the other tool sent, which was not applied.

errorobjectrequired
Show child attributes
codestringrequired

A stable code for why the record failed, such as company_exists.

fieldstring

The record field at fault, such as external_id. Null when no single field is.

messagestringrequired

What went wrong, in words for a person.

idstring | nullrequired

The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.

kindstringrequired

The record's kind.

source_idstringrequired

The record's id in the other tool.

statusstringrequired

created, updated, unchanged (sent before as it is and skipped), deferred, failed or unsupported.

Available options:createdupdatedunchangeddeferredfailedunsupported

waiting_forobject[] | nullrequired

The records a deferred record waits for. Empty otherwise.

Show child attributes
kindstringrequired

The kind of the record named, such as contact or teammate.

source_idstringrequired

The record's id in the other tool.

warningsobject[] | nullrequired

Fields left out of the record, each with a code and why.

Show child attributes
codestringrequired

A stable code for the warning, such as not_supported_yet or file_unavailable.

fieldstringrequired

The record field left out, such as custom_attributes.

messagestringrequired

What was left out and why, in words for a person.

Response error

Error
codestringrequired

Stable code for programs to tell errors apart, such as validation_failed or internal_error.

errorsobject

Each rejected field mapped to its messages. Only present when the input was invalid.

messagestringrequired

What went wrong, in words safe to show a person.