POST
/
v2
/
time-entry
curl --request POST \
  --url https://api.sonderplan.com/v2/time-entry \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "owner_id": 872383,
  "owner": {
    "first_name": "Jane",
    "last_name": "Smith",
    "primary_email": "[email protected]",
    "icon": {
      "id": 2390323,
      "name": "SCR-20250220-jnua",
      "alias": "030fb130bdf3c6cd5fa533fabb26fc9d90b66542cd343a318b2bfe5474923f90",
      "extension": "jpeg",
      "mime_type": "image/jpeg"
    }
  },
  "name": "Colour Grading",
  "description": "Opening scenes completed",
  "start": 1547501100,
  "end": 1547538900,
  "start_date_time_iso": "2022-02-22T09:00:00+11:00",
  "end_date_time_iso": "2022-02-22T17:00:00+11:00",
  "project": [
    {
      "id": 2342354
    }
  ],
  "booking": [
    {
      "id": 1,
      "name": "Test Booking",
      "start": 1547501100,
      "end": 1547538900,
      "resources": [
        {
          "id": 9458
        }
      ]
    }
  ],
  "billable": "false",
  "locked": "false"
}'
{
  "success": {
    "id": 2384
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Stores time entries on bookings and projects

owner_id
integer
required

ID of the user that owns this time entry

Example:

872383

name
string
required

Name of the activity that is being worked on

Example:

"Colour Grading"

start
integer
required

Unix Time Entry Start

Example:

1547501100

owner
object

User that owns this time entry

description
string

Short description or notes about what was worked on

Example:

"Opening scenes completed"

end
integer

Unix Time Entry End

Example:

1547538900

start_date_time_iso
string

ISO-8601 formatted result of the time entry start

Example:

"2022-02-22T09:00:00+11:00"

end_date_time_iso
string

ISO-8601 formatted result of the time entry end

Example:

"2022-02-22T17:00:00+11:00"

project
object[]

Simplified project model containing only a subset of fields

booking
object[]

Standrd booking model summarised

billable
boolean

Is the time tracked billable?

Example:

"false"

locked
boolean

Is this time entry locked for further changes?

Example:

"false"

Response

200
application/json
Successful Operation
success
object