REST DocumentationProject TasksGET List tasks across all projects

List tasks across all projects

Returns the paginated list of every project task of the tenant, so a client does not have to read them project by project. Filter by project_id and by modified_after / modified_before. Rows are ordered by id unless orderBy says otherwise.

Availability: Full version only — a Clock instance answers 404 for this endpoint.

Request

GET /api/v1/project-tasks
curl --request GET \
     --url 'https://www.zep-online.de/zepinstanz/next/api/v1/project-tasks' \
     --header 'Accept: application/json' \
     --header 'Authorization: Bearer {token}'

Query parameters

  • Name
    perPage
    Type
    integer, nullable
    Description

    Ignored on this endpoint — send limit instead. Any value given here is replaced by limit, or by the default when limit is absent. Deprecated: it has no effect and goes away in v2.

  • Name
    page
    Type
    integer, nullable
    Description

    The page of results to return, counting from 1.

  • Name
    orderBy
    Type
    string, nullable
    Description

    Name of the field to sort by.

  • Name
    order
    Type
    string, nullable
    Description

    Sort direction, ascending or descending.

    One of: "asc", "desc"

  • Name
    limit
    Type
    integer, nullable
    Description

    The number of records per page, 1 to 200. Defaults to 15.

  • Name
    start_date
    Type
    string (date)
    Description

    Only return tasks that start on or after this day (Y-m-d); tasks without a start date are included.

  • Name
    end_date
    Type
    string (date)
    Description

    Only return tasks that end on or before this day (Y-m-d), not before start_date; tasks without an end date are included.

  • Name
    project_id
    Type
    integer, nullable
    Description

    Only return tasks of this project. An id that does not exist answers 422.

  • Name
    project_status_id
    Type
    string, nullable
    Description

    Only return tasks whose project has this project status, by its name.

  • Name
    project_start_date
    Type
    string (date-time)
    Description

    Only return tasks whose project starts on or after this day (Y-m-d).

  • Name
    project_end_date
    Type
    string (date-time)
    Description

    Only return tasks whose project ends on or before this day (Y-m-d).

  • Name
    project_department_id
    Type
    integer, nullable
    Description

    Only return tasks whose project belongs to the department with this id.

  • Name
    modified_after
    Type
    string (date-time)
    Description

    Only return records modified after this timestamp (ISO 8601, or “Y-m-d H:i:s”).

  • Name
    modified_before
    Type
    string (date-time)
    Description

    Only return records modified before or at this timestamp (ISO 8601, or “Y-m-d H:i:s”).

  • Name
    id[]
    Type
    array of integer
    Description

    Restrict the result to one or more record ids (id[]=1&id[]=2).

  • Name
    search
    Type
    string, nullable
    Description

    Only return tasks whose name or description contains this text (case-insensitive).

Response

{
  "data": [
    {
      "id": 1,
      "name": "EU",
      "status": "1",
      "description": "Angebot|en:offer",
      "parent_id": 1,
      "start_date": "2024-01-15T00:00:00.000000Z",
      "end_date": "2024-01-16T00:00:00.000000Z",
      "billing_type": {
        "id": 0,
        "name": "Like project"
      },
      "project_id": 16,
      "created": "2024-07-20T11:30:00.000000Z",
      "modified": "2024-07-20T12:30:00.000000Z",
      "plan_hours_children": 1.5,
      "plan_hours_done": 1.5,
      "plan_wage": 1.5,
      "plan_hours": 1.5,
      "plan_wage_children": 0,
      "plan_expenses": 1.5,
      "plan_expenses_children": 1.5,
      "note": "<p>Abnahme am Freitag</p><ul><li>Unterlagen mitbringen</li></ul>",
      "plan_hours_invoiced": 1.5,
      "order_number": "1",
      "tickets_import_mailbox_name": "Support",
      "all_project_employees": true,
      "activities": [
        "Beratung",
        "Entwicklung"
      ],
      "task_leads": [
        "anna.beispiel",
        "max.muster"
      ],
      "default_activity": "Beratung",
      "dynamicAttributes": [
        {
          "name": "Notfallkontakt",
          "value": "Max Mustermann (Bruder)",
          "type": "Text",
          "description": {
            "de": "Person, die im Notfall erreicht werden soll",
            "en": "Person to reach in an emergency",
            "fr": "Personne à joindre en cas d'urgence",
            "es": "Persona de contacto en caso de emergencia",
            "pl": "Osoba do kontaktu w nagłych wypadkach"
          }
        }
      ]
    }
  ],
  "links": {
    "first": "string",
    "last": "string",
    "prev": "string",
    "next": "string"
  },
  "meta": {
    "current_page": 1,
    "from": 1,
    "last_page": 1,
    "links": [
      {
        "url": "string",
        "label": "string",
        "active": true
      }
    ],
    "path": "string",
    "per_page": 1,
    "to": 1,
    "total": 1
  }
}

