Modify work entry
Edits the provided fields of a work entry. Any fields that are not provided are left unchanged.
Omit type to keep the work entry at its current type. Provide type to convert the work entry, in which case 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. Work entries that have already been billed can still be edited, but this does not change any invoice that was already issued from them.
Modifying a work entry
Any fields that are not provided are left unchanged. Omittype to keep the work entry at its current type and correct individual fields:
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:
price for an entry that stays hourly, for example, is rejected with general/malformed-request.
wasBilled
field is read-only and is set by Infinity when the work is billed.Authorizations
API token for authentication. Obtain from your Infinity account settings.
Path Parameters
The id of the project the work entry belongs to.
The id of the specific work entry.
Body
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.
The kind of a work entry, which determines how it is valued:
hourlyis valued by an hourly rate and the time spentfixed-priceis valued by a fixed amount, e.g. for materials or lump sum workunbillablehas no value and cannot be billed
unbillable, fixed-price, hourly The date the work was performed on, in YYYY-MM-DD format.
The description of the work that was performed.
2000The amount in cents to invoice, for fixed-price work entries.
The hourly rate in cents, for hourly work entries.
The number of full hours spent, for hourly work entries.
The number of minutes spent in addition to hours, for hourly work entries.
Response
The changes were saved successfully.
A single unit of work that was performed on a project.