Comments
The Comment object
idstringoptionalPublic identifier of the comment.
contentstringoptionalComment body.
tagsarray of stringsoptionalTags associated with the comment.
metaobjectoptionalArbitrary metadata stored with the comment.
authorobjectoptionalUser that authored the comment.
repliesarray of objectsoptionalNested replies to the comment.
editablebooleanoptionalWhether the current session user can edit the comment.
updated_attimestampoptionalTime the comment was last updated.
created_attimestampoptionalTime the comment was created.
deleted_attimestampoptionalTime the comment was deleted, when soft deleted.
{
"id": "comment_8JVZr4q",
"content": "Please confirm the delivery window.",
"tags": [],
"meta": {},
"author": {
"id": "user_8xP2L1d",
"name": "Alex Rivera"
},
"replies": [],
"editable": true,
"updated_at": "2026-05-07T09:30:00Z",
"created_at": "2026-05-07T09:30:00Z",
"deleted_at": null
}/v1/commentsCreate Comment
Creates a comment on a subject resource or as a reply to an existing comment. Provide either a subject reference or a parent comment ID with the comment content.
contentstringrequiredComment body.
subjectobjectoptionalSubject resource receiving the comment. Provide this object when creating a top-level comment.
idstringrequiredPublic ID of the subject resource.
typestringrequiredMutation type or resource type used to resolve the subject model.
subject_idstringoptionalPublic ID of the subject resource. Use with subject_type as an alternative to subject.
subject_typestringoptionalMutation type or resource type used to resolve the subject model. Use with subject_id.
parentstringoptionalPublic ID of the parent comment when creating a reply.
/v1/commentscurl -X POST https://api.fleetbase.io/v1/comments \
-H "Authorization: Bearer flb_live_…" \
-H "Content-Type: application/json" \
-d '{
"content": "Example comment",
"subject": {
"id": "{{subject_id}}",
"type": "{{subject_type}}"
}
}'/v1/comments/:idUpdate Comment
Updates the content of an existing comment. The subject and parent linkage are not changed by this endpoint.
contentstringrequiredUpdated comment body.
/v1/comments/:idcurl -X PUT https://api.fleetbase.io/v1/comments/:id \
-H "Authorization: Bearer flb_live_…" \
-H "Content-Type: application/json" \
-d '{
"content": "Updated comment"
}'/v1/commentsQuery Comments
Returns comments for the current organization. Use query parameters to filter, sort, and paginate the result set.
limitstringoptionalLimit value for this comments request.
offsetstringoptionalOffset value for this comments request.
sortstringoptionalSort value for this comments request.
/v1/commentscurl https://api.fleetbase.io/v1/comments?limit=25&offset=0&sort=created_at \
-H "Authorization: Bearer flb_live_…"/v1/comments/:idRetrieve Comment
Retrieves a comment by ID, including its author and any nested replies returned by the API resource.
/v1/comments/:idcurl https://api.fleetbase.io/v1/comments/:id \
-H "Authorization: Bearer flb_live_…"/v1/comments/:idDelete Comment
Deletes a comment by ID. The response returns a deleted-resource envelope for the removed comment.
/v1/comments/:idcurl -X DELETE https://api.fleetbase.io/v1/comments/:id \
-H "Authorization: Bearer flb_live_…"