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

Supported Formats

json

Examples

PATCH /api/v1/time_entries/6136
{
  "time_entry": {
    "started_at": "1734308829",
    "time_trackable_id": "36572"
  }
}
200
{
  "started_at": "2024-12-16T00:27:09.000Z",
  "time_trackable_id": 36572,
  "team_id": 11616,
  "time_tracker_id": 14388,
  "time_tracker_type": "User",
  "deleted_at": null,
  "id": 6136,
  "input_type": "realtime",
  "stopped_at": "2024-12-17T01:27:09.000Z",
  "stopped_at_seconds": 1734398829,
  "deleted_at_seconds": 0,
  "duration": 90000.0,
  "amount": 0,
  "time_trackable_type": "Task",
  "created_at": "2024-12-17T00:27:09.000Z",
  "updated_at": "2024-12-17T00:27:09.000Z",
  "formatted_duration": "25:00",
  "html_url": "http://test.host/app/mytasks/36572/edit",
  "user": {
    "id": 14388,
    "nickname": "Seymour Torp",
    "image": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50",
    "created_at": "2024-12-17T00:27:09.000Z",
    "updated_at": "2024-12-17T00:27:09.000Z",
    "deleted_at": null,
    "avatar": null,
    "daily": true,
    "daily_time": "2000-01-01T08:00:00.000Z",
    "weekly": true,
    "time_zone": "UTC",
    "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": "2024-12-17T00:27:09.000Z",
    "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": "2024-12-17T00:27:09.000Z",
    "id": 36572,
    "key": "http://hirthe-prohaska.example/lona.altenwerth",
    "title": "Vero nam porro nesciunt.",
    "url": "http://hirthe-prohaska.example/lona.altenwerth",
    "team_id": 11616,
    "created_at": "2024-12-17T00:27:09.000Z",
    "deleted_at": null,
    "description": null,
    "category": {
      "id": 36571,
      "key": "key64",
      "title": "key64",
      "url": null,
      "team_id": 11616,
      "created_at": "2024-12-17T00:27:09.000Z",
      "updated_at": "2024-12-17T00:27:09.000Z",
      "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": 3,
      "deleted_at_seconds": 0,
      "key_md5": "68c80146ebd178ece3d4f17554d1af74",
      "archived": false
    },
    "sequential_id": null,
    "bill": 0,
    "ancestry": "36571",
    "ancestry_depth": 1,
    "closed_at": null,
    "color": 1,
    "position": null,
    "deleted_at_seconds": 0,
    "key_md5": "29f85a5dcb42405e8638166d854d432c",
    "archived": false,
    "team": {
      "id": 11616,
      "name": "Louisiana pigs",
      "created_at": "2024-12-17T00:27:09.000Z",
      "updated_at": "2024-12-17T00:27:09.000Z",
      "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": 12428,
      "tasks_readonly": false
    }
  },
  "comment": null,
  "team": {
    "id": 11616,
    "name": "Louisiana pigs",
    "created_at": "2024-12-17T00:27:09.000Z",
    "updated_at": "2024-12-17T00:27:09.000Z",
    "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": 12428,
    "tasks_readonly": false
  },
  "category": {
    "id": 36571,
    "key": "key64",
    "title": "key64",
    "url": null,
    "team_id": 11616,
    "created_at": "2024-12-17T00:27:09.000Z",
    "updated_at": "2024-12-17T00:27:09.000Z",
    "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": 3,
    "deleted_at_seconds": 0,
    "key_md5": "68c80146ebd178ece3d4f17554d1af74",
    "archived": false
  }
}
PATCH /api/v1/time_entries/6137
{}
200
{
  "id": 6137,
  "started_at": "2024-12-17T00:27:09.000Z",
  "stopped_at": "2024-12-17T01:27:09.000Z",
  "time_trackable_id": 36575,
  "time_trackable_type": "Task",
  "time_tracker_id": 14389,
  "time_tracker_type": "User",
  "created_at": "2024-12-17T00:27:09.000Z",
  "updated_at": "2024-12-17T01:27:09.000Z",
  "deleted_at": null,
  "duration": 3600.0,
  "amount": 0,
  "team_id": 11617,
  "input_type": "realtime",
  "stopped_at_seconds": 1734398829,
  "deleted_at_seconds": 0,
  "formatted_duration": "01:00",
  "html_url": "http://test.host/app/mytasks/36575/edit",
  "user": {
    "id": 14389,
    "nickname": "Leif Harris",
    "image": "https://lh5.googleusercontent.com/-vLvFHrocJuk/AAAAAAAAAAI/AAAAAAAAAEQ/CZsQXc7B2EM/photo.jpg?sz=50",
    "created_at": "2024-12-17T00:27:09.000Z",
    "updated_at": "2024-12-17T01:27:09.000Z",
    "deleted_at": null,
    "avatar": null,
    "daily": true,
    "daily_time": "2000-01-01T08:00:00.000Z",
    "weekly": true,
    "time_zone": "UTC",
    "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": "2024-12-17T00:27:09.000Z",
    "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": {
    "id": 36575,
    "key": "http://denesik.example/charlette",
    "title": "Fugiat maxime voluptatem ratione.",
    "url": "http://denesik.example/charlette",
    "team_id": 11617,
    "created_at": "2024-12-17T00:27:09.000Z",
    "updated_at": "2024-12-17T01:27:09.000Z",
    "deleted_at": null,
    "description": null,
    "category": {
      "id": 36574,
      "key": "key65",
      "title": "key65",
      "url": null,
      "team_id": 11617,
      "created_at": "2024-12-17T00:27:09.000Z",
      "updated_at": "2024-12-17T01:27:09.000Z",
      "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": "1add6a70aef48da2cbdf222441b54815",
      "archived": false
    },
    "sequential_id": null,
    "state": "open",
    "bill": 0,
    "ancestry": "36574",
    "ancestry_depth": 1,
    "closed_at": null,
    "color": 1,
    "position": null,
    "deleted_at_seconds": 0,
    "key_md5": "84048cc0ee0e8c77dd4c7cd12f02c32e",
    "archived": false,
    "team": {
      "id": 11617,
      "name": "Illinois dolphins",
      "created_at": "2024-12-17T00:27:09.000Z",
      "updated_at": "2024-12-17T01:27:09.000Z",
      "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": 12429,
      "tasks_readonly": false
    }
  },
  "comment": null,
  "team": {
    "id": 11617,
    "name": "Illinois dolphins",
    "created_at": "2024-12-17T00:27:09.000Z",
    "updated_at": "2024-12-17T01:27:09.000Z",
    "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": 12429,
    "tasks_readonly": false
  },
  "category": {
    "id": 36574,
    "key": "key65",
    "title": "key65",
    "url": null,
    "team_id": 11617,
    "created_at": "2024-12-17T00:27:09.000Z",
    "updated_at": "2024-12-17T01:27:09.000Z",
    "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": "1add6a70aef48da2cbdf222441b54815",
    "archived": false
  }
}