Inserts a message or a custom entry at the given position in the collection, shifting later entries down.
POST
/case/collections/{caseId}/{collectionId}/insert-entry
curl \
--request POST 'http://api.example.com/case/collections/{caseId}/{collectionId}/insert-entry' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--header "organization: string" \
--data '{
"entry": {
"type": "message",
"deviceMessage": "string",
"text": "string",
"customType": "string",
"customValue": "string"
},
"position": 42.0
}'
Request examples
# Headers
organization: string
# Payload
{
"entry": {
"type": "message",
"deviceMessage": "string",
"text": "string",
"customType": "string",
"customValue": "string"
},
"position": 42.0
}
Response examples (200)
{
"data": {
"createdAt": "2026-01-15T14:30:00.000Z",
"updatedAt": "2026-01-15T14:30:00.000Z",
"id": "507f1f77bcf86cd799439011",
"deviceMessage": "507f1f77bcf86cd799439011",
"text": "Key admission",
"customType": "string",
"customValue": "string",
"position": 0,
"type": "message",
"createdBy": "507f1f77bcf86cd799439011",
"lastUpdatedBy": "507f1f77bcf86cd799439011",
"caseCollection": "507f1f77bcf86cd799439011",
"case": "507f1f77bcf86cd799439011"
},
"statusCode": 200,
"timestamp": "2026-01-15T10:15:00.000Z"
}