Create a time entry

POST /api/v1/time-entry

Headers

application/json

Body Required

  • trackable_type string Required

    The type of the model that is being tracked.. Valid types are: client, board_task, case, firm, task

  • trackable_uuid string Required

    The UUID of the model that is being tracked

  • name string Required

    The name of the time entry.

  • The start time of the time entry.

  • The end time of the time entry.

  • The length of the time entry, can be used instead of dates.

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • uuid string

      The UUID of the time entry.

    • The model that is being tracked.

    • name string

      The name of the time entry.

    • The start time of the time entry.

    • end_date string

      The end time of the time entry.

    • Determines if the time entry is currently ongoing.

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":"8ecd1149-fb73-4877-bece-0e1be601f54f","name":"Research","start_date":"2024-10-16T10:25:15+01:00","end_date":"2024-10-16T11:10:15+01: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": "8ecd1149-fb73-4877-bece-0e1be601f54f",
  "name": "Research",
  "start_date": "2024-10-16T10:25:15+01:00",
  "end_date": "2024-10-16T11:10:15+01:00",
  "total_time_in_minutes": 200
}
Response examples (200)
{
  "name": "Research",
  "uuid": "eca47b60-0a68-4697-ab14-48ef5ab9abcd",
  "end_date": "2024-10-16T11:10:15+01:00",
  "is_active": "1",
  "trackable": "Client",
  "start_date": "2024-10-16T11:10:15+01:00"
}