CreateNoteRequest: {
    content: string;
    created_at?: Date;
    creator_id?: number;
    type?: NoteType;
} & ({
    parent_id: number;
} | RequireAtLeastOne<{
    opportunity_ids: number[];
    organization_ids: number[];
    person_ids: number[];
}>)

Type declaration

  • content: string

    The string containing the content of the new note. See formatting options for HTML support.

  • Optionalcreated_at?: Date

    The creation time to be recorded for the note. If not provided, defaults to the current time. Does not support times in the future.

  • Optionalcreator_id?: number

    The ID of a Person resource who should be recorded as the author of the note. Must be a person who can access Affinity. If not provided the creator defaults to the owner of the API key.

  • Optionaltype?: NoteType

    The type of the new note. Defaults to 0. The types 0 and 2 represent plain text and HTML notes, respectively. If submitting as HTML, see the formatting options.