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

Supported Formats

json

Examples

POST /api/v1/time_entries/18/comments
{
  "comment": {
    "content": "Comment😊"
  }
}
200
{
  "id": 18,
  "started_at": "2025-06-02T16:24:58.000+09:00",
  "stopped_at": "2025-06-02T17:24:58.000+09:00",
  "time_trackable_id": 188,
  "time_trackable_type": "Task",
  "time_tracker_id": 82,
  "time_tracker_type": "User",
  "created_at": "2025-06-02T16:24:58.000+09:00",
  "updated_at": "2025-06-02T16:24:59.000+09:00",
  "deleted_at": null,
  "duration": 3600.0,
  "amount": 0,
  "team_id": 81,
  "input_type": "realtime",
  "stopped_at_seconds": 1748852698,
  "deleted_at_seconds": 0,
  "external_identifier": null,
  "external_provider": "none",
  "formatted_duration": "01:00",
  "html_url": "http://test.host/app/mytasks/188/edit",
  "user": {
    "id": 82,
    "nickname": "Bobbie Tillman",
    "image": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50",
    "created_at": "2025-06-02T16:24:58.000+09:00",
    "updated_at": "2025-06-02T16:24:59.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-06-02T16:24:58.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-06-02T16:24:59.000+09:00",
    "id": 188,
    "key": "http://williamson-keebler.test/rosemarie",
    "title": "Sint consequuntur rerum aliquam.",
    "url": "http://williamson-keebler.test/rosemarie",
    "team_id": 81,
    "created_at": "2025-06-02T16:24:58.000+09:00",
    "deleted_at": null,
    "description": null,
    "category": {
      "id": 187,
      "key": "key66",
      "title": "key66",
      "url": null,
      "team_id": 81,
      "created_at": "2025-06-02T16:24:58.000+09:00",
      "updated_at": "2025-06-02T16:24:59.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": "187",
    "ancestry_depth": 1,
    "closed_at": null,
    "color": 1,
    "position": null,
    "deleted_at_seconds": 0,
    "key_md5": "c4fd2549868d2a2e169a8a774d716bb9",
    "archived": false,
    "category_id": 187,
    "ancestry_path": "/187/",
    "selectable": true,
    "team": {
      "id": 81,
      "name": "Wisconsin giants",
      "created_at": "2025-06-02T16:24:58.000+09:00",
      "updated_at": "2025-06-02T16:24:59.000+09:00",
      "deleted_at": null,
      "time_limit": 0,
      "avatar": null,
      "personal": false,
      "premium": false,
      "ancestry": null,
      "rounding": "floor",
      "capacity": null,
      "hierarchized": false,
      "default_duration": 15,
      "tasks_readonly_role": "none",
      "workspaces_workspace_id": 111,
      "tasks_readonly": false
    }
  },
  "comment": {
    "id": 1,
    "content": "Comment😊",
    "commentable_id": 18,
    "commentable_type": "ActsAsTimeTrackable::ActiveRecordStores::TimeEntry",
    "user_id": 82,
    "created_at": "2025-06-02T16:24:59.000+09:00",
    "updated_at": "2025-06-02T16:24:59.000+09:00",
    "deleted_at": null
  },
  "team": {
    "id": 81,
    "name": "Wisconsin giants",
    "created_at": "2025-06-02T16:24:58.000+09:00",
    "updated_at": "2025-06-02T16:24:59.000+09:00",
    "deleted_at": null,
    "time_limit": 0,
    "avatar": null,
    "personal": false,
    "premium": false,
    "ancestry": null,
    "rounding": "floor",
    "capacity": null,
    "hierarchized": false,
    "default_duration": 15,
    "tasks_readonly_role": "none",
    "workspaces_workspace_id": 111,
    "tasks_readonly": false
  },
  "category": {
    "id": 187,
    "key": "key66",
    "title": "key66",
    "url": null,
    "team_id": 81,
    "created_at": "2025-06-02T16:24:58.000+09:00",
    "updated_at": "2025-06-02T16:24:59.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/19/comments
{
  "comment": {
    "content": "Comment_2"
  }
}
200
{
  "id": 19,
  "started_at": "2025-06-02T16:24:59.000+09:00",
  "stopped_at": "2025-06-02T17:24:59.000+09:00",
  "time_trackable_id": 191,
  "time_trackable_type": "Task",
  "time_tracker_id": 83,
  "time_tracker_type": "User",
  "created_at": "2025-06-02T16:24:59.000+09:00",
  "updated_at": "2025-06-02T16:24:59.000+09:00",
  "deleted_at": null,
  "duration": 3600.0,
  "amount": 0,
  "team_id": 82,
  "input_type": "realtime",
  "stopped_at_seconds": 1748852699,
  "deleted_at_seconds": 0,
  "external_identifier": null,
  "external_provider": "none",
  "formatted_duration": "01:00",
  "html_url": "http://test.host/app/mytasks/191/edit",
  "user": {
    "id": 83,
    "nickname": "Pedro Denesik",
    "image": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50",
    "created_at": "2025-06-02T16:24:59.000+09:00",
    "updated_at": "2025-06-02T16:24:59.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-06-02T16:24:59.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-06-02T16:24:59.000+09:00",
    "id": 191,
    "key": "http://cremin.example/issac.price",
    "title": "Dolorem ut omnis cum.",
    "url": "http://cremin.example/issac.price",
    "team_id": 82,
    "created_at": "2025-06-02T16:24:59.000+09:00",
    "deleted_at": null,
    "description": null,
    "category": {
      "id": 190,
      "key": "key67",
      "title": "key67",
      "url": null,
      "team_id": 82,
      "created_at": "2025-06-02T16:24:59.000+09:00",
      "updated_at": "2025-06-02T16:24:59.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": "190",
    "ancestry_depth": 1,
    "closed_at": null,
    "color": 1,
    "position": null,
    "deleted_at_seconds": 0,
    "key_md5": "2ab32ed1bbf049c756a5af2336f6a9ad",
    "archived": false,
    "category_id": 190,
    "ancestry_path": "/190/",
    "selectable": true,
    "team": {
      "id": 82,
      "name": "Florida bees",
      "created_at": "2025-06-02T16:24:59.000+09:00",
      "updated_at": "2025-06-02T16:24:59.000+09:00",
      "deleted_at": null,
      "time_limit": 0,
      "avatar": null,
      "personal": false,
      "premium": false,
      "ancestry": null,
      "rounding": "floor",
      "capacity": null,
      "hierarchized": false,
      "default_duration": 15,
      "tasks_readonly_role": "none",
      "workspaces_workspace_id": 112,
      "tasks_readonly": false
    }
  },
  "comment": {
    "id": 2,
    "content": "Comment_2",
    "commentable_id": 19,
    "commentable_type": "ActsAsTimeTrackable::ActiveRecordStores::TimeEntry",
    "user_id": 83,
    "created_at": "2025-06-02T16:24:59.000+09:00",
    "updated_at": "2025-06-02T16:24:59.000+09:00",
    "deleted_at": null
  },
  "team": {
    "id": 82,
    "name": "Florida bees",
    "created_at": "2025-06-02T16:24:59.000+09:00",
    "updated_at": "2025-06-02T16:24:59.000+09:00",
    "deleted_at": null,
    "time_limit": 0,
    "avatar": null,
    "personal": false,
    "premium": false,
    "ancestry": null,
    "rounding": "floor",
    "capacity": null,
    "hierarchized": false,
    "default_duration": 15,
    "tasks_readonly_role": "none",
    "workspaces_workspace_id": 112,
    "tasks_readonly": false
  },
  "category": {
    "id": 190,
    "key": "key67",
    "title": "key67",
    "url": null,
    "team_id": 82,
    "created_at": "2025-06-02T16:24:59.000+09:00",
    "updated_at": "2025-06-02T16:24:59.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
  }
}