PHPR API (3.7.0)

Download OpenAPI specification:

PHPR API USING API-PLATFORM

timesheets

Creates a timesheets resource.

Creates a timesheets resource.

Authorizations:
JWT
path Parameters
id
required
string

timesheets identifier

Request Body schema:
required

The new timesheets resource

entryMode
required
string <iri-reference>

Get timesheetsEntryModesId.

timestamp
required
string <date-time>
chargingInvoices
Array of strings <iri-reference> [ items <iri-reference > ]
chargingProjects
Array of strings <iri-reference> [ items <iri-reference > ]
employee
required
string <iri-reference>

Get employesId.

task
required
string <iri-reference>

Get tasks.

chargeable
required
boolean
Default: true
datetimeStart
required
string <date-time>
datetimeEnd
string or null <date-time>
description
string or null
status
required
string <iri-reference>

Get status.

ratio
required
string
Default: 1
type
required
string <iri-reference>

Get timesheetsTypesId.

notes
string or null
owningCorporation
string <iri-reference>
deletedAt
string or null <date-time>
slug
required
string

DB Identifier

customProperties
any

Can contain anything (array, objects, nested objects...).

customData
Array of strings or null
createdAt
string <date-time>
updatedAt
string <date-time>
disabledAt
string or null <date-time>
object (Collection.jsonld)
upload_filename
string
upload_subfolder
string
upload_file
string
upload_file_link
string
timesheetsEntryMode
integer

Get timesheetsEntryModesId.

upload_Subfolder
string
upload_File
string
upload_File_Link
string

Responses

Request samples

Content type
{
  • "entryMode": "https://example.com/",
  • "timestamp": "2019-08-24T14:15:22Z",
  • "chargingInvoices": [],
  • "chargingProjects": [],
  • "employee": "https://example.com/",
  • "chargeable": true,
  • "datetimeStart": "2019-08-24T14:15:22Z",
  • "datetimeEnd": "2019-08-24T14:15:22Z",
  • "description": "string",
  • "ratio": 1,
  • "notes": "string",
  • "owningCorporation": "https://example.com/",
  • "deletedAt": "2019-08-24T14:15:22Z",
  • "slug": "string",
  • "customProperties": null,
  • "customData": [
    ],
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "disabledAt": "2019-08-24T14:15:22Z",
  • "entityFiles": { },
  • "upload_filename": "string",
  • "upload_subfolder": "string",
  • "upload_file": "string",
  • "upload_file_link": "string",
  • "timesheetsEntryMode": 0,
  • "upload_Subfolder": "string",
  • "upload_File": "string",
  • "upload_File_Link": "string"
}

Response samples

Content type
{
  • "@context": "string",
  • "@id": "string",
  • "@type": "string",
  • "entryMode": {
    },
  • "timestamp": "2019-08-24T14:15:22Z",
  • "employee": {
    },
  • "task": {
    },
  • "chargeable": true,
  • "datetimeStart": "2019-08-24T14:15:22Z",
  • "datetimeEnd": "2019-08-24T14:15:22Z",
  • "description": "string",
  • "status": {
    },
  • "ratio": 1,
  • "type": {
    },
  • "notes": "string",
  • "owningCorporation": {
    },
  • "shortcode": "TS",
  • "deletedAt": "2019-08-24T14:15:22Z",
  • "id": 0,
  • "slug": "string",
  • "customData": [
    ],
  • "createdAt": "2019-08-24T14:15:22Z",
  • "updatedAt": "2019-08-24T14:15:22Z",
  • "disabledAt": "2019-08-24T14:15:22Z",
  • "toString": "string",
  • "chargingProjectsListing": "string",
  • "chargingInvoicesListing": "string",
  • "payrollsListing": "string",
  • "timesheetsEntryMode": 0,
  • "timesheetTotalHours": 0,
  • "timesheetInProgress": true,
  • "customPropertiesListing": "string",
  • "anonymousToken": "string",
  • "uniqueId": "string",
  • "taggingListing": "string",
  • "enabled": true,
  • "disabled": true
}