POST

Workdiary.ProjectTime.List

List project_work_time rows for the logged-in user and project_id (Work diary project work category / timer table).

Permissions

  • User must be logged in with a valid bearer token.
  • Returned or changed records are limited by the user permissions, team access, folder access, and account settings.

Action

  • Runs the Workdiary.ProjectTime.List function and returns JSON.

Push Service

No push is sent because this function only reads data or returns helper information.

Automation

No automation is run for this function.

Special Instructions

  • Send the bearer token on protected calls with Authorization: Bearer YOUR TOKEN.
  • Send parameters as POST body fields exactly as documented.
  • For paging, do not request more than 25 rows.
  • For total rows, call the matching Count function with the same filters.

Required Parameters

No body parameters are required for this function.

Optional Parameters

NameTypeSampleWhat it gives
project_id
post
int10Project id. Defaults to 0.
limit
post
int25Maximum rows to return. Values above 25 are capped.

Authentication

Send the bearer token returned by Login in the request header.

Authorization: Bearer YOUR TOKEN

Sample Request

{
    "url": "\/app\/Workdiary.ProjectTime.List",
    "method": "POST",
    "headers": {
        "Authorization": "Bearer YOUR TOKEN"
    },
    "body": {
        "project_id": "10"
    },
    "url_user": "https:\/\/{user}.bull36.com\/app\/Workdiary.ProjectTime.List",
    "url_domain": "https:\/\/{domain}\/app\/Workdiary.ProjectTime.List"
}

Endpoint

POST /app/Workdiary.ProjectTime.List
POST https://{user}.bull36.com/app/Workdiary.ProjectTime.List
POST https://{domain}/app/Workdiary.ProjectTime.List

Sample Output

{
    "success": 1,
    "count": 1,
    "data": [
        {
            "time_spend_name": "dev",
            "work_time": "01:00"
        }
    ]
}

Count Only

Use the matching count route with the same filters when the UI only needs total rows for paging.

{
    "url": "\/app\/Workdiary.ProjectTime.Count",
    "url_user": "https:\/\/{user}.bull36.com\/app\/Workdiary.ProjectTime.Count",
    "url_domain": "https:\/\/{domain}\/app\/Workdiary.ProjectTime.Count",
    "method": "POST",
    "headers": {
        "Authorization": "Bearer YOUR TOKEN"
    },
    "body": {
        "project_id": "10"
    },
    "sample_output": {
        "success": 1,
        "count": 123
    },
    "notes": {
        "count": "Use the matching count route when available, or count returned rows.",
        "max_limit": 25
    }
}

Count JavaScript

const token = 'YOUR TOKEN';
const body = new URLSearchParams();
body.set('project_id', '10');

const res = await fetch('https://{domain}/app/Workdiary.ProjectTime.Count', {
  method: 'POST',
  headers: { Authorization: `Bearer ${token}` },
  body
});
const data = await res.json();
console.log(data.count);

JavaScript Example

const token = 'YOUR TOKEN';
const body = new URLSearchParams({ project_id: '10' });
const res = await fetch('/app/Workdiary.ProjectTime.List', { method: 'POST', headers: { Authorization: 'Bearer ' + token }, body });
console.log(await res.json());

Error Example

{
    "success": 0,
    "message": "You have no permission to open Work diary"
}