Create a time entry
Headers
-
Content-Type string
-
Accept string
Body Required
-
The type of the model that is being tracked.. Valid types are: client, board_task, case, firm, task
-
The UUID of the model that is being tracked
-
The name of the time entry.
-
start_date date
The start time of the time entry.
-
end_date date
The end time of the time entry.
-
total_time_in_minutes integer
The length of the time entry, can be used instead of dates.
POST /api/v1/time-entry
curl \
-X POST https://api.plannrcrm.com/api/v1/time-entry \
-H "Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"trackable_type":"Client","trackable_uuid":"4c011ec0-2831-4547-891e-94fa93ce6da0","name":"Research","start_date":"2024-11-20T12:39:02+00:00","end_date":"2024-11-20T13:24:02+00:00","total_time_in_minutes":200}'
Request examples
# Headers
Authorization: Bearer {OAUTH_ACCESS_TOKEN or PERSONAL_ACCESS_TOKEN}
Content-Type: application/json
Accept: application/json
# Payload
{
"trackable_type": "Client",
"trackable_uuid": "4c011ec0-2831-4547-891e-94fa93ce6da0",
"name": "Research",
"start_date": "2024-11-20T12:39:02+00:00",
"end_date": "2024-11-20T13:24:02+00:00",
"total_time_in_minutes": 200
}
Response examples (200)
{
"name": "Research",
"uuid": "33b44940-1d85-4733-9b0d-ffc9374c0d72",
"end_date": "2024-11-20T13:24:02+00:00",
"is_active": "1",
"trackable": "Client",
"start_date": "2024-11-20T13:24:02+00:00"
}