LeanLaw Developer Platform
LeanLaw API

TimeEntry

Endpoint:https://api.leanlaw.io

Get a list of time entries

GET
https://api.leanlaw.io
/v2/time-entries

Get a list of time entriesquery Parameters

  • startDatestring · date

    Only return time entries that are dated after or including this date

  • endDatestring · date

    Only return time entries that are dated before or including this date

  • userIdstring · uuid

    Only return time entries that are associated with this user

  • matterIdstring · uuid

    Only return time entries that are associated with this matter

  • clientIdstring · uuid

    Only return time entries that are associated with this client

  • sortstring

    Sorting parameters for time entries. Supported sort fields: date, hours, description, created Example: -date,hours sorts by date descending, then hours ascending

  • billingTypestring · enum

    Billing type

    Enum values:
    nonBillable
    billable
    fixedFee
  • selectstring

    Used to include additional detail in the response with a comma separated list of object identifiers.. Fields can be prefixed with a minus sign to exclude them. Supported fields: client, matter, user, meta

  • billedboolean

    Billed - if true, time entry is part of an invoice, if false it is not

  • limitinteger · int32

    Maximum number of items to return (default: 1000)

  • offsetinteger · int32

    Number of items to offset (default: 0)

  • modifiedSincestring · date-time

    Only return results that have the ModifiedDate property after this date and time (optional)

Get a list of time entriesResponses

OK

  • dataarray | null

    The list of items returned by the API

  • paginationobject

    Pagination information


Create a new time entry

POST
https://api.leanlaw.io
/v2/time-entries

Create a new time entryRequest Body

  • matterIdstring · uuid · required

    The matter is required.

  • datestring · date · required

    The date of the time entry. Required

  • descriptionstring · minLength: 1 · required

    The description of the time entry. Required

  • hoursnumber · double · required

    The number of hours for the time entry. Required

  • userIdstring · uuid

    The user who created the time entry. This is required unless the userId is provided in the request header.

  • ratenumber | null · double

    The rate of the time entry. If not provided, the rate for the user will be used. In most scenarios the rate should not be provided directly here.

  • billingTypestring · enum
    Enum values:
    nonBillable
    billable
    fixedFee
  • activityCodestring | null

    LEDES activity code

  • taskCodestring | null

    LEDES task code

Create a new time entryResponses

OK

  • dataobject

Get a time entry by id

GET
https://api.leanlaw.io
/v2/time-entries/{id}

Get a time entry by idpath Parameters

  • idstring · uuid · required

    The id of the time entry

Get a time entry by idResponses

OK

  • dataobject

Update a time entry

PUT
https://api.leanlaw.io
/v2/time-entries/{id}

Updating a time entry is only possible if it has not been billed (added to an invoice). The update is "sparse", where only the fields that are provided in the request will be updated.

Update a time entrypath Parameters

  • idstring · uuid · required

    The id of the time entry to update

Update a time entryRequest Body

  • userIdstring | null · uuid

    Update the user of the time entry.

  • matterIdstring | null · uuid

    Update the matter of the time entry.

  • datestring | null · date

    Update the date of the time entry

  • descriptionstring | null

    Update the description of the time entry, provide null to keep the current description

  • hoursnumber | null · double

    Update the hours of the time entry, provide null to keep the current hours

  • ratenumber | null · double

    The rate of the time entry.

  • billingTypestring · enum
    Enum values:
    nonBillable
    billable
    fixedFee
  • activityCodestring | null

    LEDES activity code

  • taskCodestring | null

    LEDES task code

Update a time entryResponses

OK

No data returned

Delete a time entry

DELETE
https://api.leanlaw.io
/v2/time-entries/{id}

Deleting a time entry will remove it from the system permanently. Time entries that have been billed (added to an invoice) cannot be deleted.

Delete a time entrypath Parameters

  • idstring · uuid · required

    The id of the time entry to delete

Delete a time entryResponses

OK

No data returned