Response fields

  • Name
    id
    Type
    integer
    Description

    Unique identifier of the task.

  • Name
    name
    Type
    string
    Description

    Name of the task.

  • Name
    status
    Type
    string, nullable
    Description

    Identifier of the task’s current status, if the status could be resolved.

  • Name
    description
    Type
    string, nullable
    Description

    Free-text description of the task.

  • Name
    parent_id
    Type
    integer, nullable
    Description

    Identifier of the parent task, for a task nested under another one.

  • Name
    start_date
    Type
    string (date-time), nullable
    Description

    Date the task starts.

  • Name
    end_date
    Type
    string (date-time), nullable
    Description

    Date the task ends.

  • Name
    billing_type
    Type
    object, nullable
    Description

    How the task is billed: hourly rate, daily rate, flat rate, or the same as the project.

  • Name
    billing_type.id
    Type
    integer
    Description

    The stored value. Compare against this, not against name.

  • Name
    billing_type.name
    Type
    string
    Description

    The human-readable label, delivered in the tenant’s language. Do not parse it.

    One of: "Like project", "Stundensatz", "Tagessatz", "Pausch"

  • Name
    project_id
    Type
    integer
    Description

    Identifier of the project this task belongs to.

  • Name
    created
    Type
    string (date-time), nullable
    Description

    Date and time the task was created.

  • Name
    modified
    Type
    string (date-time), nullable
    Description

    Date and time the task was last modified.

  • Name
    plan_hours_children
    Type
    number, nullable
    Description

    Planned hours budgeted across this task’s subtasks.

  • Name
    plan_hours_done
    Type
    number, nullable
    Description

    Hours already recorded against the task.

  • Name
    plan_wage
    Type
    number, nullable
    Description

    Planned total wage cost budgeted for the task.

  • Name
    plan_hours
    Type
    number, nullable
    Description

    Planned total hours budgeted for the task.

  • Name
    plan_wage_children
    Type
    number, nullable
    Description

    Planned wage cost budgeted across this task’s subtasks.

  • Name
    plan_expenses
    Type
    number, nullable
    Description

    Planned receipts and mileage allowance budgeted for the task. Null when not maintained.

  • Name
    plan_expenses_children
    Type
    number
    Description

    Planned receipts and mileage allowance budgeted across this task’s subtasks, always a number.

  • Name
    note
    Type
    string, nullable
    Description

    Note on the task, as stored; may contain HTML. Null when none was ever stored; an emptied note is returned as stored, possibly an empty string.

  • Name
    plan_hours_invoiced
    Type
    number, nullable
    Description

    Hours already invoiced for the task.

  • Name
    order_number
    Type
    string, nullable
    Description

    Consecutive order number of the task, used for sorting.

  • Name
    tickets_import_mailbox_name
    Type
    string, nullable
    Description

    Name of the mailbox tickets are imported from into this task.

  • Name
    all_project_employees
    Type
    boolean
    Description

    Whether all employees of the project may book on the task. When true, no employees are assigned explicitly and the task’s employee list is empty; when false, only the listed employees may book.

  • Name
    activities
    Type
    array of object
    Description

    Short names of the task’s own activities. Empty when the task has none; then the project’s activities apply, or all of them when the project has none.

  • Name
    task_leads
    Type
    array of string
    Description

    Usernames of the task’s task leads, sorted alphabetically by username. Empty when the task has none. Adding or removing a task lead does not change modified of the task, so modified_after on the task list does not detect it.

  • Name
    default_activity
    Type
    string, nullable
    Description

    Short name of the activity preselected on bookings to the task, null when there is none.

  • Name
    dynamicAttributes
    Type
    array of DynamicAttribute
    Description

    Dynamic attributes configured for the task.

  • Name
    dynamicAttributes.name
    Type
    string
    Description

    Name of the dynamic attribute definition this value was entered for.

  • Name
    dynamicAttributes.value
    Type
    any
    Description

    The stored value; its shape depends on the neighbouring type field (a string, a number, a boolean, a date, an employee reference, or a list of option values).

  • Name
    dynamicAttributes.type
    Type
    string
    Description

    The data type of this attribute, e.g. text, number, date or options, which decides how to interpret value.

    One of: "Text", "Integer", "Float", "URL", "E-Mail", "Datum", "Uhrzeit", "Datetime", "Boolean", "Betrag", "Optionen", "Prozent", "Time period", "Textarea", "Users", "Upload"

  • Name
    dynamicAttributes.description
    Type
    object, nullable
    Description

    Explanation of what this attribute captures, as configured on its definition.

Generated from the OpenAPI specification — edit the source code, not this page.