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

Supported Formats

json

Examples

POST /api/v1/time_entries/95/comments
{
  "comment": {
    "content": "Comment😊"
  }
}
200
{
  "id": 95,
  "started_at": "2025-08-13T09:05:54.000+09:00",
  "stopped_at": "2025-08-13T10:05:54.000+09:00",
  "time_trackable_id": 1037,
  "time_trackable_type": "Task",
  "time_tracker_id": 272,
  "time_tracker_type": "User",
  "created_at": "2025-08-13T09:05:54.000+09:00",
  "updated_at": "2025-08-13T09:05:54.000+09:00",
  "deleted_at": null,
  "duration": 3600.0,
  "amount": 0,
  "team_id": 477,
  "input_type": "realtime",
  "stopped_at_seconds": 1755047154,
  "deleted_at_seconds": 0,
  "external_identifier": null,
  "external_provider": "none",
  "formatted_duration": "01:00",
  "html_url": "http://test.host/app/mytasks/1037/edit",
  "user": {
    "id": 272,
    "nickname": "Kimberley Gislason",
    "image": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50",
    "created_at": "2025-08-13T09:05:54.000+09:00",
    "updated_at": "2025-08-13T09:05:54.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-08-13T09:05:54.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-08-13T09:05:54.000+09:00",
    "id": 1037,
    "key": "http://king-gutmann.example/leandro",
    "title": "Aut officia iure omnis.",
    "url": "http://king-gutmann.example/leandro",
    "team_id": 477,
    "created_at": "2025-08-13T09:05:54.000+09:00",
    "deleted_at": null,
    "description": null,
    "category": {
      "id": 1036,
      "key": "key66",
      "title": "key66",
      "url": null,
      "team_id": 477,
      "created_at": "2025-08-13T09:05:54.000+09:00",
      "updated_at": "2025-08-13T09:05:54.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": "1036",
    "ancestry_depth": 1,
    "closed_at": null,
    "color": 1,
    "position": null,
    "deleted_at_seconds": 0,
    "key_md5": "b9b46516b80c888b095832f30d1ad979",
    "archived": false,
    "category_id": 1036,
    "ancestry_path": "/1036/",
    "selectable": true,
    "team": {
      "id": 477,
      "name": "Vermont horses",
      "created_at": "2025-08-13T09:05:54.000+09:00",
      "updated_at": "2025-08-13T09:05:54.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": 495,
      "tasks_readonly": false,
      "rounding": "floor",
      "capacity": null,
      "premium": false,
      "personal": false
    }
  },
  "comment": {
    "id": 1,
    "content": "Comment😊",
    "commentable_id": 95,
    "commentable_type": "ActsAsTimeTrackable::ActiveRecordStores::TimeEntry",
    "user_id": 272,
    "created_at": "2025-08-13T09:05:54.000+09:00",
    "updated_at": "2025-08-13T09:05:54.000+09:00",
    "deleted_at": null
  },
  "team": {
    "id": 477,
    "name": "Vermont horses",
    "created_at": "2025-08-13T09:05:54.000+09:00",
    "updated_at": "2025-08-13T09:05:54.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": 495,
    "tasks_readonly": false,
    "rounding": "floor",
    "capacity": null,
    "premium": false,
    "personal": false
  },
  "category": {
    "id": 1036,
    "key": "key66",
    "title": "key66",
    "url": null,
    "team_id": 477,
    "created_at": "2025-08-13T09:05:54.000+09:00",
    "updated_at": "2025-08-13T09:05:54.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
  }
}
POST /api/v1/time_entries/96/comments
{
  "comment": {
    "content": "Comment_2"
  }
}
200
{
  "id": 96,
  "started_at": "2025-08-13T09:05:54.000+09:00",
  "stopped_at": "2025-08-13T10:05:54.000+09:00",
  "time_trackable_id": 1040,
  "time_trackable_type": "Task",
  "time_tracker_id": 273,
  "time_tracker_type": "User",
  "created_at": "2025-08-13T09:05:54.000+09:00",
  "updated_at": "2025-08-13T09:05:55.000+09:00",
  "deleted_at": null,
  "duration": 3600.0,
  "amount": 0,
  "team_id": 478,
  "input_type": "realtime",
  "stopped_at_seconds": 1755047154,
  "deleted_at_seconds": 0,
  "external_identifier": null,
  "external_provider": "none",
  "formatted_duration": "01:00",
  "html_url": "http://test.host/app/mytasks/1040/edit",
  "user": {
    "id": 273,
    "nickname": "Starr Koepp DC",
    "image": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50",
    "created_at": "2025-08-13T09:05:54.000+09:00",
    "updated_at": "2025-08-13T09:05:55.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-08-13T09:05:54.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-08-13T09:05:55.000+09:00",
    "id": 1040,
    "key": "http://corkery-hermiston.test/elmer",
    "title": "Voluptas vel nulla doloribus.",
    "url": "http://corkery-hermiston.test/elmer",
    "team_id": 478,
    "created_at": "2025-08-13T09:05:54.000+09:00",
    "deleted_at": null,
    "description": null,
    "category": {
      "id": 1039,
      "key": "key67",
      "title": "key67",
      "url": null,
      "team_id": 478,
      "created_at": "2025-08-13T09:05:54.000+09:00",
      "updated_at": "2025-08-13T09:05:55.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": "1039",
    "ancestry_depth": 1,
    "closed_at": null,
    "color": 1,
    "position": null,
    "deleted_at_seconds": 0,
    "key_md5": "422024e6ad0f3a1ab392ec3bb7bfbae5",
    "archived": false,
    "category_id": 1039,
    "ancestry_path": "/1039/",
    "selectable": true,
    "team": {
      "id": 478,
      "name": "Indiana sons",
      "created_at": "2025-08-13T09:05:54.000+09:00",
      "updated_at": "2025-08-13T09:05:55.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": 496,
      "tasks_readonly": false,
      "rounding": "floor",
      "capacity": null,
      "premium": false,
      "personal": false
    }
  },
  "comment": {
    "id": 2,
    "content": "Comment_2",
    "commentable_id": 96,
    "commentable_type": "ActsAsTimeTrackable::ActiveRecordStores::TimeEntry",
    "user_id": 273,
    "created_at": "2025-08-13T09:05:55.000+09:00",
    "updated_at": "2025-08-13T09:05:55.000+09:00",
    "deleted_at": null
  },
  "team": {
    "id": 478,
    "name": "Indiana sons",
    "created_at": "2025-08-13T09:05:54.000+09:00",
    "updated_at": "2025-08-13T09:05:55.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": 496,
    "tasks_readonly": false,
    "rounding": "floor",
    "capacity": null,
    "premium": false,
    "personal": false
  },
  "category": {
    "id": 1039,
    "key": "key67",
    "title": "key67",
    "url": null,
    "team_id": 478,
    "created_at": "2025-08-13T09:05:54.000+09:00",
    "updated_at": "2025-08-13T09:05:55.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
  }
}