Skip to main content

Journal

Guide: Journal.

Journal.create(humanIds, entry)​

POST /api/v2/journal with { humanIds, entry }.

ParameterDescription
humanIdsNon-empty string[]. Throws customers/missing-humanIds when empty
entry.channelNOTE, PHONE, MOBILE, FAX, EMAIL, CONVERSATION, CALENDAR_EVENT, FILE, JIRA, MAIL
entry.textRequired
entry.directionUNKNOWN, INCOMING, OUTGOING. Only for PHONE, MOBILE, FAX, EMAIL, MAIL

Response 201: an array of the created journal documents. The author is SYSTEM for service tokens, otherwise the user's display name.

Errors: journal/missing-humanIds, journal/invalid-channel, journal/missing-text, journal/direction-not-supported, journal/invalid-direction, entity/not-found.

await sdk.asAdmin().Customers().Journal.create(['SC-ZW2VEG'], {
channel: 'NOTE',
text: 'Contract renewed.'
})