OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/docs/api/apiv3/components/schemas/time_entry_model.yml

106 lines
2.7 KiB

# Schema: Time_EntryModel
---
type: object
properties:
id:
type: integer
description: Time entries' id
readOnly: true
minimum: 0
exclusiveMinimum: true
comment:
type: string
description: A text provided by the user detailing the time entry
spentOn:
type: string
format: date
description: The date the expenditure is booked for
hours:
type: string
format: date
description: The time quantifying the expenditure
createdAt:
type: string
format: date-time
description: The time the time entry was created
readOnly: true
updatedAt:
type: string
format: date-time
description: The time the time entry was last updated
readOnly: true
_links:
type: object
required:
- self
- project
- user
- activity
properties:
updateImmediately:
allOf:
- "$ref": "./link.yml"
- description: |-
Directly perform edits on this time entry
# Conditions
**Permission**: 'edit time entries' or 'edit own time entries' if the time entry belongs to the user
readOnly: true
update:
allOf:
- "$ref": "./link.yml"
- description: |-
Form endpoint that aids in preparing and performing edits on a TimeEntry
# Conditions
**Permission**: 'edit time entries' or 'edit own time entries' if the time entry belongs to the user
readOnly: true
delete:
allOf:
- "$ref": "./link.yml"
- description: |-
Delete this time entry
# Conditions
**Permission**: 'edit time entries' or 'edit own time entries' if the time entry belongs to the user
readOnly: true
self:
allOf:
- "$ref": "./link.yml"
- description: |-
This time entry
**Resource**: TimeEntry
readOnly: true
project:
allOf:
- "$ref": "./link.yml"
- description: |-
The project the time entry is bundled in. The project might be different from the work package's project once the workPackage is moved.
**Resource**: Project
workPackage:
allOf:
- "$ref": "./link.yml"
- description: |-
The work package the time entry is created on
**Resource**: WorkPackage
user:
allOf:
- "$ref": "./link.yml"
- description: |-
The user the time entry tracks expenditures for
**Resource**: User
readOnly: true
activity:
allOf:
- "$ref": "./link.yml"
- description: |-
The time entry activity the time entry is categorized as
**Resource**: TimeEntriesActivity