Skip to main content
PATCH

Modifying a work entry

Any fields that are not provided are left unchanged. Omit type to keep the work entry at its current type and correct individual fields:
Provide type to convert a work entry into another type. The fields of the new type must be provided as well, and the fields of the previous type are discarded:
Only fields belonging to the resulting type may be sent. Sending a price for an entry that stays hourly, for example, is rejected with general/malformed-request.
Work entries that have already been billed can still be edited, but this does not change any invoice that was already issued from them. The wasBilled field is read-only and is set by Infinity when the work is billed.

Authorizations

x-api-token
string
header
required

API token for authentication. Obtain from your Infinity account settings.

Path Parameters

projectId
string
required

The id of the project the work entry belongs to.

workEntryId
string
required

The id of the specific work entry.

Body

application/json

The changes to apply to the work entry.

Request body for modifying a work entry. All fields are optional. Only fields belonging to the resulting type may be sent.

type
enum<string>

The kind of a work entry, which determines how it is valued:

  • hourly is valued by an hourly rate and the time spent
  • fixed-price is valued by a fixed amount, e.g. for materials or lump sum work
  • unbillable has no value and cannot be billed
Available options:
unbillable,
fixed-price,
hourly
date
string<date>

The date the work was performed on, in YYYY-MM-DD format.

description
string

The description of the work that was performed.

Maximum string length: 2000
price
integer

The amount in cents to invoice, for fixed-price work entries.

rate
integer

The hourly rate in cents, for hourly work entries.

hours
integer

The number of full hours spent, for hourly work entries.

minutes
integer

The number of minutes spent in addition to hours, for hourly work entries.

Response

The changes were saved successfully.

workEntry
WorkEntry · object

A single unit of work that was performed on a project.