Skip to content
Navigation

Add a note

POST
https://api.nicer.travel/crm/notes

Adds a note about one traveler or one trip. Log a call, an email, a meeting or a message with its kind. Requires an Idempotency-Key header. Errors: 400 ERROR_BODY_VALIDATION, 404 ERROR_ITEM_NOT_FOUND, 409 CRM_IDEMPOTENCY_CONFLICT.

Authorization

  • bearerAuth
    HTTP Bearer (JWT)
    required

    Authorization: Bearer <token>

Header parameters

  • Idempotency-Key
    string
    required

    Unique key (8–255 chars) per request; replays return the original result.

  • x-nicer-company
    string
    required

    Company context. Authentication and tenant membership are validated by the API.

  • X-Nicer-CRM-Contract
    resource
    required
    example: "resource"

Request body JSON required

  • content
    string
    required

    The text, 1 to 20,000 characters once trimmed, in the format of the editor that writes it.

    maxLength: 20000 · minLength: 1
  • isPinned
    optional
    boolean

    Pins the note to the traveler's overview. False when left out.

  • kind
    optional
    CALL
    or
    EMAIL
    or
    MEETING
    or
    MESSAGE
    or
    NOTE

    What the note records. NOTE when left out.

  • travelerId
    optional
    string

    The traveler (TRV…) the note is about. Required unless travelersTripId is sent; never both.

    maxLength: 64 · minLength: 1
  • travelersTripId
    optional
    string

    The trip (TT…) the note is about. Required unless travelerId is sent; never both.

    minLength: 1

Returns

200

OK

JSON
  • companyName
    string
    required

    The agency the note belongs to.

  • content
    string
    required

    The text, in the format of the editor that wrote it.

  • createdAt
    string
    required

    When the note was written.

    format: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$
  • createdBy
    string
    required

    The user id of who wrote the note.

  • isPinned
    boolean
    required

    Whether the note is pinned: pinned notes lead the traveler's overview.

  • kind
    CALL
    or
    EMAIL
    or
    MEETING
    or
    MESSAGE
    or
    NOTE
    required

    What the note records.

  • lastModifiedBy
    string
    required

    The user id of who changed the note last.

  • noteId
    string
    required

    The note's id: what updateNote and deleteNote take.

  • travelerId
    required

    The traveler the note is about; null for a note about a trip. A note is about one traveler or one trip.

    Any of the following:

    • TravelerId
    • null
  • travelersTripId
    required

    The trip (TT…) the note is about; null for a note about a traveler.

    Any of the following:

    • string
    • null
  • updatedAt
    string
    required

    When the note last changed.

    format: date-time · pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$

400

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

401

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

403

Request failed. errorCode is stable; errorMessage is for humans.
JSON
  • errorCode
    string
    required
  • errorMessage
    string
    required

Type to search…

↑↓ navigate↵ selectEsc close