Comments

Creates a new comment

post/comments

Request

Request body

titlestring

The title of the Comment.

commentstring required

The content of the Comment message body.

commentable_type'Contact' | 'FleetcorCard' | 'FuelEntry' | 'InventoryJournalEntry' | 'Issue' | 'Part' | 'PurchaseOrder' | 'ServiceEntry' | 'ServiceReminder' | 'SubmittedInspectionItem' | 'Vehicle' | 'VehicleAssignment' | 'Vendor' | 'WexCard' | 'WorkOrder' required

The type of record that the Comment will be left on. Must be associated with a matching commentable_id.

commentable_idinteger required

Response

OK

idinteger required
created_atstring date-time

The date and time at which this record was created.

updated_atstring date-time

The date and time at which this record was most recently updated.

commentable_type'Contact' | 'FleetcorCard' | 'FuelEntry' | 'InventoryJournalEntry' | 'Issue' | 'Part' | 'PurchaseOrder' | 'ServiceEntry' | 'ServiceReminder' | 'SubmittedInspectionItem' | 'Vehicle' | 'VehicleAssignment' | 'Vendor' | 'WexCard' | 'WorkOrder' required

The type of record that the Comment will be left on. Must be associated with a matching commentable_id.

commentable_idinteger required
user_idinteger required
titlestring

The title of the Comment.

commentstring required

The content of the Comment message body.

user_full_namestring required

The full name of the User who created the Comment.

user_image_urlstring nullable required

The image url for the User who created the Comment.

rich_contentobject nullable required
html_contentstring nullable required

The comment message body rendered as HTML.

with_mentionsboolean required

Indicates if the message body contains @mentions.

Example response

{
  "created_at": "2023-03-14T13:46:27-06:00",
  "updated_at": "2023-03-14T13:46:27-06:00"
}

Changes