※ 現在APIはベータ版です。仕様が変更になる可能性がありますのでご了承ください。

Supported Formats

json

Examples

POST /api/v1/time_entries/811/comments
{
  "comment": {
    "content": "Comment😊"
  }
}
200
{
  "id": 811,
  "started_at": "2025-10-02T10:16:07.000+09:00",
  "stopped_at": "2025-10-02T11:16:07.000+09:00",
  "time_trackable_id": 1307,
  "time_trackable_type": "Task",
  "time_tracker_id": 689,
  "time_tracker_type": "User",
  "created_at": "2025-10-02T10:16:07.000+09:00",
  "updated_at": "2025-10-02T10:16:07.000+09:00",
  "deleted_at": null,
  "duration": 3600.0,
  "amount": 0,
  "team_id": 502,
  "input_type": "realtime",
  "stopped_at_seconds": 1759371367,
  "deleted_at_seconds": 0,
  "external_identifier": null,
  "external_provider": "none",
  "formatted_duration": "01:00",
  "html_url": "http://test.host/app/mytasks/1307/edit",
  "user": {
    "id": 689,
    "nickname": "Saran Bauch",
    "image": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50",
    "created_at": "2025-10-02T10:16:06.000+09:00",
    "updated_at": "2025-10-02T10:16:07.000+09:00",
    "deleted_at": null,
    "avatar": null,
    "daily": true,
    "daily_time": "2000-01-01T17:00:00.000+09:00",
    "weekly": true,
    "time_zone": "Tokyo",
    "locale": "en",
    "domain": "timecrowd.net",
    "reset_password_sent_at": null,
    "remember_created_at": null,
    "sign_in_count": 0,
    "current_sign_in_at": null,
    "last_sign_in_at": null,
    "confirmed_at": "2025-10-02T10:16:06.000+09:00",
    "confirmation_sent_at": null,
    "deactivated_at": null,
    "calendar_zoom_rate": 1,
    "avatar_url": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50"
  },
  "task": {
    "state": "open",
    "updated_at": "2025-10-02T10:16:07.000+09:00",
    "id": 1307,
    "key": "http://lueilwitz-wuckert.test/hattie.pagac",
    "title": "Dolor non dolorem assumenda.",
    "url": "http://lueilwitz-wuckert.test/hattie.pagac",
    "team_id": 502,
    "created_at": "2025-10-02T10:16:07.000+09:00",
    "deleted_at": null,
    "description": null,
    "category": {
      "id": 1306,
      "key": "key66",
      "title": "key66",
      "url": null,
      "team_id": 502,
      "created_at": "2025-10-02T10:16:07.000+09:00",
      "updated_at": "2025-10-02T10:16:07.000+09:00",
      "deleted_at": null,
      "description": null,
      "category": true,
      "sequential_id": null,
      "state": "open",
      "bill": 0,
      "ancestry": null,
      "ancestry_depth": 0,
      "closed_at": null,
      "color": 1,
      "position": 2,
      "deleted_at_seconds": 0,
      "key_md5": "cacdcd15544512fd8e50f2417c5f33aa",
      "archived": false,
      "category_id": null,
      "ancestry_path": "/",
      "selectable": true
    },
    "sequential_id": null,
    "bill": 0,
    "ancestry": "1306",
    "ancestry_depth": 1,
    "closed_at": null,
    "color": 1,
    "position": null,
    "deleted_at_seconds": 0,
    "key_md5": "d3208680cccec12c7ced11c6bb77b58c",
    "archived": false,
    "category_id": 1306,
    "ancestry_path": "/1306/",
    "selectable": true,
    "team": {
      "id": 502,
      "name": "Rhode Island birds",
      "created_at": "2025-10-02T10:16:06.000+09:00",
      "updated_at": "2025-10-02T10:16:07.000+09:00",
      "deleted_at": null,
      "time_limit": 0,
      "avatar": null,
      "ancestry": null,
      "hierarchized": false,
      "default_duration": 15,
      "tasks_readonly_role": "none",
      "workspaces_workspace_id": 618,
      "tasks_readonly": false,
      "rounding": "floor",
      "capacity": null,
      "premium": false,
      "personal": false
    }
  },
  "comment": {
    "id": 64,
    "content": "Comment😊",
    "commentable_id": 811,
    "commentable_type": "ActsAsTimeTrackable::ActiveRecordStores::TimeEntry",
    "user_id": 689,
    "created_at": "2025-10-02T10:16:07.000+09:00",
    "updated_at": "2025-10-02T10:16:07.000+09:00",
    "deleted_at": null
  },
  "team": {
    "id": 502,
    "name": "Rhode Island birds",
    "created_at": "2025-10-02T10:16:06.000+09:00",
    "updated_at": "2025-10-02T10:16:07.000+09:00",
    "deleted_at": null,
    "time_limit": 0,
    "avatar": null,
    "ancestry": null,
    "hierarchized": false,
    "default_duration": 15,
    "tasks_readonly_role": "none",
    "workspaces_workspace_id": 618,
    "tasks_readonly": false,
    "rounding": "floor",
    "capacity": null,
    "premium": false,
    "personal": false
  },
  "category": {
    "id": 1306,
    "key": "key66",
    "title": "key66",
    "url": null,
    "team_id": 502,
    "created_at": "2025-10-02T10:16:07.000+09:00",
    "updated_at": "2025-10-02T10:16:07.000+09:00",
    "deleted_at": null,
    "description": null,
    "category": true,
    "sequential_id": null,
    "state": "open",
    "bill": 0,
    "ancestry": null,
    "ancestry_depth": 0,
    "closed_at": null,
    "color": 1,
    "position": 2,
    "deleted_at_seconds": 0,
    "key_md5": "cacdcd15544512fd8e50f2417c5f33aa",
    "archived": false,
    "category_id": null,
    "ancestry_path": "/",
    "selectable": true
  },
  "is_new_task": null
}
POST /api/v1/time_entries/812/comments
{
  "comment": {
    "content": "Comment_2"
  }
}
200
{
  "id": 812,
  "started_at": "2025-10-02T10:16:07.000+09:00",
  "stopped_at": "2025-10-02T11:16:07.000+09:00",
  "time_trackable_id": 1310,
  "time_trackable_type": "Task",
  "time_tracker_id": 690,
  "time_tracker_type": "User",
  "created_at": "2025-10-02T10:16:07.000+09:00",
  "updated_at": "2025-10-02T10:16:07.000+09:00",
  "deleted_at": null,
  "duration": 3600.0,
  "amount": 0,
  "team_id": 503,
  "input_type": "realtime",
  "stopped_at_seconds": 1759371367,
  "deleted_at_seconds": 0,
  "external_identifier": null,
  "external_provider": "none",
  "formatted_duration": "01:00",
  "html_url": "http://test.host/app/mytasks/1310/edit",
  "user": {
    "id": 690,
    "nickname": "Dwayne Ferry",
    "image": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50",
    "created_at": "2025-10-02T10:16:07.000+09:00",
    "updated_at": "2025-10-02T10:16:07.000+09:00",
    "deleted_at": null,
    "avatar": null,
    "daily": true,
    "daily_time": "2000-01-01T17:00:00.000+09:00",
    "weekly": true,
    "time_zone": "Tokyo",
    "locale": "en",
    "domain": "timecrowd.net",
    "reset_password_sent_at": null,
    "remember_created_at": null,
    "sign_in_count": 0,
    "current_sign_in_at": null,
    "last_sign_in_at": null,
    "confirmed_at": "2025-10-02T10:16:07.000+09:00",
    "confirmation_sent_at": null,
    "deactivated_at": null,
    "calendar_zoom_rate": 1,
    "avatar_url": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50"
  },
  "task": {
    "state": "open",
    "updated_at": "2025-10-02T10:16:07.000+09:00",
    "id": 1310,
    "key": "http://bruen-marvin.test/madelene",
    "title": "Placeat animi perspiciatis architecto.",
    "url": "http://bruen-marvin.test/madelene",
    "team_id": 503,
    "created_at": "2025-10-02T10:16:07.000+09:00",
    "deleted_at": null,
    "description": null,
    "category": {
      "id": 1309,
      "key": "key67",
      "title": "key67",
      "url": null,
      "team_id": 503,
      "created_at": "2025-10-02T10:16:07.000+09:00",
      "updated_at": "2025-10-02T10:16:07.000+09:00",
      "deleted_at": null,
      "description": null,
      "category": true,
      "sequential_id": null,
      "state": "open",
      "bill": 0,
      "ancestry": null,
      "ancestry_depth": 0,
      "closed_at": null,
      "color": 1,
      "position": 2,
      "deleted_at_seconds": 0,
      "key_md5": "2b5103582df79747d3978ada467a799e",
      "archived": false,
      "category_id": null,
      "ancestry_path": "/",
      "selectable": true
    },
    "sequential_id": null,
    "bill": 0,
    "ancestry": "1309",
    "ancestry_depth": 1,
    "closed_at": null,
    "color": 1,
    "position": null,
    "deleted_at_seconds": 0,
    "key_md5": "4eaa1aa498a8d240560b2b31d6080e95",
    "archived": false,
    "category_id": 1309,
    "ancestry_path": "/1309/",
    "selectable": true,
    "team": {
      "id": 503,
      "name": "Massachusetts conspirators",
      "created_at": "2025-10-02T10:16:07.000+09:00",
      "updated_at": "2025-10-02T10:16:07.000+09:00",
      "deleted_at": null,
      "time_limit": 0,
      "avatar": null,
      "ancestry": null,
      "hierarchized": false,
      "default_duration": 15,
      "tasks_readonly_role": "none",
      "workspaces_workspace_id": 619,
      "tasks_readonly": false,
      "rounding": "floor",
      "capacity": null,
      "premium": false,
      "personal": false
    }
  },
  "comment": {
    "id": 65,
    "content": "Comment_2",
    "commentable_id": 812,
    "commentable_type": "ActsAsTimeTrackable::ActiveRecordStores::TimeEntry",
    "user_id": 690,
    "created_at": "2025-10-02T10:16:07.000+09:00",
    "updated_at": "2025-10-02T10:16:07.000+09:00",
    "deleted_at": null
  },
  "team": {
    "id": 503,
    "name": "Massachusetts conspirators",
    "created_at": "2025-10-02T10:16:07.000+09:00",
    "updated_at": "2025-10-02T10:16:07.000+09:00",
    "deleted_at": null,
    "time_limit": 0,
    "avatar": null,
    "ancestry": null,
    "hierarchized": false,
    "default_duration": 15,
    "tasks_readonly_role": "none",
    "workspaces_workspace_id": 619,
    "tasks_readonly": false,
    "rounding": "floor",
    "capacity": null,
    "premium": false,
    "personal": false
  },
  "category": {
    "id": 1309,
    "key": "key67",
    "title": "key67",
    "url": null,
    "team_id": 503,
    "created_at": "2025-10-02T10:16:07.000+09:00",
    "updated_at": "2025-10-02T10:16:07.000+09:00",
    "deleted_at": null,
    "description": null,
    "category": true,
    "sequential_id": null,
    "state": "open",
    "bill": 0,
    "ancestry": null,
    "ancestry_depth": 0,
    "closed_at": null,
    "color": 1,
    "position": 2,
    "deleted_at_seconds": 0,
    "key_md5": "2b5103582df79747d3978ada467a799e",
    "archived": false,
    "category_id": null,
    "ancestry_path": "/",
    "selectable": true
  },
  "is_new_task": null
}